Python Cert - Day 5 (AM)

Python Cert - Day 5 (AM)

12th Grade

37 Qs

quiz-placeholder

Similar activities

BestOfTexas 1

BestOfTexas 1

9th - 12th Grade

40 Qs

Python Fuction 2

Python Fuction 2

12th Grade

32 Qs

Python: Control Structures Review

Python: Control Structures Review

9th Grade - University

34 Qs

Project STEM AP CS A Unit 1

Project STEM AP CS A Unit 1

9th - 12th Grade

34 Qs

JavaScript Function

JavaScript Function

9th - 12th Grade

33 Qs

JavaScript Functions and Parameters

JavaScript Functions and Parameters

9th - 12th Grade

33 Qs

[AP CSP] Programming with Conditionals [If, Elif, Else]

[AP CSP] Programming with Conditionals [If, Elif, Else]

9th Grade - University

35 Qs

PY-DICT

PY-DICT

12th Grade

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