WorksheetsC-programming Quiz (Group-2)
Total questions: 11
Worksheet time: 6mins
What is the extension of a C-program file? C-programming ની file નું extension શું હઓય છે?
.html
.c
.doc
.txt
The keyword 'float' is used to define a/an __________. 'float' keyword __________define કરવા માટે વપરાય છે.
decimal integer constant
octal integer constant
hexadecimal integer constant
fractional constant
\n is used to ______________. \n ______માટે વાપરવામાં આવે છે.
go to new line
put tab spacing
go open new program
none of given
%o is used to read or write a/an ____________________. %o નો _____________read/write કરવા માટે ઉપયોગ થાય છે.
Decimal integer
Octal integer
Hexadecimal integer
Floating point number
= is __________ operator in C-programming. C-programming માં '=' એ એક ___________ ઓપરેટર છે.
Assignment
Logical
Relational
Arithmetic
Which of the following is not a loop? આપેલા ઓપશનમાંથી કયો એક loop નથી?
else if
while
do while
for
+ + is known as _______________ operator. + + ને ______________operator તરીકે ઓળખવામાં આવે છે.
addition
subtraction
increment
decrement
Which of the following is not a relational operator in C-programing? આપેલ ઓપ્શન પૈકી C-programming માં કયુ એક relational operator નથી?
!=
<=
==
=
Which of the following is an exit controlled loop? આપેલ ઓપશનમાંથી કયો એક entry controlled loop છે?
else if
while
do while
for
C-programming is a/an ____________________ language. C-programming એ ___________ પ્રકારની પ્રોગ્રામિંગ ભાષા છે.
Assembly
Machine
High level
None of given
Write the output of following program. આપેલ program નું output શું હશે? int a=5,b=2,x; x=a%b; printf("%d",x);
1
2
10
2.5
