Print and Input in Python 2022

Quiz
•
Computers, English
•
11th Grade
•
Hard
Verónica Vivar
Used 11+ times
FREE Resource
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
8.
MULTIPLE CHOICE QUESTION
45 sec • 10 pts
What will be displayed on the Shell when the following statement runs?
print("Have \n a great day")
Have
a great day
Have a great day
Have \n a great day
Have \n a GREAT DAY
9.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What will be displayed on the Shell when the following statement runs?
print("Name\tLastN\tAge")
print("Sandy\tSmith\t9")
Name, LastN, Age
Sandy, Smith, 9
NameLastNAge
SandySmith9
Name\LastN\Age
Sandy\Smith\9
Name LastN Age
Sandy Smith 9
Similar Resources on Wayground
10 questions
Digital Art Terms

Quiz
•
9th - 12th Grade
10 questions
Dictionary in Python

Quiz
•
11th - 12th Grade
8 questions
JS Question Practice

Quiz
•
9th - 12th Grade
11 questions
J277 Programming - Data Types

Quiz
•
9th - 11th Grade
10 questions
Python quiz

Quiz
•
10th Grade - Professi...
10 questions
Functions and Parameters Summative preview

Quiz
•
9th - 12th Grade
12 questions
Variables and data types

Quiz
•
4th - 12th Grade
10 questions
Word basics

Quiz
•
8th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade