
Lesson 42 - file related functions
Authored by NotchUp .co
Professional Development, Education
5th Grade
10 Questions
Used 22+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output-
f=open('abc','w')
l=['kolkata\n','delhi\n','chennai\n','mumbai\n']
f.write(l)
f.close()
print("written all the elements of list")
written all the elements of list
wrong arguments in write function error
file not available error
Opening wrong file mode error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following program :
print "Hello World"[::-1]
dlroW olleH
Hello Worl
d
Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code :
print 9//2
4
4.5
4.0
error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is not a core data type?
class
list
dictionary
set
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What data type is the object below ? L = [1, 23, ‘hello’, 1]
List
Dictionary
tuple
Array
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code :
print type(type(int))
type 'int'
type 'type'
error
0
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following program :
y = 8
z = lambda x : x * y
print z(6)
48
14
64
none
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
14 questions
Operaciones con fracciones 6º
Quiz
•
5th - 7th Grade
15 questions
PH 2 ADUM-Komunikasi ditempat kerja
Quiz
•
KG - 10th Grade
14 questions
asdsafddafvefdbw
Quiz
•
1st - 12th Grade
10 questions
RGPD quizz
Quiz
•
KG - Professional Dev...
10 questions
TEMA 1 SUBTEMA 1 NILAI DASAR PANCASILA
Quiz
•
5th Grade
10 questions
UNIT 15 : MASAKAN TKRS TAHUN 5
Quiz
•
5th Grade
10 questions
National Education
Quiz
•
1st - 10th Grade
10 questions
CÂU HỎI CỦNG CỐ - TẬP HUẤN SÁCH GIÁO KHOA - KHOA HỌC 5 (HTN)
Quiz
•
1st - 5th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Professional Development
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
10 questions
Context Clues
Quiz
•
5th Grade
10 questions
Christmas Trivia for Kids
Quiz
•
5th Grade
21 questions
Christmas Movies
Quiz
•
5th Grade