WorksheetsCoding Quiz
Total questions: 7
Worksheet time: 8mins
Name
Class
Date
1.
Find the output of the following ?
#include <stdio.h>
int main(){
int a;
a = 25;
a-=7;
printf("%d",a);
}
a)
25
b)
18
c)
7
d)
32
2.
In which year C was developed?
a)
1972
b)
1973
c)
1974
d)
1975
3.
Which of the following is a conditional statement?
a)
if
b)
do while
c)
for
d)
while
4.
#include<stdio.h>
int main(){
int a,b;
a = 10;
b = 15;
a = a*b+a;
print("%d",a);
}
(a)
5.
Find the output for the following code?
#include<stdio.h>
int main(){
int a ;
a = 10;
printf("%d\n",a++);
printf("%d",a);
}
a)
10
11
b)
11
11
c)
10
10
d)
11
10
6.
ASCII value of A?
a)
97
b)
96
c)
69
d)
65
7.
Which is not a built-in function?
a)
scanf
b)
printf
c)
return
d)
All of these
100 %
