
SAQ 3.2

Quiz
•
Other
•
University
•
Hard
Parker Gaston
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Python uses the ____ function to ask the user for a single string.
string
get
input
prompt
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following would be used to show a prompt before pausing for the user to enter a string?
input('Enter your input: ')
string('Enter your input: ')
get('Enter your input: ')
prompt('Enter your input: ')
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When we input a string into a running Python program, we must enclose our input in single quotes.
True
False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The Python input() function returns user input as a(n) _________ .
character
integer
whichever data type is specified
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The input() function requires a prompt string parameter.
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following would be best for getting the user's temperature, if our program was going to calculate an average temperature?
temp = input('Enter your current temperature:')
temp = float(input('Enter your current temperature:')
temp = int(input('Enter your current temperature:')
temp = str(input('Enter your current temperature:')
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following would be best for getting the user's first name?
firstName = input('Enter your first name:')
firstName = float('Enter your first name:')
firstName = int('Enter your first name:')
firstName = str('Enter your first name:')
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
DFC 10042 PROBLEM SOLVING AND PROGRAM DESIGN

Quiz
•
University
8 questions
Dart-Chapter1

Quiz
•
University
10 questions
HTML PHP C++

Quiz
•
University
10 questions
TIK

Quiz
•
University
7 questions
Cadenas con Formato y Lectura desde Teclado

Quiz
•
University
15 questions
Object Oriented Programming

Quiz
•
University
15 questions
Python Basics Quiz

Quiz
•
University
15 questions
UTS Interaksi Manusia dan Komputer

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University