-
6
-
7
-
8
-
9
Test about programming C P3
Multiple choice questions on C programming, invite readers to test their knowledge with Network Administrator. Hopefully with these questions you will have more useful knowledge.
-
Question 1: In 256 color mode, the number of bits for each pixel is:
-
Question 2: Which of the following formats is used to print the address of a variable:
-
% u '.
-
'% e'.
-
'% o'.
-
'% p'.
-
-
Question 3: Which of the following formats is used to print an integer:
-
'% u'.
-
'% e'.
-
'% d'.
-
'% p'.
-
-
Question 4. Which of the following format is used to print a real number with double precision:
-
'% u'.
-
'% e'.
-
'% o'.
-
'% p'.
-
-
Question 5. Which of the following formats is used to print a single precision number:
-
'% u'.
-
'% e'.
-
'% f'.
-
'% o'.
-
-
Question 6. The int data type (integer type) can handle integers in any range:
-
0 . 255.
-
-32768 . 32767.
-
-128… 127.
-
0 . 65535.
-
-
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:
-
(c = a & b)
-
(c = a && b)
-
(c = a / b)
-
(c = a <
-
-
Question 8. Suppose a and b are 2 real numbers. Which of the following expressions is not allowed:
-
(a + = b)
-
(a- = b)
-
(a >> = b)
-
(a * = b)
-
-
Question 9. Give a = 3, b = 2. Which variable c = (a << = b) will have the following values:
-
c = 9
-
c = 12. [c = (a = (a << = b)) = (a = a.2b)]
-
c = 6
-
c = 8
-
-
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
}-
56
-
100
-
Error message when building the program
-
Other results
-
You've just finished reading the article "Test about programming C P3" edited by the TipsMake team. You can save test-about-programming-c-p3.pdf to your computer here to read later or print it out. We hope this article has provided you with many useful tech tips and tricks. You can search for similar articles on tips and guides. Thank you for reading and for following us regularly.
Read More
- Set of multiple choice questions about programming with P12
- eQuiz - Multiple choice test on programming language C - part 1
- HTML test with answers - Part 2
- Test on C programming P4
- Test on JAVA test P5
- JAVA test on P3
- Set of multiple choice questions for programming with P8 prizes
- eQuiz - VB.NET testing test - Part 1
- Multiple choice questions about programming with P1 prize
- A set of multiple choice questions for programming has a P2 prize
- Set of multiple choice questions on award winning P4 programming
- Set of multiple choice questions on programming with P9
- eQuiz - VB.NET testing test - Part 2
- JAVA test test P1