Python Unit 3, 4, 5

Python Unit 3, 4, 5

9th - 11th Grade

25 Qs

quiz-placeholder

Similar activities

Python Quiz

Python Quiz

6th - 10th Grade

20 Qs

Python - lists,loops,basics

Python - lists,loops,basics

9th - 11th Grade

20 Qs

Python Test

Python Test

11th Grade

20 Qs

Unit 3 Python TEST

Unit 3 Python TEST

11th - 12th Grade

20 Qs

Python outputs

Python outputs

7th - 11th Grade

20 Qs

Basic Python Concepts and Console Interaction

Basic Python Concepts and Console Interaction

9th Grade

20 Qs

Procedures and Functions

Procedures and Functions

10th Grade

20 Qs

Quiz Pemrograman Phyton

Quiz Pemrograman Phyton

9th - 12th Grade

20 Qs

Python Unit 3, 4, 5

Python Unit 3, 4, 5

Assessment

Quiz

Computers

9th - 11th Grade

Medium

Created by

Anthony Sinapi

Used 2+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which Python code segment will display “Hello, world!” on the screen?

display Hello, world!

print "Hello, world!"

print Hello, world!

input "Hello, world!"

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does the following Python code display?

print "Hello"

print "World"

Hello

World

HelloWorld

Hello World

"Hello"

"World"

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What type is the following variable?

x = "Hi there"

float

integer

boolean

string

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does the following Python program print?

x = "I am"

y = 6

z = "feet tall"

print x

print y

print z

I am 6 feet tall

I am6feet tall

I am

6

feet tall

x

y

z

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the type of the variable x in the following Python program?

x = input("Enter something: ")

string

integer

float

The type cannot be determined.

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does the following Python program print?

x = 9 + 6 / 3 * 2 - 1

print x

9

12

15

21

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following operations will output a value of 5?

11/2

11.0/2

float(11)/2

2 + 3 * 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?