wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

MindSpace Computers C Test-3 2023

Total questions: 15

Worksheet time: 18mins

Name
Class
Date
1.

Which format specifier is used to represent int variable in C Program?

a)

%f

b)

%d

c)

%i

d)

None of the above

2.

Which format specifier is used to represent 3.14 value in C Program?

a)

%f

b)

%d

c)

%i

d)

%c

3.

Identify the correct output statement.

a)

printf("Temperature = %f" ,temp);

b)

scanf("Temperature = %f" ,temp);

c)

display("Temperature = %f" ,temp);

d)

printf("Temperature = %f temp");

4.

Identify the correct input statement to input percentage of a student.

a)

scanf("%f",&percentage);

b)

scanf("%d",&percentage);

c)

scanf("%f",percentage);

d)

scan("%f",&percentage);

5.

Most of the programming statements in C terminates with:

a)

; (Semicolon)

b)

: (Colon)

c)

. (Full stop)

d)

, (Comma)

6.

Which is the only function all C programs must contain?

a)

main()

b)

getch()

c)

clrscr()

d)

All of the above

7.

If area of rectangle is 48, what is the output of: printf("Area = %d",a);

a)

Area = a

b)

Area = %d

c)

Area = 48

d)

All of the above

8.

Identify the correct option with all int values.

a)

12, 45, -90.43, -123, 76

b)

12, 45, -90, -123, 76

c)

12.0, 45, -90, -123, 76

d)

12.5, 11.5 12.67 89.0

9.

Identify the wrong statement.

a)

main() is compulsory statement in C

b)

/* */ comments are optional in C

c)

It is compulsory to use clrscr() in C program

d)

int stands for decimal integer in C

10.

If rollno of student is 23, what is the output of: printf("Roll %d Number = ",rollno);

a)

Roll Number = 23

b)

Roll 23 Number =

11.

printf() is:

a)

Input statement

b)

Output statement

c)

Both Input and Output function

d)

None of the above

12.

scanf() is:

a)

Input statement

b)

Output statement

c)

Both Input and Output function

d)

None of the above

13.

Which symbol is used for comment or heading?

a)

/* */

b)

\* *\

c)

/* /*

d)

/ /

14.

Comments or heading is optional (not compulsory) in C program.

a)

True

b)

False

15.

& symbol is used with which function / statement?

a)

scanf( )

b)

printf( )