Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

C-programming Quiz (Group-2)

Total questions: 11

Worksheet time: 6mins

Name
Class
Date
1.

What is the extension of a C-program file? C-programming ની file નું extension શું હઓય છે?

a)

.html

b)

.c

c)

.doc

d)

.txt

2.

The keyword 'float' is used to define a/an __________. 'float' keyword __________define કરવા માટે વપરાય છે.

a)

decimal integer constant

b)

octal integer constant

c)

hexadecimal integer constant

d)

fractional constant

3.

\n is used to ______________. \n ______માટે વાપરવામાં આવે છે.

a)

go to new line

b)

put tab spacing

c)

go open new program

d)

none of given

4.

%o is used to read or write a/an ____________________. %o નો _____________read/write કરવા માટે ઉપયોગ થાય છે.

a)

Decimal integer

b)

Octal integer

c)

Hexadecimal integer

d)

Floating point number

5.

= is __________ operator in C-programming. C-programming માં '=' એ એક ___________ ઓપરેટર છે.

a)

Assignment

b)

Logical

c)

Relational

d)

Arithmetic

6.

Which of the following is not a loop? આપેલા ઓપશનમાંથી કયો એક loop નથી?

a)

else if

b)

while

c)

do while

d)

for

7.

+ + is known as _______________ operator. + + ને ______________operator તરીકે ઓળખવામાં આવે છે.

a)

addition

b)

subtraction

c)

increment

d)

decrement

8.

Which of the following is not a relational operator in C-programing? આપેલ ઓપ્શન પૈકી C-programming માં કયુ એક relational operator નથી?

a)

!=

b)

<=

c)

==

d)

=

9.

Which of the following is an exit controlled loop? આપેલ ઓપશનમાંથી કયો એક entry controlled loop છે?

a)

else if

b)

while

c)

do while

d)

for

10.

C-programming is a/an ____________________ language. C-programming એ ___________ પ્રકારની પ્રોગ્રામિંગ ભાષા છે.

a)

Assembly

b)

Machine

c)

High level

d)

None of given

11.

Write the output of following program. આપેલ program નું output શું હશે? int a=5,b=2,x; x=a%b; printf("%d",x);

a)

1

b)

2

c)

10

d)

2.5