Search Header Logo

Intro Python - Input, Math, and Strings

Authored by Bradbury Franklin

Computers

Used 1+ times

Intro Python - Input, Math, and Strings
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 • 1 pt

What syntax would you use to create a name variable that accepts user input?

name=input()

input=name

name=input{}

name=INPUT

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why would you use a for loop or a while loop?

To repeat a piece of code

To create a loop

To input data

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a output?

A piece of data that is shown on the screen.

Data that the user enters

An output

A orange

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the final result of the following expression?

(5 - 3) * 2 - 4

-8
0
12
error

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the result of the following expression?

(3 + (8 / 2 - 2)) ** 2

7
error
25
3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement will cause an error?

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

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement will cause an error? The variable name has been previously defined as name = "Susan".

print("Hello" + Susan)
print("Hello", name)
print("Hello " + name)
print(f"Hello {name}")

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?