
C - Parithabangal
Authored by Ajith Ajith
Information Technology (IT)
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of:
int a = 5, b = 2;
printf("%d", a / b);
2.5
2
3
Error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Expression 5 > 3 && 2 < 4 will return?
0
1
Error
Garbage
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be printed?
int x = 10;
if (x = 0)
printf("Zero");
else
printf("Non-Zero");
Zero
Non-Zero
Error
Nothing
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output?
int x = -5;
if (x > 0)
printf("Positive");
else
printf("Negative");
Positive
Negative
Error
None
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times will this loop execute?
for(int i=1; i<=5; i++);
0
4
5
6
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which loop executes at least once even if condition is false?
for
while
do-while
None
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be printed?
int i=1;
while(i<3) {
printf("%d", i);
i++;
}
12
123
1
Error
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?