Python Essentials 119

Python Essentials 119

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Python Quiz 1

Python Quiz 1

9th - 12th Grade

20 Qs

G10 Python Exam

G10 Python Exam

10th Grade

15 Qs

Python

Python

11th Grade

20 Qs

Python

Python

9th Grade

15 Qs

Python

Python

9th Grade

16 Qs

Python basics

Python basics

7th - 10th Grade

18 Qs

Python Basics Review

Python Basics Review

10th Grade

18 Qs

Python Basics ;)

Python Basics ;)

11th Grade

20 Qs

Python Essentials 119

Python Essentials 119

Assessment

Quiz

Computers

9th - 12th Grade

Easy

Created by

Mr Minyard

Used 5+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to print the phrase "Hello, World!" in Python?

print "Hello, World!"

echo "Hello, World!"

printf("Hello, World!")

print("Hello, World!")

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What symbol is used to start a comment in Python?

//

/*

#

""

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a text-based programming language?

Scratch

Python

Photoshop

Excel

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code snippet? ```python print("Python" + " " + "Rocks!") ```

PythonRocks!

Python Rocks!

Python+Rocks!

"Python" "Rocks!"

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

How do you write a comment in Python that spans multiple lines?

Using # at the beginning of each line

Using /* at the beginning and */ at the end

Using at the end

Using triple quotes

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct file extension for Python files?

.pyt

.pt

.py

.python

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about the print() function in Python?

It can only print strings.

It sends output to the console.

It is used to read input from the user.

It cannot print variables.

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?