Python Test

Python Test

26 Qs

quiz-placeholder

Similar activities

RNA and Protein Synthesis

RNA and Protein Synthesis

9th - 12th Grade

22 Qs

Basics in C Programming

Basics in C Programming

12th Grade

21 Qs

Nonfiction Text Features - Set 1

Nonfiction Text Features - Set 1

2nd Grade

24 Qs

Classroom Rules

Classroom Rules

KG - University

23 Qs

MS-LS3-1 Common Assessment Review

MS-LS3-1 Common Assessment Review

7th Grade

21 Qs

Python Test

Python Test

Assessment

Quiz

others

Hard

Created by

Alex Vera

FREE Resource

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"

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?