1 |
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
|
2 |
The header file that contains input and output functions is |
- A. Math.h
- B. Graphic.h
- C. Stdio.h
- D. Conio.h
|
3 |
Which escape sequence can be used to begin a new line in C? |
|
4 |
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
|
5 |
Which of the following format specifiers is used for character data type? |
|
6 |
Which of the following is displayed by printf function? |
- A. Text
- B. Constant or values of variable
- C. A and B
- D. Graphics
|
7 |
The function getche( ) is defined in |
- A. stdio.h
- B. string.h
- C. math.h
- D. conio.h
|
8 |
An advantages of partitioning is |
- A. Efficiency
- B. Extra space and update time
- C. Both a & b
- D. None of them
|
9 |
Which of the following symbol is used with % sign to display output left-justified: |
|
10 |
The format specifier for output are: |
- A. %d for int and %f for float
- B. %c for char
- C. %s for string
- D. All
|