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

  • The Microsoft Access test has the answer P4Photo of The Microsoft Access test has the answer P4
    access is part of the office suite and is used to build simple software. if you are new to access, the multiple choice questions below will help you add more useful knowledge.
  • A set of JavaScript multiple-choice questions has P3 answersPhoto of A set of JavaScript multiple-choice questions has P3 answers
    javascript has become something almost obvious, when everyone uses it. when you use facebook, you use javascript. when you write a tweet you use javascript ... if you are learning about javascript, the quiz below will give you lots of useful information. let's start.
  • A set of JavaScript multiple-choice questions has P4 answersPhoto of A set of JavaScript multiple-choice questions has P4 answers
    please read your knowledge and multiple choice questions around the javascript topic that the network administrator has edited below. the set of questions includes 10 sentences to try.
  • The Microsoft Access test has the answer P5Photo of The Microsoft Access test has the answer P5
    microsoft access is specifically designed for the purpose of managing and exploiting databases for small projects that need to be deployed quickly and this is also an advanced software that all professional office staff should know. if you are a beginner of this software, the quiz below will provide you with lots of useful information for the process.
  • What do you know about software technology P9Photo of What do you know about software technology P9
    are you worried about software technology? don't worry, the following quiz of network administrator will give you a lot of useful knowledge for you to easily get used to it.
  • What do you know about P10 software technologyPhoto of What do you know about P10 software technology
    software technology is an extremely developing industry, bringing high income for learners after graduation. if you are looking to learn about this industry, the quiz below will give you a lot of useful information. please take a look.