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
15 questions
Python Language Programming
Quiz
•
University
15 questions
Dictionary Python
Quiz
•
University
9 questions
OCR A Level Computer Science (H446) - Component 1.3.1 - Compression, Encryption and Hashing
Quiz
•
11th Grade - University
15 questions
Conditions
Quiz
•
University
10 questions
Unit 2 Python
Quiz
•
University
10 questions
Post Test #3 - Python Fundamental #2
Quiz
•
University
10 questions
Post Test #4 - Python Fundamental #3
Quiz
•
University
10 questions
Python Sets
Quiz
•
University
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade