1 |
The three programming structures are: |
Sequence, decision, and repition
Process, decision, and alternation
Sequence, definition, and process
Relation, comparison, and process
|
2 |
Which of the following is not a valid escape code? |
\t
\r
\y
\f
|
3 |
Which character signifies the beginning of an escape sequence? |
{
\
/ /
/
|
4 |
Which escape sequence is used to erase a character left to the cursor position? |
\b
\del
\f
\c
|
5 |
Which character signifies the beginning of an escape sequence? |
{
\
//
/
|
6 |
%f is used for: |
Double
Float
Integer
Short
|
7 |
getch() stands for: |
Go character
Get character
Give character
All
|
8 |
Which function is used to input data in C program? |
scanf
getch()
gets()
All
|
9 |
The escape sequence for backslash is: |
\
\b
\ \
\t
|
10 |
Which escape sequence can move the cursor at the beginning of current line in C? |
\a
\b
\m
\r
|
11 |
Which escape sequence can move the cursor at the beginning of current line |
\a
\b
\t
\n
|
12 |
Which escape sequence can be used to insert a tab in c: |
\a
\b
\t
\n
|
13 |
Which escape sequence can be used to beep from speaker in c: |
\a
\b
\m
\n
|
14 |
Which escape sequence can be used to begin a new line in C? |
\a
\b
\m
\n
|
15 |
As ampersand before the name of a variable denotes: |
Actual value
Variable name
Address
Data type
|
16 |
The statement printf ("%-10d",n) will display the value of n: |
Right justified in ten-character space
Left justified in ten-character space
Center-justified in ten-character space
None of these
|
17 |
The statement printf ("%10d",n) will display the value of n: |
Right justified in ten-character space
Left justified in ten-character space
Center-justified in ten-character space
None of these
|