Search Header Logo

General Python year 10

Authored by Louise Lockwood

Computers

9th Grade - University

Used 10+ times

General Python year 10
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What symbol is used in python to assign values to a variable?

equals =
plus + 
forward slash /
asterisk *

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the correct output of the following code.

for i in range(10,15):       

print(i)

10

11

12

13

14

15

10

11

12

13

14

11

12

13

14

15

11

12

13

14

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is the correct code for creating a list of names?

nameList = John, Harry, Jesse, John, Harry, Harry

nameList = ("John", "Harry", "Jesse", "John", "Harry", "Harry")

nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]

nameList = [John, Harry, Jesse, John, Harry, Harry]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

List items have an index number. In the following list, which item has the index number of 3?

["John", "Harry", "Jesse", "John", "Harry", "Harry"]

"John"

"Harry"

"Jesse"

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

How many different variables are in this program?

2

5

3

4

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

The output of the program

x = 4

x = "Sally"

print(x)

four

Saly

Sally

4

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What will the output be from the following code?
print("Hello" + 2 + "world")

Hello 2 world
Hello2world
TypeError
HelloHelloworld

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?