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
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Python Generators

Quiz
•
10th Grade - University
10 questions
Python Sets

Quiz
•
University
10 questions
Python Dictionaries

Quiz
•
University
15 questions
CodeHS - Intro to Python - Conditionals Quiz

Quiz
•
9th Grade - Professio...
15 questions
Dictionary Python

Quiz
•
University
15 questions
Round 1 (Tech Utsav)

Quiz
•
University
10 questions
Unit 2 Python

Quiz
•
University
13 questions
Python Module 1

Quiz
•
University - Professi...
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade