Test on C programming P6
Are you a fan of C programming language and want to learn about this programming language? The quiz below The network administrator has edited and sent you questions about this topic, invite you to experience.
Question 1. When is the code block (x <100) executed?
When x is less than one hundred
When x is greater than one hundred
When x equals one hundred
Question 2. How many times will the while loop repeat?
Question 3. The return type of the function with the prototype: 'int func (char x, float v, double t);
Question 4. What is the result of the following command?
#include
void main () { int x = 0; switch (x) { case 1: printf ("One"); case 0: printf ("Zero"); case 2: printf ("Hello World"); } }
Question 5. Which of the following is the correct declaration of a cursor?
Question 6. Graphic mode includes the following issues:
What colors are included?
How much is the screen resolution?
Question 7. In graphic mode, which of the following functions establishes the font type and size:
outtextxy (int x, int int, char far * textstring);
outtext (char far * textstring);
settextstyle (int font, int direction, int charsize);
Question 8. What is the best thing to say about floodfill functions (int x, int y, int Border);
Use to color a circle containing points (x, y)
Use to color a rectangle containing points (x, y)
Use to fill polygons containing points (x, y)
Used to color any closed domain containing points (x, y)
Question 9. The clip parameter in setviewport function (int x1, y1 int, int x2, int y2, int clip); what issue:
Allows to display or not to display brush strokes inside viewport
Allows to display or not to display brush strokes outside the viewport
Question 10. What setset (int color) function does:
Set the current drawing color