Python Cert - Day 5 (AM)

Python Cert - Day 5 (AM)

12th Grade

37 Qs

quiz-placeholder

Similar activities

Functions in JavaScript

Functions in JavaScript

9th - 12th Grade

33 Qs

CS 3 Midterm 2023

CS 3 Midterm 2023

12th Grade

33 Qs

Arrays and Strings in C

Arrays and Strings in C

12th Grade - University

32 Qs

Java Control Structures

Java Control Structures

11th Grade - Professional Development

39 Qs

Java Test - 1

Java Test - 1

9th - 12th Grade

40 Qs

python set 3

python set 3

9th - 12th Grade

41 Qs

Variable Scope in Python

Variable Scope in Python

12th Grade

35 Qs

AP CSP - Standard 3 Review

AP CSP - Standard 3 Review

12th Grade

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