Python Basics Quiz

Python Basics Quiz

7th Grade

10 Qs

quiz-placeholder

Similar activities

Chapter 3 Exploring Linux Filesystems

Chapter 3 Exploring Linux Filesystems

11th Grade - University

10 Qs

Prosumers e influenciadores como ferramentas de negócios digitai

Prosumers e influenciadores como ferramentas de negócios digitai

University

11 Qs

THQT_Khoi7_Chude1_L2

THQT_Khoi7_Chude1_L2

6th - 8th Grade

15 Qs

POSPAGO 5.0

POSPAGO 5.0

University

10 Qs

Reforzamiento 3º y 4º año de secundaria - NSGUADALUPE

Reforzamiento 3º y 4º año de secundaria - NSGUADALUPE

6th - 8th Grade

10 Qs

social engineering

social engineering

1st Grade - Professional Development

10 Qs

Електронні таблиці Exel

Електронні таблиці Exel

1st - 12th Grade

12 Qs

test 3.6

test 3.6

11th Grade

10 Qs

Python Basics Quiz

Python Basics Quiz

Assessment

Quiz

Computers

7th Grade

Practice Problem

Hard

Created by

Romana Azam

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Indentation in Python is for readability only

TRUE

FALSE

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the missing part of the code to output 'Hello World!'

___("Hello World!")

output

cout

print

println

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Complete the code block, print "YES" if 5 is larger than 2.

if 5>2:

print yes

if 5>2:

print("YES")

if 5<2:

print 'yes'

if 5>2:

print: yes

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which character is used to define a Python comment:

'

//

#

/*

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a correct way to declare a Python variable?

var 5 = x

#x = 5

$x = 5

x = 5

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You can declare string variables with single or double quotes.

x = "John"
# is the same as
x = 'John'

FALSE

TRUE

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Variable names are not case-sensitive.

a = 5
# is the same as
A = 5

FASLE

TRUE

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?