1 |
Which of the following symbol is used with % sign to display output left-justified: |
-
/
\
L
|
2 |
The general form of format specifier for floating point value: |
%m.nf
m.n%
m%.nf
m.n%f
|
3 |
The format specifier for output are: |
%d for int and %f for float
%c for char
%s for string
All
|
4 |
Which of the following is NOT legal element of control string in printf statement? |
Ordinary characters
Escape sequence
Format specifier
Variables
|
5 |
Which of the following is a possible value of flag? |
-
+
Space
All
|
6 |
Which of the following format specifiers is used for string? |
%s
%c
%d
%f
|
7 |
Which of the following format specifiers is used for float data type? |
%s
%c
%d
%f
|
8 |
Which of the following format specifiers is used for character data type? |
%d
%s
%c
%f
|
9 |
Which of the following format specifiers is used for integer data type? |
%d
%s
%c
%f
|
10 |
Format specifier is started with symbol: |
?
%
&
*
|
11 |
Which of the following things are determined by format specifier? |
Data type
Field width
Format of the value
All of these
|
12 |
How many variables can be used in one printf function? |
One
Two
Many
Ten
|
13 |
Which of the following is displayed by printf function? |
Text
Constant or values of variable
A and B
Graphics
|
14 |
The format specifier %u is used for: |
Integer
Unsigned short
Unsigned float
Unsigned long int
|
15 |
The function getche() is defined in: |
stdio.h
conio.h
string.h
math.h
|
16 |
The function that is used to display output on screen is called: |
printf
scanf
pow
Display
|
17 |
The functions used for input and output is stored in: |
stdio.h
conio.h
math.h
inout.h
|