Python Programming Quiz

Python Programming Quiz

9th - 12th Grade

6 Qs

quiz-placeholder

Similar activities

Python Basics Review Quiz 5.1.5 - 5.1.11 CodeHS

Python Basics Review Quiz 5.1.5 - 5.1.11 CodeHS

9th - 12th Grade

8 Qs

Python Revision Tour

Python Revision Tour

12th Grade

10 Qs

Python Basics

Python Basics

11th Grade

10 Qs

Coding3-Final-M.6

Coding3-Final-M.6

12th Grade

10 Qs

Python Errors

Python Errors

9th Grade

6 Qs

Python Basics

Python Basics

6th - 12th Grade

9 Qs

Introduction to Python Programming Quiz

Introduction to Python Programming Quiz

10th Grade

10 Qs

Introduction to Python Programming

Introduction to Python Programming

7th - 9th Grade

10 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Computers

9th - 12th Grade

Easy

Created by

Safa Thabet

Used 5+ times

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the print() function in Python?

To read user input

To display output on the screen

To define variables

To perform mathematical calculations

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is Python popular among programmers?

Because it is only used for creating games

Because it is fast to learn and easy to read/write

Because it is slow to write code

Because it is difficult to learn

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to start a new line in a print function?

\n

\s

\r

\t

4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

What is the correct syntax to write the print function in Python?

print('Hello, World!')

print['Hello, World!']

print 'Hello, World!'

print{'Hello, World!'}

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code: print('Hello,\nWorld!')?

Hello, World!

Hello,\nWorld!

Hello,
World!

Hello, World!

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

what is python?

nothing 

a programming language 

a code

a game