Python Basics

Python Basics

Assessment

Flashcard

Computers

6th - 12th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

9 questions

Show all answers

1.

FLASHCARD QUESTION

Front

To display something on the screen, use this command:

Back

print()

2.

FLASHCARD QUESTION

Front

To display the following on screen
Hello World!
the following command should be used:

Back

print("Hello World!")

3.

FLASHCARD QUESTION

Front

What does the following code display?
x = 5 y = 6 print(x*y)

Back

30

4.

FLASHCARD QUESTION

Front

What does the following code display?
x = 5
y = 6
print("x*y")

Back

x*y

5.

FLASHCARD QUESTION

Front

The code is run. You type: six. Select the correct output.

Back

We have six cakes

6.

FLASHCARD QUESTION

Front

Operators used in python: divide, multiply, add, subtract

Back

/, *, +, -

7.

FLASHCARD QUESTION

Front

To display something on the screen, use this command:

Back

print()

8.

FLASHCARD QUESTION

Front

What is the output of the following code if sunny was entered? Options: Take a brolly!, Have a great day, The code would not run

Back

Have a great day

9.

FLASHCARD QUESTION

Front

What will be the output of the following code?
```python
x = 10
y = 5
print(x - y)
```

Back

`5`