
Pseudocode Output Worksheet
Authored by ROHINI UDI
Engineering
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output for the following pseudocode? Integer a=5, b=8, c if(a>8 OR b<7) c=a+b elseif(a+b>9) c=a-b else a=a+5 c=c-2 end if a=a+b Print a and c b=b-5
None of the mentioned
5 -3
5 1
13 -3
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following pseudocode? Integer a, p Set a = 5 a = a + 1 a = a * 2 a = a / 2 p = a / 5 + 6 print p
A. 0
B. 1
C. 2
D. 7
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A. 3
B. 0
C. 10
D. 2
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following pseudocode? Integer a, b, c Set b = 40, a = 20, c = 20 a = a + c c = c + a a = a + c c = c + a Print a + b + c
A. 40
B. 100
C. 300
D. None of these
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A. 1
B. 2
C. 0
D. None of these
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Predict the output of the following pseudocode: Integer x, y, z Set x = 10, y = 16, z = 3 if(x > y) x = 2 * y Else x = x + y + z Print x
29
16
13
10
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider the following pseudocode: y = x / 2 = 5 End if if(z > y) 3 > 5 z = 2 * y Else y = z / 2 = 1 End if Print x + y + z = 10+1+3 What is the output?
A) 38
B) 20
C) 33
D) 14
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?