WorksheetsC-I__ quiz
Total questions: 12
Worksheet time: 5mins
Operator % in C Language is called.?
Percentage Operator
Quotient Operator
Modulus
Division
#include <stdio.h>
int main()
{
int a=10, b;
b=a%3;
printf("%d",b);
return 0;
}
0
2
4
1
The size of character variable in c
2 byte
5 byte
8 byte
1 byte
#include <stdio.h>
int main(){
int x= 5*9/3+9;
printf("%d",x);
return 0;
}
8
24
25
None
#include <stdio.h>
int main(){
int x= 5%2 *3/2;
printf("%d",x);
return 0;
}
1
2
3
99
int main()
{
float c = 3.5 + 4.5;
printf("%f", c);
return 0;
}
7
8
9
8.000000
Which data type is used to store whole numbers in C?
char
double
int
float
What is the purpose of the printf function in C?
To read user input
To print text on the screen
To declare variables
To create loops
Which of the following is not a valid C keyword?
Who is often referred to as the creator of the C programming language?
In C, what symbol is used for a single-line comment?
When was the C programming language first created?
