What is the output of the following code?
var1 = 1
var2 = 2
var3 = "3"
print(var1 + var2 + var3)
day1
Quiz
•
Other
•
Professional Development
•
Hard
jahar fatima
Used 5+ times
FREE Resource
13 questions
Show all answers
1.
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. Mixing operators between numbers and strings are not supported
2.
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
The Program executed with errors
3.
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
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The in operator is used to check if a value exists within an iterable object container such as a list. Evaluate to True if it finds a variable in the specified sequence and False otherwise.
True
False
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
var= "James Bond"
print(var[ 2 : : -1 ])
Jam
dno
maJ
dnoB semaJ
6.
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
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Can we use the “else” block for for loop?
for example:
for i in range(1, 5):
print(i)
else:
print("this is else block statement" )
Yes
No
10 questions
#Sg_Spaic Last season Quiz (ML and Python)
Quiz
•
KG - Professional Dev...
10 questions
Java Strings
Quiz
•
1st Grade - Professio...
12 questions
Feminno Quiz #1
Quiz
•
Professional Development
10 questions
Niche Case
Quiz
•
Professional Development
10 questions
Computing Basics
Quiz
•
Professional Development
10 questions
Python Practice 5 - Tuple
Quiz
•
Professional Development
10 questions
The Great Press Team Quizz
Quiz
•
Professional Development
11 questions
Python Practice 2
Quiz
•
Professional Development
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