1 |
Which of the following is not a valid escape code? |
|
2 |
Which of the following format specifiers is used for character data type? |
|
3 |
Which of the following things are determined by format specifier? |
- A. Data type
- B. Field width
- C. Format of the value
- D. All of these
|
4 |
Which of the following format specifiers is used for string? |
|
5 |
%f is used for: |
- A. Double
- B. Float
- C. Integer
- D. Short
|
6 |
The statement printf ("%10d",n) will display the value of n: |
- A. Right justified in ten-character space
- B. Left justified in ten-character space
- C. Center-justified in ten-character space
- D. None of these
|
7 |
Which of the following is displayed by printf function? |
- A. Text
- B. Constant or values of variable
- C. A and B
- D. Graphics
|
8 |
The format specifier %u is used for: |
- A. Integer
- B. Unsigned short
- C. Unsigned float
- D. Unsigned long int
|
9 |
The format specifier for output are: |
- A. %d for int and %f for float
- B. %c for char
- C. %s for string
- D. All
|
10 |
The function that is used to display output on screen is called: |
- A. printf
- B. scanf
- C. pow
- D. Display
|