Python - End of module assessment

Python - End of module assessment

12th Grade

20 Qs

quiz-placeholder

Similar activities

Computer 10: Date and Time, String Manipulation Functions

Computer 10: Date and Time, String Manipulation Functions

7th Grade - University

15 Qs

Python-Basic

Python-Basic

3rd Grade - University

15 Qs

Python_2R

Python_2R

KG - Professional Development

20 Qs

Programming launchpad: Friday - JavaScript

Programming launchpad: Friday - JavaScript

12th Grade

16 Qs

Python programming

Python programming

6th - 12th Grade

16 Qs

การเขียนโปรแกรมภาษา python ม.5 ภาคเรียนที่ 2 ปีการศึกษา 2561

การเขียนโปรแกรมภาษา python ม.5 ภาคเรียนที่ 2 ปีการศึกษา 2561

10th - 12th Grade

20 Qs

Python Review KS3

Python Review KS3

9th - 12th Grade

17 Qs

Data Types

Data Types

9th - 12th Grade

20 Qs

Python - End of module assessment

Python - End of module assessment

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Steve Rich

Used 9+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

What is the value of c after the code has executed?

5

10

20

40

2.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

This function, given an int n, returns the difference between n and 21, except return double the difference if n is over 21.

What does the function return if we call with the argument: 25?

4

8

16

21

25

3.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

What is the value of c when output?

60

70

25

35

4.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

Consider the following code. Which paradigm is in use here?

Functional

OOP

Procedural

Event Driven

5.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

On line 11, what would we enter inside the parentheses to output the population of Canada?

canada

canada(population)

canada.population

population.canada

6.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

What is output?

Each character from the string one by one

T

h

e

...

The whole string 42 times

Every even character from the string one by one.

T

e

q

...

Every odd character from the string one by one

h

u

...

7.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which of the following is not a reserved (key) word in Python?

class

until

for

while

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?