NEW
Font size
WorksheetsPSPD_CCA1
Total questions: 20
Worksheet time: 24mins
C programs are converted into machine language with the help of
an Editor
an operating system
compiler
None of the above
Which of the following is not a
correct variable type?
float
int
double
real
Which is the only function all C
programs must contain?
start()
main()
system()
printf()
C variable cannot start with
An alphabet
A number or special symbol other than underscore
Uppercase alphabet
None of the above
What will be printed after execution of the following program code?
main()
{
printf("\nab");
printf("\nsi");
printf("\tha");
}
absiha
ab
si ha
haasi
None of these
What will be the output of the program code?
int main()
{
int a = 5;
int b = 10;
int c = a+b;
printf("%i",c);
}
0
15
compiler error
undefined
What should be the output:
int main()
{
int a = 10/3;
printf("%d",a);
}
3.33
3.00
3
0
What should be the output:
int main()
{
int a = 10.5;
printf("%d",a);
}
10.5
10
0.5
0
Which of the following operator takes only integer operands?
+
/
*
%
What is the function of escape sequence'\n'
Horizontal tab
Backspaace
Newline
Single quote
format specifier for float type data is
%f
%d
%c
%lf
what is the use function printf()
accepting input from input device
displaying data on output device
both a and b
None of the above
++x is which type of operator
post decrement
pre increment
post increment
pre decrement
Decrement operator '--' returns value of variable
subtracted value of variable by 1
subtracted value of variable by 2
added value of variable by 1
None of the above
following is the logical operator in 'C'
'++'
'<<'
'&&'
'/'
what is the use of pow(x,y) function
calculate x*y
calculate x/y
calculate x^y
calculate x-y
# define pi 3.14 is used -------globally
value of pi constant
value of variable pi
both a and b
None of the above
Space required in memory to store integer data is-----byte
1 byte
3 byte
4 byte
2 byte
above shape is used in flowchart
for start and stop
to indicate operation
to take decision
to perform input or output opertion
Determine the value of following expression if a=7,b= 3
a%b
2.33
2
1
21
