Python Quiz 2

Python Quiz 2

9th Grade

20 Qs

quiz-placeholder

Similar activities

HTML

HTML

8th - 12th Grade

15 Qs

Y10M2A2 - Selection

Y10M2A2 - Selection

6th - 10th Grade

15 Qs

Traffic Light Project Quiz

Traffic Light Project Quiz

9th Grade

17 Qs

History of Computers

History of Computers

6th - 12th Grade

15 Qs

HTML and CMS

HTML and CMS

9th Grade

15 Qs

Networking Quiz

Networking Quiz

8th - 9th Grade

15 Qs

Arduino

Arduino

7th - 9th Grade

15 Qs

Ôn tập học kỳ I

Ôn tập học kỳ I

9th - 12th Grade

20 Qs

Python Quiz 2

Python Quiz 2

Assessment

Quiz

Computers

9th Grade

Practice Problem

Medium

Created by

Chris Dunn

Used 44+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you display text?

input
output
print
variable 

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following function convert a string to a float in python?

int(x,[,base])

long(x,[base])

float(x)

str(x)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

This operator means that one value is the same as the other value

==
!=
>
<

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

stores a piece of data, and gives it a specific name

variable
whitespace
interpreter
modulo

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The correct way to write a variable in Python?

my_variable = 10
my variable = 10
my_variable is 10
my_variable: 10

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these would work as a piece of code?

IF answer == "Yes":
if answer == "Yes"
if answer == "Yes":
if answer = "yes":

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

It is possible to execute both the statements under if and else at the same time.

TRUE

FALSE

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?