What datatype is the object below?
L = [1, 23, ‘hello’, 1]
Python Quiz Techno India
Quiz
•
Computers
•
University
•
Medium
Rahul Mahato
Used 5+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What datatype is the object below?
L = [1, 23, ‘hello’, 1]
list
dictionary
array
tuple
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Write the output of below code:
a = True
b = False
c = True
if not a or b:
print ("a")
elif not a or not b and c:
print ("b")
elif not a or b or not b and a:
print ("c")
else:
print ("d")
a
b
c
d
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the answer to this expression, 22 % 3 is?
7
1
0
5
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Operators with the same precedence are evaluated in which manner?
Right to Left
Left to Right
Can’t say
None of these
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of the following has the highest precedence in the expression?
Exponential
Addition
Multiplication
Parentheses
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose t = (1, 2, 4, 3), which of the following is incorrect?
print(t[3])
print(max(t))
print(len(t))
t[3] = 45
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is called when a function is defined inside a class?
Module
Class
Another function
Method
10 questions
Python Sets
Quiz
•
University
10 questions
PYTHON_CHAPTER 7
Quiz
•
University
7 questions
if...else...if
Quiz
•
6th Grade - University
15 questions
Conditionals Unit Quiz
Quiz
•
9th Grade - University
15 questions
Dictionary Python
Quiz
•
University
10 questions
Unit 2 Python
Quiz
•
University
10 questions
Python quick quiz
Quiz
•
University
10 questions
Condicionales Python - TC1028
Quiz
•
University
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