wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Computer 10th Sep-2020

Total questions: 11

Worksheet time: 11mins

Name
Class
Date
1.

Which statement is equivalent to a=a/b ?

a)

a=/b

b)

a/=b

c)

b=/a

d)

None

2.

Which escape sequence is used to moves cursor to the beginning of current line?

a)

\t

b)

\n

c)

\r

d)

\b

3.

Which function reads a single character the instant it is typed, without waiting for the Enter key to be pressed and displays it on the screen?

a)

getch()

b)

getche()

c)

scanf()

d)

gets()

4.

Which of the following is a logical operator?

a)

%

b)

&&

c)

<=

d)

+==

5.

Which statement is equivalent to "sum= sum-n" ?

a)

sum = - n

b)

sum - = n

c)

sum --n

d)

sum=n-

6.

Which function is used to output a single character on the screen?

a)

printf()

b)

puts()

c)

getchar()

d)

putchar()

7.

Which of the operator has the lowest precedence?

a)

+

b)

++

c)

<=

d)

%

8.

The _________ function is used to get values into variables from the keyboard during execution of program.

a)

getch()

b)

getche()

c)

scanf()

d)

printf()

9.

_______operator is used for building compound condition.

a)

Arithmetic

b)

Relational

c)

Logical

d)

Assignment

10.

Which function is used to read a character string from the keyboard.

a)

puts()

b)

putchar()

c)

gets()

d)

getch()

11.

Which character terminates a C statement?

a)

:

b)

,

c)

;

d)

"