
Pseudocode Quiz

Quiz
•
Computers
•
Professional Development
•
Medium
SREEDHAR YELLAM
Used 2+ times
FREE Resource
23 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will the output of the following pseudocode be? def func(x): if x == 0: return 1 else: return x * func(x - 1) print(func(4))
0
24
10
120
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will the following pseudocode print? x = [1, 2, 3, 4] y = [a * 2 for a in x if a % 2 == 0] print(y)
[4, 8]
[2, 4, 6, 8]
[2, 6]
Error
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following pseudocode? def mystery(a, b): if b == 0: return a return mystery(b, a % b) print(mystery(8, 12))
1
4
8
12
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will this pseudocode output? def add_elements(arr): return sum(arr[i] for i in range(0, len(arr), 2)) print(add_elements([1, 2, 3, 4, 5, 6]))
9
12
15
18
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the result of the following pseudocode? x = "abcd" y = [i.upper() for i in x] print(y)
['A', 'B', 'C', 'D']
['abcd']
'ABCD'
Error
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does this pseudocode print? def rotate_list(lst, n): return lst[n:] + lst[ ] print(rotate_list([1, 2, 3, 4, 5], 2))
[1, 2, 3, 4, 5]
[3, 4, 5, 1, 2]
[2, 3, 4, 5, 1]
[4, 5, 1, 2, 3]
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of this pseudocode? def check_string(s): return s[::-1] == s print(check_string("level"))
True
False
Error
level
Create a free account and access millions of resources
Similar Resources on Wayground
21 questions
Flutter_Q1

Quiz
•
Professional Development
22 questions
Flutter_Q2

Quiz
•
Professional Development
18 questions
C Language

Quiz
•
Professional Development
25 questions
AP CSA Unit 1&2 Test

Quiz
•
8th Grade - Professio...
20 questions
C Programming Quiz

Quiz
•
Professional Development
20 questions
(R) Java Fundamentals

Quiz
•
Professional Development
24 questions
DATATYPES - INPUT/OUTPUT - OPERATORS

Quiz
•
Professional Development
25 questions
Pseudocode and Functions

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade