Search Header Logo

Print and Input in Python 2022

Authored by Verónica Vivar

Computers, English

11th Grade

Used 11+ times

Print and Input in Python 2022
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 10 pts

What will be displayed on the Shell when the following statements run?

name = "Peter"

print(name)

name = "Peter"

There is a syntax error message.

Peter

name

2.

MULTIPLE CHOICE QUESTION

45 sec • 15 pts

What is the displayed output when the following statement is run?

print("phone", end="#")

print("number")

phone#

number

phone#number

phone # number

phone#

#number

3.

MULTIPLE CHOICE QUESTION

45 sec • 15 pts

Which of the following statements will print a message and NOT automatically advance to the next line for the next printed output?

print("Stay here\n")

This is not possible with the print() function

print("Stay here")

print("Stay here", end="")

4.

MULTIPLE CHOICE QUESTION

45 sec • 10 pts

Which of the following statements will ask the user for a favorite color and store the answer in the "color" variable?

color = input("What is your favorite color?")

input("What is your favorite color?", color)

input = color("What is your favorite color?")

color = print("What is your favorite color?")

5.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

Which parameter is used to print text in columns?

\n

end = ""

sep = ""

\t

6.

MULTIPLE CHOICE QUESTION

45 sec • 10 pts

What will be displayed on the Shell when the following statements run and name is Adam?

name = input("What is your name?")

print("Hello",name,". My name is Kelly.")

Hello, Adam, . My name is Kelly.

Hello Adam.

My name is Kelly.

Hello Adam . My name is Kelly.

Hello

Adam

My name is Kelly.

7.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

What will be displayed on the Shell when the following statement runs?

print(10,11,12)

10, 11, 12

10 11 12

10

11

12

10,

11,

12

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?