Python Quiz 2

Python Quiz 2

9th Grade

20 Qs

quiz-placeholder

Similar activities

Python Basics Recap

Python Basics Recap

8th - 11th Grade

23 Qs

Python-Basic

Python-Basic

3rd Grade - University

15 Qs

Python_2R

Python_2R

KG - Professional Development

20 Qs

Python Basics

Python Basics

KG - University

16 Qs

Computer Science (Python)

Computer Science (Python)

9th Grade

18 Qs

Python First Steps Homework Quiz

Python First Steps Homework Quiz

7th - 9th Grade

20 Qs

Python basics

Python basics

2nd - 9th Grade

20 Qs

Python - Quiz

Python - Quiz

9th - 11th Grade

17 Qs

Python Quiz 2

Python Quiz 2

Assessment

Quiz

Computers

9th Grade

Medium

Created by

Chris Dunn

Used 44+ times

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?