Unit 2 Review 1

Unit 2 Review 1

12th Grade

10 Qs

quiz-placeholder

Similar activities

for---Loop

for---Loop

3rd Grade - University

13 Qs

PLTW CSE Final Review Part -1

PLTW CSE Final Review Part -1

9th - 12th Grade

10 Qs

Python Projects Quiz

Python Projects Quiz

6th Grade - University

11 Qs

07 - Nested Structures

07 - Nested Structures

12th Grade

10 Qs

Python Demo Quiz Set1

Python Demo Quiz Set1

9th - 12th Grade

12 Qs

paper scissors stone

paper scissors stone

12th Grade

14 Qs

Python Inbuilt functions

Python Inbuilt functions

12th Grade

15 Qs

Practice for 2nd Python Quiz Comp Prog B

Practice for 2nd Python Quiz Comp Prog B

9th - 12th Grade

12 Qs

Unit 2 Review 1

Unit 2 Review 1

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Barbara Anderson

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

x=16.345

print(x-int(x))

What will output?

16.345

16

0.345

x

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When would you NOT use a string

To store a number such as 2.56

To store a name

To store a list of words

To store a list of phone numbers

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

What happens is the user types A when the code runs?

It prints the A

It prints 65

It prints 1

An error occurs

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is NOT a data type in Python?

integer

float

string

decimal

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What numbers might this code generate?

x = random.randint( 1 , 10 )

0

1.4

5

11

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is NOT a built-in function in Python?

print( )

string( )

int( )

float( )

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To generate numbers between and including -3 to 3 you would use:

randint(-3, 3)

random.random(-3, 3)

random.random( )*3 + 1

random.randint(-3, 3)

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?