NEW
Font size
WorksheetsMindSpace Computers C Test-3 2023
Total questions: 15
Worksheet time: 18mins
Which format specifier is used to represent int variable in C Program?
%f
%d
%i
None of the above
Which format specifier is used to represent 3.14 value in C Program?
%f
%d
%i
%c
Identify the correct output statement.
printf("Temperature = %f" ,temp);
scanf("Temperature = %f" ,temp);
display("Temperature = %f" ,temp);
printf("Temperature = %f temp");
Identify the correct input statement to input percentage of a student.
scanf("%f",&percentage);
scanf("%d",&percentage);
scanf("%f",percentage);
scan("%f",&percentage);
Most of the programming statements in C terminates with:
; (Semicolon)
: (Colon)
. (Full stop)
, (Comma)
Which is the only function all C programs must contain?
main()
getch()
clrscr()
All of the above
If area of rectangle is 48, what is the output of: printf("Area = %d",a);
Area = a
Area = %d
Area = 48
All of the above
Identify the correct option with all int values.
12, 45, -90.43, -123, 76
12, 45, -90, -123, 76
12.0, 45, -90, -123, 76
12.5, 11.5 12.67 89.0
Identify the wrong statement.
main() is compulsory statement in C
/* */ comments are optional in C
It is compulsory to use clrscr() in C program
int stands for decimal integer in C
If rollno of student is 23, what is the output of: printf("Roll %d Number = ",rollno);
Roll Number = 23
Roll 23 Number =
printf() is:
Input statement
Output statement
Both Input and Output function
None of the above
scanf() is:
Input statement
Output statement
Both Input and Output function
None of the above
Which symbol is used for comment or heading?
/* */
\* *\
/* /*
/ /
Comments or heading is optional (not compulsory) in C program.
True
False
& symbol is used with which function / statement?
scanf( )
printf( )
