Python Essentials 119

Python Essentials 119

Assessment

Flashcard

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

19 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Which of the following is the correct way to print the phrase "Hello, World!" in Python? Options: print "Hello, World!", echo "Hello, World!", printf("Hello, World!"), print("Hello, World!")

Back

print("Hello, World!")

2.

FLASHCARD QUESTION

Front

What symbol is used to start a comment in Python?

Back

#

3.

FLASHCARD QUESTION

Front

Which of the following is a text-based programming language? Scratch, Python, Photoshop, Excel

Back

Python

4.

FLASHCARD QUESTION

Front

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

Back

Python Rocks!

5.

FLASHCARD QUESTION

Front

What is the correct file extension for Python files?

Back

.py

6.

FLASHCARD QUESTION

Front

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.

Back

It sends output to the console.

7.

FLASHCARD QUESTION

Front

What will be the output of the following code?
```python
# This is a comment
print("Comments are fun") # This is an inline comment
```

Back

Comments are fun

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?