ECAT Computer Science MCQS Set 11

Google Ads1

ECAT Computer Science MCQS Page 5


The number of variables that can be used in printf ( ) function are
Many
One
Three
Zero

The format specifier %u is used for:
Unsigned short
Integer
Unsigned float
Unsigned long int

The escape sequence for backslash is:
\ \
\
\b
\t

An advantages of partitioning is
Efficiency
Extra space and update time
Both a & b
None of them

Which escape sequence can move the cursor at the beginning of current line in C?
\r
\a
\b
\m

Which escape sequence can move the cursor at the beginning of current line
\t
\a
\b
\n

Which of the following symbol is used with % sign to display output left-justified:
/
\
L

The statement printf (“%-10d”,n) will display the value of n:
Left justified in ten-character space
Right justified in ten-character space
Center-justified in ten-character space
None of these

Which of the following is a possible value of flag?
All
+
Space

Which escape sequence can be used to begin a new line in C?
\n
\a
\b
\m

Format specifier is started with symbol:
%
?
&
*

%f is used for:
Float
Double
Integer
Short

Continue Reading Go to Next Page

Google Ads

Be the first to comment

Leave a Reply

Your email address will not be published.


*