More Classes
5th Class
6th Class
7th Class
8th Class
9th Class
10th Class
11th Class
12th Class
NAT I
NAT II
CSS
IQ
General Knowledge
MDCAT
ECAT
GAT General
GAT Subject
Other Links
Go to Home
Online Tests
Computer Science Ics Part 2 Chapter 10 Online Test MCQs With Answers
Question # 1
Which of the following is NOT legal element of control string in printf statement?
Choose an answer
Ordinary characters
Escape sequence
Format specifier
Variables
Previous
Skip
Next
Question # 2
Which of the following format specifiers is used for integer data type?
Choose an answer
%d
%s
%c
%f
Previous
Skip
Next
Question # 3
Which escape sequence can be used to beep from speaker in c:
Choose an answer
\a
\b
\m
\n
Previous
Skip
Next
Question # 4
The statement printf ("%10d",n) will display the value of n:
Choose an answer
Right justified in ten-character space
Left justified in ten-character space
Center-justified in ten-character space
None of these
Previous
Skip
Next
Question # 5
The general form of format specifier for floating point value:
Choose an answer
%m.nf
m.n%
m%.nf
m.n%f
Previous
Skip
Next
Question # 6
Which escape sequence can move the cursor at the beginning of current line
Choose an answer
\a
\b
\t
\n
Previous
Skip
Next
Question # 7
The escape sequence for backspace is
Choose an answer
\
\b
\\
\t
Previous
Skip
Next
Question # 8
getch() stands for:
Choose an answer
Go character
Get character
Give character
All
Previous
Skip
Next
Question # 9
Which of the following function is used to input data in C programs?
Choose an answer
Scanf
Printf
Get()
getch()
Previous
Skip
Next
Question # 10
Which of the following is a possible value of flag?
Choose an answer
-
+
Space
All
Previous
Skip
Next
Question # 11
Print() function can show
Choose an answer
Text
Value of variable
Constants
All
Previous
Skip
Next
Question # 12
Which of the following is used to define objects and describe their characteristics
Choose an answer
Attributes
Relationship
Both a & b
None of them
Previous
Skip
Next
Question # 13
Which of the following things are determined by format specifier?
Choose an answer
Data type
Field width
Format of the value
All of these
Previous
Skip
Next
Question # 14
Which escape sequence can be used to insert a tab in c:
Choose an answer
\a
\b
\t
\n
Previous
Skip
Next
Question # 15
A factor consider when choosing a file organization is
Choose an answer
Fast data retrieval
Security
Efficient storage
All of them
Previous
Skip
Next
Question # 16
Which escape sequence can move the cursor at the beginning of current line in C?
Choose an answer
\a
\b
\m
\r
Previous
Skip
Next
Back