PYTHON -- Print Statements

PYTHON -- Print Statements

Assessment

Flashcard

Computers

9th - 12th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

7 questions

Show all answers

1.

FLASHCARD QUESTION

Front

In Python, what command is used to display numbers and text on the screen/console?

Back

print

2.

FLASHCARD QUESTION

Front

In Python, what symbol is used to render a line of code as a comment?

Back

#

3.

FLASHCARD QUESTION

Front

Which line of code would make Hello, World! appear on the screen/console? Options: print Hello, World!, print("Hello, World!) , print("Hello, World!"), print(Hello, World!), print "Hello, World!"

Back

print("Hello, World!")

4.

FLASHCARD QUESTION

Front

What syntax is used to insert a break in a text string so it appears on different lines in the console? Options: /, \n, \l, n, /n

Back

\n

5.

FLASHCARD QUESTION

Front

If the characters are added to code, what will occur?

Back

Horizontal space will added between the text

6.

FLASHCARD QUESTION

Front

Based on the following line of code, what would appear in the console?
print(Hello, World!)

Back

SyntaxError

7.

FLASHCARD QUESTION

Front

Based on the following line of code, what would appear in the console?
print(\"That's What\" \n- she said)

Back

"That's What"
- she said