Which of the following is incorrect file handling mode in Python?

QUIZ -21

Quiz
•
Computers
•
12th Grade - University
•
Hard

shanmugaraja .
Used 2+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
r
x
t+
b
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code
print('PYnative ', end='//')
print(' is for ', end='//')
print(' Python Lovers', end='//')
PYnative /
is for /
Python Lovers /
PYnative //
is for //
Python Lovers //
PYnative // is for // Python Lovers //
PYnative /is for /Python Lovers /
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
def func(val1, val2=2, val3=7, val4=1):
return val1**val2**val3
print(func(val2=2, val1=2, val3=4))
256
32768
65536
This code raises an exception
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How will you not create a dictionary?
d = {'milk': 50, 'celery': 40}
d = dict(milk=50, celery=40)
d = dict([ ('milk', 50), ('celery', 40) ])
d = { ('milk', 50), ('celery', 40) }
d = {} d['milk'] = 50 d['celery'] = 40
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code print?
a = [1, 2, 3]
a is a[:]
True
False
This code raises an exception
Error
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of these can you use as a dictionary key?
Please select 3 correct answers
'key'
'count;
['1','2']
('key','count')
5j
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of round(12.5) – round(11.5)?
1
0
2
3
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
l1 = [1, 2, 3]
l2 = l1
l3 = l1.copy()
l4 = list(l1)
l1[0] = [7]
print(l1, l2, l3, I4)
[7, 2, 3] [7, 2, 3] [1, 2, 3] [1, 2, 3]
[[7], 2, 3] [[7], 2, 3] [[7], 2, 3] [1, 2, 3]
[7, 2, 3] [7, 2, 3] [7, 2, 3] [1, 2, 3]
[[7], 2, 3] [[7], 2, 3] [1, 2, 3] [1, 2, 3]
Similar Resources on Quizizz
13 questions
Computer Science: CPU performance

Quiz
•
University
6 questions
listas y ciclos

Quiz
•
University
10 questions
Technical Terms - Hardware (A-Z) - CPU

Quiz
•
12th Grade
10 questions
CLASS 9 AI - VIVA 2024-25

Quiz
•
9th Grade - University
10 questions
ASK Ting 1 - Bab 1.1.1

Quiz
•
KG - University
10 questions
Plants vs zombies 2 quiz on plant names

Quiz
•
KG - 12th Grade
10 questions
Roteamento IS-IS

Quiz
•
University
10 questions
Anime

Quiz
•
KG - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University