TipsMake

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
    • While it wants to
  • Question 2. How many times will the while loop repeat?
    • 0
    • first
    • Infinite
    • Turn
  • Question 3. The return type of the function with the prototype: 'int func (char x, float v, double t);
    • char
    • int
    • float
    • double
  • 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");

    }

    }
    • One
    • Is not
    • Hello the world
    • Zero Hello World
  • Question 5. Which of the following is the correct declaration of a cursor?
    • int x
    • int & x
    • ptr x
    • int * x
  • Question 6. Graphic mode includes the following issues:
    • How many colors
    • What colors are included?
    • How much is the screen resolution?
    • All 3 plans on
  • 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);
    • All 3 answers above
  • 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
    • Both are correct
    • Both are wrong
  • Question 10. What setset (int color) function does:
    • Set background color
    • Set the current drawing color
    • Both of these are true
    • Both are wrong

Discover more

C programming language multiple choice programming technology programmer programming test
Lesley Montoya

Share by

Lesley Montoya
Update 24 May 2019