
Python Programming: Variables, F-string, User Input
Authored by Ivy Professional School
Education
Professional Development
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
13 questions
Show all answers
1.
OPEN ENDED QUESTION
3 mins • 1 pt
Full Name
Evaluate responses using AI:
OFF
2.
OPEN ENDED QUESTION
3 mins • 1 pt
Email ID
Evaluate responses using AI:
OFF
3.
OPEN ENDED QUESTION
3 mins • 1 pt
Student ID
Evaluate responses using AI:
OFF
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
What is the output of the following code?
x = 10
x= x + 5
print(x)
10
15
Error
None of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following?
x = 'hello'
y = x
x = x + ' world'
print(y)
'hello'
'hello world'
'world'
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code print?
x = 10
y = 20
print(f"{x=} and {y=}")
10 and 20
10= and 20=
x=10 and y=20
Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following variable names is valid in Python?
1variable
variable name
variable-name
_variable
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?