
pseudocode
Authored by Thomas Bui
Information Technology (IT)
9th Grade
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Assume all variables have been declared in all questions.
What will the following pseudocode output if the inputs x and y are 3 and 9 respectively?
INPUT x
INPUT y
OUTPUT Y MOD X
0
1
3
9
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following pseudocode output?
OUTPUT 9 DIV 4 + 4
5
6
1
8
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following pseudocode output if the input radius is 5.0?
INPUT radius
OUTPUT 2.0 * radius * 3.14
0.314
6.28
31.4
314
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following pseudocode output?
x <- 8
y <- 2
OUTPUT y ^ x
64
128
256
512
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following pseudocode output?
x <- 3
y <- 4
z <- 5
OUTPUT x + y * z
12
259
23
60
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the bug in the following pseudocode?
CONSTANT HEIGHT <- 100
HEIGHT <- 10
OUTPUT HEIGHT MOD 25
MOD cannot be used with a constant
A constant cannot be assigned to a different value
Trick question - there are no bugs
MOD is not a valid operator
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following pseudocode output?
x <- 25
OUTPUT x
x <- 26
x <- 27
OUTPUT x
26
27
25
25
25
26
25
27
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?