Python Cert - Day 5 (AM)

Python Cert - Day 5 (AM)

12th Grade

37 Qs

quiz-placeholder

Similar activities

Text Adventure Game Functions Quiz - Part 1

Text Adventure Game Functions Quiz - Part 1

12th Grade

40 Qs

Unit 5 AP CSP Code.org

Unit 5 AP CSP Code.org

9th - 12th Grade

33 Qs

Python Basics-01

Python Basics-01

9th - 12th Grade

32 Qs

AP CS A unit 1

AP CS A unit 1

11th Grade - University

36 Qs

Python Nested Conditionals

Python Nested Conditionals

9th - 12th Grade

35 Qs

JS Lesson 31-72

JS Lesson 31-72

12th Grade - University

40 Qs

Code.org Unit 5 Test

Code.org Unit 5 Test

9th - 12th Grade

33 Qs

c++ language Quiz

c++ language Quiz

9th - 12th Grade

34 Qs

Python Cert - Day 5 (AM)

Python Cert - Day 5 (AM)

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Bobby Liu

Used 2+ times

FREE Resource

37 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 6 pts

Media Image

The following snippet:

is erroneous

will output 4

will output None

will output 2

2.

MULTIPLE CHOICE QUESTION

1 min • 6 pts

Media Image

What is the output of the following snippet?

2

the snippet is erroneous and will cause SyntaxError

4

6

3.

MULTIPLE CHOICE QUESTION

1 min • 6 pts

Media Image

What is the output of the following piece of code if the user enters two lines containing 3 and 2 respectively?

2

1

0

3

Answer explanation

4.

MULTIPLE CHOICE QUESTION

1 min • 6 pts

Media Image

What will be the output of the following snippet?

1 0

0 1

1 1

0 0

5.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

An operator able to check whether two values are NOT EQUAL is coded as:

!=

not ==

<>

=/=

6.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

How many elements does the lst list contain?

lst = [i for i in range(-1, -2)]

one

zero

two

three

7.

MULTIPLE CHOICE QUESTION

1 min • 6 pts

Media Image

What is the output of the following snippet?

[2, 1, 1, 2]

[1, 1, 1, 2]

[1, 2, 1, 2]

[1, 2, 2, 2]

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?