Pseudocode Quiz

Pseudocode Quiz

Professional Development

23 Qs

quiz-placeholder

Similar activities

Season 4 #Spaic Python Weekly Quiz

Season 4 #Spaic Python Weekly Quiz

KG - Professional Development

20 Qs

Array Data Structure Quiz for Beginners

Array Data Structure Quiz for Beginners

Professional Development

20 Qs

Flutter Online Quiz

Flutter Online Quiz

Professional Development

18 Qs

Promoters training FY24

Promoters training FY24

Professional Development

20 Qs

Java Chapter 11 Review Questions

Java Chapter 11 Review Questions

Professional Development

24 Qs

UJIAN MID SEMESTER 1 X RPL  PEMROGRAMMAN DASAR

UJIAN MID SEMESTER 1 X RPL PEMROGRAMMAN DASAR

Professional Development

25 Qs

Python: Quiz 2.03 - Basic Data Types

Python: Quiz 2.03 - Basic Data Types

Professional Development

25 Qs

Python Basic

Python Basic

Professional Development

19 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?