- 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
-
Update 24 May 2019
You should read it
- Test on C programming P6
- Test on C programming P4
- Test of programming C P5
- Test about programming C P2
- Test about C programming
- Set of multiple choice questions about programming with P17 prize
- Set of multiple choice questions about programming with P12
- Set of multiple choice questions for programming with P8 prizes
- Set of multiple choice questions about programming with P10 prize
- A set of multiple choice questions for programming has a P2 prize
- Set of multiple choice questions about programming with P7 prize
- Set of multiple choice questions on award winning P4 programming
Maybe you are interested
Plot Mafia III: Start the journey of revenge and build a new mafia empire - P.2 Mafia in the game - Life and death with numbers, richness due to heaven Ransomware appears to require users to play PUBG for 1 hour instead of ransom Quickly register to play Age of Empires 4K upgrade version of the graphic How to log in Rules of Survival with Facebook How to play the game Overwatch 4 days for free on Tet