12th Class Computer Science MCQS Chapter 10

Google Ads1

12th Class Computer Science MCQS


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

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

The function getche( ) is defined in
stdio.h
conio.h
string.h
math.h

Which of the following things are determined by format specifier?
Data type
Field width
Format of the value
All of these

Which of the following is used to define objects and describe their characteristics
None of them
Both a & b
Attributes
Relationship

The format specifier  % d is used for
Unsigned long int
Int
Unsigned float
Unsigned short

Which of the following function is used to input data in C programs?
Printf
Scanf
Get()
getch()

Which of the following format specifiers is used for float data type?
%d
%s
%f
%c

The general form of format specifier for floating point value:
m.n%
%m.nf
m.n%f
m%.nf

The function getche() is defined in:
conio.h
math.h
string.h
stdio.h

Continue Reading Go to Next Page

Google Ads