Python Basics Quiz

Python Basics Quiz

7th Grade

10 Qs

quiz-placeholder

Similar activities

แบบทดสอบย่อยที่ 1

แบบทดสอบย่อยที่ 1

8th Grade

10 Qs

year 8 lesson 2 quiz - python

year 8 lesson 2 quiz - python

8th - 10th Grade

14 Qs

Python

Python

7th - 8th Grade

13 Qs

exception

exception

University

10 Qs

Python - Y8 lesson 1

Python - Y8 lesson 1

8th Grade

12 Qs

Grade 12-Python selection&iteration

Grade 12-Python selection&iteration

11th - 12th Grade

15 Qs

8класс2

8класс2

8th Grade

10 Qs

1.2 Basic String Manipulation

1.2 Basic String Manipulation

9th Grade

10 Qs

Python Basics Quiz

Python Basics Quiz

Assessment

Quiz

Computers

7th Grade

Hard

Created by

Romana Azam

Used 4+ times

FREE Resource

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

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?