
PSAP QUIZ 3
Authored by A M
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code?
#include <stdio.h>
int main() {
int x = 5;
printf("%d", x++ * x++);
return 0;
}
25
30
36
26
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code?
#include <stdio.h>
int main() {
int x = 5, y = 6, z = 7;
printf("%d", x < y > z);
return 0;
}
1
0
5
6
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code?
#include <stdio.h>
int main() {
int x = 7;
printf("%d", x % 3);
return 0;
}
1
3
7
2
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code?
#include <stdio.h>
int main() {
int x = 5;
printf("%d", x == 5);
return 0;
}
1
0
5
True
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code?
#include <stdio.h>
int main() {
int x = 5;
printf("%d", x = 6);
return 0;
}
6
7
1
Compile Time Error
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code?
#include <stdio.h>
int main() {
int x = 5;
printf("%d", x || 0);
return 0;
}
1
0
5
True
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code?
#include <stdio.h>
int main() {
int x = 5;
printf("%d", x << 2);
return 0;
}
20
5
10
25
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 Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?