NEW
Font size
S
M
L
XL
WorksheetsExpression in C Programming
Total questions: 10
Worksheet time: 5mins
Name
Class
Date
1.
Operator % in C Language is called.?
a)
Percentage Operator
b)
Quotient Operator
c)
Modulus
d)
Division
2.
Which of the following is not logical operator?
a)
&
b)
||
c)
!
d)
&&
3.
Which operator performs operations on data in Binary Level.
a)
Logical operator
b)
Bitwise operator
c)
Conditional operator
d)
None
4.
#include <stdio.h>
int main()
{
int a=10, b;
b=a%3;
printf("%d",b);
return 0;
}
a)
0
b)
2
c)
4
d)
1
5.
int a = 3.5 + 4.5;
a)
a = 0
b)
a = 7
c)
a = 8.0
d)
a = 8
6.
The size of character variable in c
a)
2 byte
b)
5 byte
c)
8 byte
d)
1 byte
7.
#include <stdio.h>
int main(){
int x= 5*9/3+9;
printf("%d",x);
return 0;
}
a)
8
b)
24
c)
25
d)
None
8.
#include <stdio.h>
int main(){
int x= 5%2 *3/2;
printf("%d",x);
return 0;
}
a)
1
b)
2
c)
3
d)
99
9.
Pickup odd one out
a)
a=a+1;
b)
a+=1
c)
a++
d)
a=+1
10.
int main()
{
float c = 3.5 + 4.5;
printf("%f", c);
return 0;
}
a)
7
b)
8
c)
9
d)
8.000000
Reset
