A string is immutable in Python?
Every time when we modify the string, Python Always create a new String and assign a new string to that variable.
python
Quiz
•
Computers
•
Professional Development
•
Hard
venkata lakshmi
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A string is immutable in Python?
Every time when we modify the string, Python Always create a new String and assign a new string to that variable.
True
False
Both
None
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
var1 = 1
var2 = 2
var3 = "3"
print(var1 + var2 + var3)
6
33
123
Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following
x = 36 / 4 * (3 + 2) * 4 + 2
print(x)
182.0
37
117
117.0
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following variable assignment?
x = 75
def myfunc():
x = x + 1
print(x)
myfunc()
print(x)
Error
76
1
None
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the data type of print(type(0xFF))
number
hexint
hex
int
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of print(type({}) is set)
True
False
Error
Not defined
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of print('%x, %X' % (15, 15))
15 15
F F
f f
f F
10 questions
Demo C programming
Quiz
•
Professional Development
15 questions
Programming - Screening Test
Quiz
•
3rd Grade - Professio...
10 questions
CCNA TEST 2
Quiz
•
Professional Development
11 questions
Java Fundamentals
Quiz
•
Professional Development
8 questions
Basic Python Data Types
Quiz
•
Professional Development
10 questions
Python Quiz
Quiz
•
Professional Development
10 questions
Senz AIoT Savants - ML & C++
Quiz
•
Professional Development
10 questions
04 - Python - Lists
Quiz
•
University - Professi...
15 questions
Multiplication Facts
Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz
Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set
Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025
Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)
Quiz
•
9th - 12th Grade
15 questions
June Review Quiz
Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles
Quiz
•
8th Grade
25 questions
Triangle Inequalities
Quiz
•
10th - 12th Grade