Python Test

Python Test

•

26 Qs

quiz-placeholder

Similar activities

KS3 Parts of a flower🌸

KS3 Parts of a flower🌸

KG - University

•

21 Qs

4ºD - Rocks and relief

4ºD - Rocks and relief

KG - University

•

23 Qs

Unit6(P2)

Unit6(P2)

KG - University

•

26 Qs

TTS1363 IIT REVISION CH01 - CH05

TTS1363 IIT REVISION CH01 - CH05

University

•

30 Qs

Minitest 3

Minitest 3

KG - University

•

30 Qs

Points, Lines, and Plane

Points, Lines, and Plane

University

•

30 Qs

Python Test

Python Test

Assessment

Quiz

•

others

•

•

Practice Problem

•

Medium

Created by

Alex Vera

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

26 questions

Show all answers

1.

OPEN ENDED QUESTION

30 sec • Ungraded

Name:

Evaluate responses using AI:

OFF

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to output a string to the console in Python?

console.log "The string to be printed"
""" The string to be printed """
# The string to be printed
print "The string to be printed"

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is Python?

a reptile
a spoken language
a programming language
a markup language

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is this variable equal to?

3
32
0
16

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the data type of x?

Integer
Boolean
String
Floating point number

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does the str() function do?

It capitalizes all the characters in the string.
It measures the length of a string.
It gets rid of all the capitalization in your string.
It converts its content into a string.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one is a single line comment in Python?

// No, I am a comment
""" This is a comment """
# I am a comment
"Pick me, I am a comment"

Access all questions and much more by creating a free account

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

Already have an account?