Python Quiz 2

Python Quiz 2

9th Grade

20 Qs

quiz-placeholder

Similar activities

Test Your Knowledge of HTML

Test Your Knowledge of HTML

9th - 12th Grade

15 Qs

Input Device

Input Device

9th - 10th Grade

16 Qs

Excel

Excel

9th Grade

21 Qs

Excel Quiz

Excel Quiz

KG - University

15 Qs

ASK T3 : 1.1 Pembangunan Aturcara

ASK T3 : 1.1 Pembangunan Aturcara

1st - 12th Grade

20 Qs

Mengenal Jendela dan Ikon Microsoft Excel

Mengenal Jendela dan Ikon Microsoft Excel

7th Grade - University

15 Qs

Python Quiz 2

Python Quiz 2

Assessment

Quiz

Computers

9th Grade

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?