
Python module 1

Quiz
•
Computers
•
University
•
Hard
KRUPA CHOTAI
Used 6+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Tutorials Point' [100:200]?
Index error
' '
'Tutorials Point'
Syntax error
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
what is the output
a = (1, 2)
a[0] +=1
(1,1,2)
2
type error
syntax error
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the value of this expression?
2**2**3**1
12
64
128
256
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code?
list = ['a','b','c','d','e']
list += 'de'
print(list)
['a','b','c','d','e']
['a','b','c','de']
['a','b','cde']
This raises an exception because we cannot add a string to a list
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
val=154
while(not(val)):
val**=2
else:
val//=2
77
154
11858
23716
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
s = 0
for d in range(0, 5, 0.1):
… s += d
… print(s)
syntax error
type error
runtime error
both C & D
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
import math
def main():
math.cos(math.pi)
main()
print(main())
1
None
Error
math.pi is not defined
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
DEBUG THE CODE

Quiz
•
University
14 questions
Quiz on Sets and Predictive Analytics in Python

Quiz
•
University
10 questions
8.2 Arrays Cambridge IGCSE 0478

Quiz
•
10th Grade - University
10 questions
C++ quiz

Quiz
•
10th Grade - Professi...
15 questions
C programming

Quiz
•
University
15 questions
Milking Minds 2 17-01-24

Quiz
•
University
15 questions
HCI 584 Python quiz

Quiz
•
University
10 questions
Списки Python + Pygame

Quiz
•
KG - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University