Pseudocode Quiz

Pseudocode Quiz

Professional Development

23 Qs

quiz-placeholder

Similar activities

C Programming Quiz

C Programming Quiz

Professional Development

20 Qs

(R) Java Fundamentals

(R) Java Fundamentals

Professional Development

20 Qs

DATATYPES - INPUT/OUTPUT - OPERATORS

DATATYPES - INPUT/OUTPUT - OPERATORS

Professional Development

24 Qs

Pseudocode and Functions

Pseudocode and Functions

Professional Development

25 Qs

Flutter_Q1

Flutter_Q1

Professional Development

21 Qs

Assessment #2

Assessment #2

5th Grade - Professional Development

20 Qs

c-programming

c-programming

University - Professional Development

20 Qs

Assessment Rubric for TIK Teacher Selection

Assessment Rubric for TIK Teacher Selection

Professional Development

22 Qs

Pseudocode Quiz

Pseudocode Quiz

Assessment

Quiz

Computers

Professional Development

Medium

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?