CP Module 2 Quiz Review

CP Module 2 Quiz Review

10th - 12th Grade

18 Qs

quiz-placeholder

Similar activities

MIL Module 2_Media Department

MIL Module 2_Media Department

11th - 12th Grade

20 Qs

will be doing/will have done

will be doing/will have done

8th - 12th Grade

15 Qs

Relational Pedagogy & Respectful Practice

Relational Pedagogy & Respectful Practice

12th Grade

17 Qs

Christmas Films

Christmas Films

KG - Professional Development

13 Qs

DNA Review

DNA Review

9th - 12th Grade

15 Qs

Les endroits dans la ville

Les endroits dans la ville

7th Grade - University

19 Qs

knife skills- parts of a chef knife

knife skills- parts of a chef knife

10th - 12th Grade

19 Qs

CP Module 2 Quiz Review

CP Module 2 Quiz Review

Assessment

Quiz

Other

10th - 12th Grade

Practice Problem

Easy

Created by

Marcia Bernas

Used 24+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To create a random number between –10 and 10 you would use:

print (random.random(-10))

print (random.randint(-10, 10))

print (random.randint( 10) -10)

print (random.random() -20)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To turn user input into an integer, you need the ______________ function.

float

int

str

val

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which variable name is the best to hold the area of a rectangle?

AREA

a

1A

area

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Consider the following code:

c = 500

c = c + 1

c = c + 1

c = c + 1

print (c)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is output?

print (16 % 8)

0

1

2

3

4

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a Python function?

int

str

input

dec

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which line of code is necessary for random numbers to work in Python?

import random

import integer

x = randomint

x = int(input ("Enter a number"))

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?