Search Header Logo

Year 8 Python End of topic assessment

Authored by Becky Webb

Information Technology (IT)

7th Grade

Used 5+ times

Year 8 Python End of topic assessment
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to start a comment in Python?

//

#

**

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code? ```python print(3 + 4) ```

34

7

3 + 4

Error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to get input from the user in Python?

get()

input()

read()

scan()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to declare a variable called 'score' with the value 10 in Python?

int score = 10

score = 10

var score = 10

score: int = 10

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid Python loop?

for i in range(5):

loop i = 1 to 5

repeat 5 times

while (i < 5)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to check if two values are equal in Python?

=

==

!=

equals

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following code? ```python print(2 ** 3) ```

6

8

9

5

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?