A string is immutable in Python?
basic programming quiz

Quiz
•
Computers
•
University
•
Hard

CHOLARAJA K
Used 24+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
True
False
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the output of the following code?
valueOne = 5 ** 2
valueTwo = 5 ** 3
print(valueOne)
print(valueTwo)
10
15
25
125
Error: invalid syntax
3.
MULTIPLE CHOICE QUESTION
5 sec • 1 pt
Can we use the “else” clause for loops?
True
False
4.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Write the output for following code snippet
for i in range(1, 5):
print(i)
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following code
salary = 8000
def printSalary():
salary = 12000
print("Salary:", salary)
printSalary()
print("Salary:", salary)
Salary: 12000 Salary: 8000
Salary: 8000 Salary: 12000
The program failed with errors
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following code?
var1 = 1
var2 = 2
var3 = "3"
print(var + var2 + var3)
6
33
13
Error. Mixing operators between numbers and strings are not supported
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
listOne = [20, 40, 60, 80]
listTwo = [20, 40, 60, 80]
print(listOne == listTwo)
print(listOne is listTwo)
True
True
True
False
False
True
False
False
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Py-Hackathon - Week 2 - Day 2

Quiz
•
University
15 questions
PROGRAMMING IN PYTHON - UNIT II - TEST 2 - MCQS

Quiz
•
University
15 questions
AITT LAB QUIZ 1

Quiz
•
University
10 questions
Python Sets

Quiz
•
University
10 questions
Python Round 2

Quiz
•
University
10 questions
Python quiz

Quiz
•
10th Grade - Professi...
10 questions
Python - Functions

Quiz
•
University
15 questions
Paper 2 Revision

Quiz
•
10th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade