Test about programming C P3

  1. Question 1: In 256 color mode, the number of bits for each pixel is:
    1. 6
    2. 7
    3. 8
    4. 9
  2. Question 2: Which of the following formats is used to print the address of a variable:
    1. % u '.

    2. '% e'.
    3. '% o'.
    4. '% p'.
  3. Question 3: Which of the following formats is used to print an integer:
    1. '% u'.
    2. '% e'.
    3. '% d'.
    4. '% p'.
  4. Question 4. Which of the following format is used to print a real number with double precision:
    1. '% u'.
    2. '% e'.
    3. '% o'.
    4. '% p'.
  5. Question 5. Which of the following formats is used to print a single precision number:
    1. '% u'.
    2. '% e'.
    3. '% f'.
    4. '% o'.
  6. Question 6. The int data type (integer type) can handle integers in any range:
    1. 0 . 255.
    2. -32768 . 32767.
    3. -128… 127.
    4. 0 . 65535.
  7. Question 7. Let a = 3, b = 2 and c are 3 integer variables. Which of the following expressions incorrectly writes the syntax in the C programming language:
    1. (c = a & b)
    2. (c = a && b)
    3. (c = a / b)
    4. (c = a <
  8. Question 8. Suppose a and b are 2 real numbers. Which of the following expressions is not allowed:
    1. (a + = b)
    2. (a- = b)
    3. (a >> = b)
    4. (a * = b)
  9. Question 9. Give a = 3, b = 2. Which variable c = (a << = b) will have the following values:
    1. c = 9
    2. c = 12. [c = (a = (a << = b)) = (a = a.2b)]
    3. c = 6
    4. c = 8
  10. Question 10. What is the result displayed on the screen of the following program
     #include void main () 

    {

    int a, b; a = 100; b = 56;

    printf ( ' % d ' , (a
    }
    1. 56
    2. 100
    3. Error message when building the program
    4. Other results
4 ★ | 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.