Python Essentials 119

Python Essentials 119

Assessment

Flashcard

Computers

9th - 12th Grade

Hard

Created by

Quizizz 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

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?