NEW
Font size
S
M
L
XL
WorksheetsGIM-1 E1
Total questions: 20
Worksheet time: 10mins
Name
Class
Date
1.
Who is considered the creator of the "C" programming language?
a)
Dennis Ritchie
b)
Ken Thompson
c)
Brian Kernighan
d)
Grace Hopper
2.
In which year was the "C" programming language developed?
a)
1970
b)
1971
c)
1972
d)
1974
3.
"C" programming language was initially developed for which purpose?
a)
Scientific calculations
b)
Artificial intelligence
c)
Operating system development
d)
Web development
4.
The development of "C" programming language took place at which organization?
a)
IBM
b)
Microsoft
c)
Apple Inc.
d)
Bell Laboratories
5.
The first implementation of the "C" programming language was on which operating system?
a)
Windows
b)
Unix
c)
Linux
d)
SAMSUNG
6.
What is the purpose of the printf function in C?
a)
To read input from the user
b)
To write output to the screen
c)
To perform mathematical calculations
d)
To declare variables
7.
Which header file needs to be included to use the printf function?
a)
conio.h
b)
math.h
c)
stdio.h
d)
string.h
8.
Which escape sequence is used to print a newline character in printf?
a)
\t
b)
\\n
c)
\b
d)
\n
9.
Short cut to close current file
a)
Alt + 5
b)
Alt + f3
c)
F2
d)
F3
10.
Short cut to resize current file
a)
F1
b)
F4
c)
F5
d)
F6
11.
Which is not jumping statement ?
a)
continue
b)
ternory
c)
exit
d)
return
12.
Which data types have same memory bytes.
a)
int & ch[]
b)
float & char
c)
float & int
d)
int & char
13.
Which is not conditional statement
a)
for
b)
if
c)
ledder
d)
ternory
14.
What is the result of the following expression? => 10 % 7
a)
3
b)
2
c)
1
d)
0
15.
Which is integer format specifier
a)
%c
b)
%d
c)
%f
d)
%s
16.
Which of the following is not a logical operator in C?
a)
&
b)
||
c)
!
d)
&&
17.
Format specifier to print 2 float digit
a)
%.2d
b)
$2d
c)
2%f
d)
%.2f
18.
Which is string datatype
a)
String
b)
int
c)
char
d)
char[]
19.
Which of the following is not a relational operator in C?
a)
<
b)
<>
c)
>
d)
!=
20.
Which is the condition for maximum value of a
a)
a>b
b)
b>a
c)
a==b
d)
a!=b
Reset
