Test on C programming P6

  1. Question 1. When is the code block (x <100) executed?
    1. When x is less than one hundred
    2. When x is greater than one hundred
    3. When x equals one hundred
    4. While it wants to
  2. Question 2. How many times will the while loop repeat?
    1. 0
    2. first
    3. Infinite
    4. Turn
  3. Question 3. The return type of the function with the prototype: 'int func (char x, float v, double t);
    1. char
    2. int
    3. float
    4. double
  4. 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");

    }

    }
    1. One
    2. Is not
    3. Hello the world
    4. Zero Hello World
  5. Question 5. Which of the following is the correct declaration of a cursor?
    1. int x
    2. int & x
    3. ptr x
    4. int * x
  6. Question 6. Graphic mode includes the following issues:
    1. How many colors
    2. What colors are included?
    3. How much is the screen resolution?
    4. All 3 plans on
  7. Question 7. In graphic mode, which of the following functions establishes the font type and size:
    1. outtextxy (int x, int int, char far * textstring);
    2. outtext (char far * textstring);
    3. settextstyle (int font, int direction, int charsize);
    4. All 3 answers above
  8. Question 8. What is the best thing to say about floodfill functions (int x, int y, int Border);
    1. Use to color a circle containing points (x, y)
    2. Use to color a rectangle containing points (x, y)
    3. Use to fill polygons containing points (x, y)
    4. Used to color any closed domain containing points (x, y)
  9. Question 9. The clip parameter in setviewport function (int x1, y1 int, int x2, int y2, int clip); what issue:
    1. Allows to display or not to display brush strokes inside viewport
    2. Allows to display or not to display brush strokes outside the viewport
    3. Both are correct
    4. Both are wrong
  10. Question 10. What setset (int color) function does:
    1. Set background color
    2. Set the current drawing color
    3. Both of these are true
    4. Both are wrong
4.5 ★ | 2 Vote

May be interested

  • Multiple choice questions about programming with P1 prizeMultiple choice questions about programming with P1 prize
    programming is the use of programming languages ​​and tools and utilities to write code, build practical programs and applications on your computer to serve your life. the following is an invitation to test your knowledge with our following series of articles.
  • A set of multiple choice questions for programming has a P2 prizeA set of multiple choice questions for programming has a P2 prize
    programming is the use of programming languages ​​and utility tools to build applications and executable programs on computers for life. in this article, invite readers to test their knowledge and multiple choice questions around this topic.
  • Set of multiple choice questions on award winning P4 programmingSet of multiple choice questions on award winning P4 programming
    the set of multiple choice questions for programming has been invited to read and test by the network administrator. set of 10-question questions with 4 answers, try to see how many answers you can get.
  • Set of multiple choice questions on programming with P9Set of multiple choice questions on programming with P9
    multiple choice questions about programming help you gain more useful knowledge for yourself in the process of learning and working. there will be 10 questions for you to test your knowledge. let's start.
  • eQuiz - VB.NET testing test - Part 2eQuiz - VB.NET testing test - Part 2
    in the previous article, i showed you the first part of the vb.net test. and this time, we will continue with part 2 of this popular quiz series on programming languages, the whole test will have 15 questions with unlimited response time.
  • JAVA test test P1JAVA test test P1
    java is an object-oriented and class-based programming language. to help you read more interesting knowledge about the java programming language, the network administrator will send you a very interesting multiple choice question on this topic. please try.
  • Test on JAVA P10 testTest on JAVA P10 test
    multiple choice questions on java programming help you test your basic knowledge of this programming language. the set of questions includes 10 sentences to try.
  • Test about C programmingTest about C programming
    if you are a fan of this programming language, you can try your knowledge through our multiple-choice questions.
  • Test about programming C P2Test about programming C P2
    if you are a fan of this programming language, you can try your knowledge through our multiple-choice questions.
  • CSS test with answer P4CSS test with answer P4
    set of multiple choice questions about css programming language, invite readers to test their knowledge on this topic. with 10 questions including 4 answers, please choose the best answer.