
Python module 1
Authored by KRUPA CHOTAI
Computers
University
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
11 questions
Types of Mass Media
Quiz
•
10th Grade - Professi...
12 questions
IP-Com3 - Clase 2
Quiz
•
University
11 questions
Trees
Quiz
•
University
11 questions
Recap Chapter 6, 7, 8
Quiz
•
University
11 questions
Capítulo 3
Quiz
•
University - Professi...
10 questions
PYTHON BASICS PART 1
Quiz
•
University
10 questions
Visual Basic 2010
Quiz
•
8th Grade - University
10 questions
Inteligencia Artificial
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade