Search Header Logo

Python Part 1

Authored by Charl Fourie

Computers

7th - 12th Grade

Used 1+ times

Python Part 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What will be the output of the following code?

print("Hello" + "World")

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What will be the output of the following code?

msg = "Hi there"
print(msg)

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

a = input('Enter a number: ')
b = input('Enter another number: ')
print(a + b)

User inputs:
Enter a number: 5
Enter another number: 6

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What will be the output of the following code?

print(len("Hello World!"))

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What will be the output of the following code?

print("Hi" * 3 + "1" * 2)

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What will be the output of the following code?

x = "5"

y = 2

print(x * y)

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What will be the output of the following code?

name = "Harry"

surname = "Potter"

print(len(name + " " + surname))

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?