Python Programming Quiz

Python Programming Quiz

9th - 12th Grade

6 Qs

quiz-placeholder

Similar activities

Intro to Python

Intro to Python

9th - 12th Grade

10 Qs

KIỂM TRA 15 PHÚT TIN 10 CD

KIỂM TRA 15 PHÚT TIN 10 CD

9th Grade

10 Qs

coding3

coding3

10th Grade

10 Qs

Quiz 140 - Comments in Python code

Quiz 140 - Comments in Python code

9th Grade

10 Qs

Python 1

Python 1

7th - 9th Grade

6 Qs

Python Beginner

Python Beginner

12th Grade

10 Qs

CodeHS Python Variables

CodeHS Python Variables

7th - 12th Grade

10 Qs

Python Basics: Operators and Variables

Python Basics: Operators and Variables

10th 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