ECAT Computer Science MCQS Set 11

ECAT Computer Science MCQS Page 7


The function used to show the output on screen is
Printf()
Scanf()
Sqrt()
Main()

How many variables can be used in one printf function?
Many
One
Two
Ten

The header file that contains input and output functions is
Stdio.h
Math.h
Graphic.h
Conio.h

Which escape sequence can be used to insert a tab in c:
\t
\a
\b
\n

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

getch() stands for:
Get character
Go character
Give character
All

In an E-R diagram a rectangle represents
None of them
Entity
Arttibute
Record

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

Which of the following are basic data distribution strategies
All of them
Centralized
Partitioned
Replication

Which character signifies the beginning of an escape sequence?
\
{
/ /
/

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

Which escape sequence is used to erase a character left to the cursor position?
\b
\del
\f
\c

Be the first to comment

Leave a Reply

Your email address will not be published.


*