
Python Inputting Text Quiz
Authored by Mr Lucas
Others
10th Grade
Used 3+ times

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
30 sec • 1 pt
What is a string in Python?
A collection of characters
A collection of functions
A collection of variables
A collection of numbers
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command is used to ask a question and let a user input data in Python?
query
input
ask
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to print a variable 'name' in a sentence?
print('Hello' & name)
print('Hello' name)
print('Hello', name)
print('Hello' + name)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to concatenate strings in Python?
Using ampersands
Using commas
Using plus sign
Using semicolons
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'input' function in Python?
To define a function
To receive user input
To perform mathematical operations
To output data to the console
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of a string?
12345
True
3.14
Boeing 747
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you use a previously assigned variable within an input statement?
Using colons
Using plus sign
Using commas
Using brackets
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?