Python Quizzes
Python Quizzes
Quiz review
Started on Thursday, 25 January 2024, 5:00 PM
State Finished
Completed on Thursday, 25 January 2024, 5:03 PM
Time taken 2 mins 22 secs
Marks 5/5
Grade 100 out of 100
Feedback Congratulations!!! You have passed by securing more than 80%
Question 1
Correct
Mark 1 out of 1
45573
Identify which of the following is an interpreted language.
Select one:
Pascal
Python
C++
45573
Your answer is correct.
Pascal, C and C++ are all compiled languages. Python is an interpreted language.
The correct answer is: Python
Question 2
Correct
Mark 1 out of 1
Select one:
True
45573
False
Case sensitive means that x is different from X. The value John is different from the value john. Python syntax is case-sensitive.
The correct answer is 'True'.
Question 3
Correct
Mark 1 out of 1
Select the command to be used to run the python script file named t.py.
Select one:
execute python t.py
python t.py
go python t.py
45573
The correct answer is: python t.py
Question 4
Correct
Mark 1 out of 1
Select one:
os.creat_dir()
os.create_dir()
45573
os.mkdir()
os.make_dir()
45573
Question 5
Correct
Mark 1 out of 1
Select one:
James Gosling
Bill Gates
Steve Jobs
45573
The correct answer is: Guido van Rossum
Jump to...
45573
45573
Dashboard / My courses / Python / Introduction to Python / Practice Session - Data Types
Quiz review
Started on Thursday, 25 January 2024, 5:04 PM
State Finished
Completed on Thursday, 25 January 2024, 5:05 PM
Time taken 1 min 45 secs
Marks 4.00/4.00
Grade 100.00 out of 100.00
Feedback
Congratulations!!! You have passed by securing more than 80%
45573
Question 1
Correct
Write the code to display the Python version by importing sys module.
import sys
print( sys.version )
Question 2
Correct
How will you display the info on float datatype by importing sys module?
import sys
print( sys.float_info )
Quiz review
Started on Thursday, 25 January 2024, 5:06 PM
State Finished
Completed on Thursday, 25 January 2024, 5:08 PM
Time taken 1 min 47 secs
Marks 5/5
Grade 100 out of 100
Feedback Congratulations!!! You have passed by securing more than 80%
Question 1
Correct
Mark 1 out of 1
45573
In Python, recall who detects the syntax error and when.
Select one:
compiler/at runtime
interpreter/at runtime
Question 2
Correct
Mark 1 out of 1
45573
Identify the symbol that a Python single line comment begins with.
Select one:
//
$$
#
/*
Mark 1 out of 1
Select one:
''' comments '''
/* comments */
// comments //
# comments #
Question 4
Correct
Mark 1 out of 1
Select the command to be used to start Python from the command prompt.
Select one:
45573
execute python
python
go python
run python
Mark 1 out of 1
A.
print("Programming is fun")
print("Python is fun")
B.
print("Programming is fun")
print("Python is fun")
C.
print("Programming is fun)
print("Python is fun")
D.
print("Programming is fun")
45573
print("Python is fun)
Select one:
B
45573
Your answer is correct.
Option A is wrongly intended.
Option C and D are wrongly quoted.
The correct answer is: B
◄ Stationary Shop
Jump to...
Quiz review
Started on Thursday, 25 January 2024, 5:09 PM
State Finished
Completed on Thursday, 25 January 2024, 5:11 PM
Time taken 2 mins 16 secs
Marks 5/5
Grade 100 out of 100
Feedback Congratulations!!! You have passed by securing more than 80%
Question 1
Correct
Mark 1 out of 1
45573
Define what kind of language is python ?
Select one:
Compiled
Interpreted
Outsourced
45573
The terms interpreted or compiled is not a property of the language but a property of the implementation. There are multiple
implementations of Python language. The official one is byte code ‘interpreted’. So, it is called as an interpreted language.
Question 2
Correct
Mark 1 out of 1
45573
Object Oriented Programming is possible in Python. State whether 'True' or 'False'.
Select one:
True
False
Mark 1 out of 1
Select one:
pow(x,y)
x^y
x**y
x^^y
45573
Question 4
Correct
Mark 1 out of 1
Select one:
//
/ 45573
/*
Question 5
Correct
45573
Mark 1 out of 1
Select one:
True
False
Jump to...
45573
45573
45573
Dashboard / My courses / Python / Control Structures / Practice Session - Conditional Statements
Quiz review
Started on Friday, 26 January 2024, 10:43 PM
State Finished
Completed on Friday, 26 January 2024, 10:44 PM
Time taken 1 min 3 secs
Marks 2.00/2.00
Grade 100.00 out of 100.00
Question 1
Correct
int a=25;
if a%5==0 :
Question 2
45573
Correct
(Note: Do not leave blank spaces between the operators and operands when writing an expression)
no=10
Marks / Grade /
Attempt State 4.00 100.00 Review Feedback
Re-attempt quiz
Jump to...
BMI Calculator ►
Dashboard / My courses / Python / Control Structures / Post Quiz - Control Structures
Quiz review
Started on Friday, 26 January 2024, 10:49 PM
State Finished
Completed on Friday, 26 January 2024, 10:51 PM
Time taken 1 min 55 secs
Marks 5/5
Grade 100 out of 100
Feedback Congratulations!!! You have passed by securing more than 80%
45573
45573
45573
Question 1
Correct
Mark 1 out of 1
Analyse and find which of the following loops correctly computes 1/2 + 2/3 + 3/4 + ... + 99/100.
A:
sum = 0
for i in range(1, 99):
sum += i / (i + 1)
B:
sum = 0
for i in range(1, 100):
sum += i / (i + 1)
print("Sum is", sum)
C:
sum = 0
for i in range(1.0, 99.0):
45573
sum += i / (i + 1)
print("Sum is", sum)
D:
sum = 0
for i in range(1.0, 100.0):
sum += i / (i + 1)
print("Sum is", sum)
Select one:
ABCD
45573
B
CD
BCD
CDE
45573
Option A is invalid because i takes values from 1 to 98 - last fraction in the sequence is 98/99, not 99/100. Option B is correct.
Mark 1 out of 1
Evaluate the given code and tell which single line of code can be used to replace this sample code?
nums = [1,2,3,4,5,6,7,8,9]
x=0
for n in nums:
x=x+n
print(x)
Select one:
print(sum(range(0,9)))
print(sum(range(1,9)))
print(sum(1 to 10))
45573
print(sum(range(1,10)))
Question 3
Correct
45573
Mark 1 out of 1
Select the choices that should not appear in the place of EXP - given : for k in EXP:
Select one:
a range of float
a dictionary
a string
a list
45573
a range of int
Mark 1 out of 1
Select one:
45573
The expression is valid and it executes successfully for all values of x.
Question 5
Correct
Mark 1 out of 1
45573
print("Correct" if isCorrect else "Incorrect")
Select one:
Nothing
Correct Incorrect
Incorrect
Correct
45573
The correct answer is: Incorrect
Jump to...
Quiz review
Started on Friday, 26 January 2024, 10:53 PM
State Finished
Completed on Friday, 26 January 2024, 10:55 PM
Time taken 2 mins 36 secs
Marks 5/5
Grade 100 out of 100
Feedback Congratulations!!! You have passed by securing more than 80%
Question 1
Correct
Mark 1 out of 1
45573
Predict the right output for the following code.
i=5
while True:
if i%9 == 0:
break
print(i)
i += 1
Select one:
5 6 7 8 9 10 11 12 13 14 15 ….
45573
56789
Error
5 6 7 8
45573
Question 2
Correct
Mark 1 out of 1
Select one:
i i i i i i …
no output
aaaaaa…
abcdef
45573
Your answer is correct.
Since a in abcdef (i.e, i in x) is always true, the character i will get printed infinite no of times in the same line, separated by white spaces since end = " ".
The correct answer is: i i i i i i …
45573
45573
Question 3
Correct
Mark 1 out of 1
Analyse and predict the value of b after the execution of this loop?
b=0
b += a + 1
Select one:
25
20
36
45
45573
Your answer is correct.
Here, a will take values from 0 to 10-1, stepping by 2. Hence, a takes values 0,2,4,6 an 8.
When a is 0, b=0+0+1=1
When a is 2, b=1+2+1=4
When a is 4, b=4+4+1=9
When a is 6, b=9+6+1=16
When a is 8, b=16+8+1=25
Question 4
Correct
Mark 1 out of 1
Select the statement that you can use for iterating over a block of statements N times
45573
Select one:
while n=0; n=n+1; n<N:
for n in range(N):
for n=1 to N:
while n in xrange(N):
Mark 1 out of 1
Analyse and select the statements that correctly explain the output of the given sample code.
if(True):
print("A")
if(100):
print("B")
if(" "):
print("C")
if ([[]]):
print("D")
Select one:
The following values are always interpreted as false:
False, None, numeric zero of all types, and empty strings and empty containers.
45573
User-defined objects can customize their truth value by providing a __bool__() method.
In the context of Boolean operations, the following values are interpreted as true:
True, numeric non-zero of all types, non-empty strings and containers containing empty containers.
45573
Dashboard / My courses / Python / Collection Frameworks / Practice Session - Lists
Quiz review
Started on Friday, 26 January 2024, 11:03 PM
State Finished
Completed on Friday, 26 January 2024, 11:05 PM
Time taken 2 mins 20 secs
Marks 5.00/5.00
Grade 100.00 out of 100.00
Feedback
Congratulations!!! You have passed by securing more than 80%
45573
Question 1
Correct
L1=[1,2,3,4,5,6]
Question 2
Correct
print( L1[-4] )
Question 3
Correct
Given the list : L1=[1,2,3,4,5,6], how will you display from the third element to the end of the list without specifying the end index?
print( L1[2:] )
Question 4
Correct
Given the list : L1=[1,2,3,4,5,6], how will you display the third and forth element by specifying positive start and end index ?
print( L1[2:4] )
Question 5
Correct
45573
Given the list: L1=[1,2,3,4,5,6], fill up the code to create a new list L2 that contains only the even numbers from the list L1 using the
concept of list comprehension.
(Note: Do not leave blank spaces between the operators and operands when writing an expression)
Jump to...
45573
Dashboard / My courses / Python / Collection Frameworks / Practice Session - Tuples
Quiz review
Started on Friday, 26 January 2024, 11:06 PM
State Finished
Completed on Friday, 26 January 2024, 11:09 PM
Time taken 3 mins 10 secs
Marks 3.00/3.00
Grade 100.00 out of 100.00
Feedback
Congratulations!!! You have passed by securing more than 80%
45573
Question 1
Correct
new_tuple=(101,102,103,104,105)
Question 2
45573
Correct
Given the tuple new_tuple = (101, 102, 103, 104,105), how will you display its third element ?
print( new_tuple[2] )
Question 3
Correct
45573
Fill up the code pertaining to enumerate method that adds index to the tuple, to bind index with the associated value using a for loop.
tup=(1,2,3,4,5)
print(index, tup)
Jump to...
45573
45573
Dashboard / My courses / Python / Collection Frameworks / Practice Session - Dictionaries
Quiz review
Started on Friday, 26 January 2024, 11:20 PM
State Finished
Completed on Friday, 26 January 2024, 11:22 PM
Time taken 1 min 49 secs
Marks 5.00/5.00
Grade 100.00 out of 100.00
Feedback
Congratulations!!! You have passed by securing more than 80%
45573
Question 1
Correct
Create a dictionary – Student_detail with the following key-value pair. Key - Name and Value – Ram.
Note: use single quotes for representing the key and the value, do not leave spaces
Student_detail={'Name':'Ram'}
Question 2
Correct
45573
Mark 2.00 out of 2.00
To the dictionary Student_detail, add a new key-value pair. Key - Languages_known and Value - English, Tamil, Hindi
Student_detail={'Name':'Ram'}
Note: use single quotes for representing the key and the values, do not leave spaces
45573
Student_detail['Languages_known']=['English','Tamil','Hindi']
Jump to...
Arrange Names ►
Dashboard / My courses / Python / Collection Frameworks / Post Quiz - Collection Frameworks
Quiz review
Started on Friday, 26 January 2024, 11:26 PM
State Finished
Completed on Friday, 26 January 2024, 11:27 PM
Time taken 40 secs
Marks 5/5
Grade 100 out of 100
Feedback Congratulations!!! You have passed by securing more than 80%
Question 1
Correct
Mark 1 out of 1
45573
Analyse the code and predict the output.
myList = [1, 5, 5, 5, 5, 1]
max = myList[0]
indexOfMax = 0
for i in range(1, len(myList)):
if myList[i] > max:
max = myList[i]
indexOfMax = i
print(indexOfMax)
1
45573
when a value greater than max is encountered. Finally, the index of max is printed. The index of max value 5 is 1 because there had not been a value greater
than 5 after 5 had been encountered at the 1st index.
The correct answer is: 1
Question 2
Correct
Mark 1 out of 1
Evaluate the given code snippet. Ignoring the order, which line of code will you use in the place of "# LINE A" to generate the output
shown here ?
# LINE A
print(mydict)
# Output: {'key1': 'val1', 'key2': 'val2', 'key3': 'val3', 'key4': 'val4', 'key5': 'val5'}
Select one:
45573
mydict = dict()
for x in range(len(keys)):
mydict[keys[x]] = vals[x]
mydict = dict()
mydict.fromkeys(keys, vals)
mydict = dict(keys.join(vals))
mydict = dict()
for x in keys:
45573
mydict[x] = vals.pop()
45573
Question 3
Correct
Mark 1 out of 1
Evaluate the given code. What is the value pertaining to (a == b, a is b) after the execution ?
a = [1, 2, 3, 1]
b = [1, 2, 3, 1]
Select one:
(False, False)
(True, False)
(False, True)
(True, True)
45573
Your answer is correct.
The == operator compares values of both the operands (a and b) and checks for value equality. Hence, true.
The is operator checks whether both the operands refer to the same object or not. Hence, false.
Question 4
Correct
Mark 1 out of 1
45573
Describe what will happen during the dictionary update dict[k] = v, if k isn’t present in dict.
Select one:
45573
The program updates the key which is closest to k
The correct answer is: The entry (k, v) is added to the dictionary
Question 5
Correct
Mark 1 out of 1
45573
Tuples are immutable and structured.
Lists are mutable and ordered.
The correct answers are: Tuples are structured, lists are ordered, Tuples are immutable, lists are mutable.
◄ Residents' Information
Jump to...
45573
45573
Dashboard / My courses / Python / Functions and Modules / Pre Quiz - Functions and Modules
Quiz review
Started on Friday, 26 January 2024, 11:36 PM
State Finished
Completed on Friday, 26 January 2024, 11:38 PM
Time taken 2 mins 2 secs
Marks 5/5
Grade 100 out of 100
Feedback Congratulations!!! You have passed by securing more than 80%
Question 1
Correct
Mark 1 out of 1
45573
If a=[20,30,40,50,60], show the value of a[3].
Select one:
50
60
40
45573
List index starts with 0. Hence, a[3] refers to the 4th element in the list which is 50.
The correct answer is: 50
45573
Question 2
Correct
Mark 1 out of 1
Select one:
45573
[[10], [10], [10], [10], [10]]
[[10, 20], [10, 20], [10, 20], [10, 20], [10, 20]]
[[10, 20], [10, 20], [10, 20], [10, 20], [10, 20], 30]
45573
The correct answer is: [[], [], [], [], []]
[[10], [10], [10], [10], [10]]
[[10, 20], [10, 20], [10, 20], [10, 20], [10, 20]]
[[10, 20], [10, 20], [10, 20], [10, 20], [10, 20], 30]
Question 3
Correct
Mark 1 out of 1
list1 = [2,4,6,8,10,12,14,16,18,20]
print (list1[0:1],list1[5:7])
Select one:
[2][12,14,16]
[4][14,16]
Error
Question 4
Correct
Mark 1 out of 1
45573
Create a string with the numbers from 0 to 100, "0123456789101112...". Choose the correct statement.
Select one:
The method join returns a string in which the elements of sequence have been joined by a str separator.
The only statement relevant to our scenario is "''.join([`x` for x in range(101)])
Mark 1 out of 1
"The 'break' statement can be used to terminate the 'if' condition". State True or False:
Select one:
True
False
45573
◄ Post Quiz - Collection Frameworks
Jump to...
Functions - Video ►
45573
45573
Dashboard / My courses / Python / Functions and Modules / Practice Session - Functions
Quiz review
Started on Sunday, 28 January 2024, 4:29 PM
State Finished
Completed on Sunday, 28 January 2024, 4:30 PM
Time taken 1 min 10 secs
Marks 6.00/6.00
Grade 100.00 out of 100.00
Feedback
Congratulations!!! You have passed by securing more than 80%
45573
Question 1
Correct
Get integer inputs for var1 and var2 from the user.
Define a function ‘add’, that takes var1 and var2 as arguments and returns its sum (return without parenthesis).
# variable declaration
var1=int(input())
var2=int(input())
# function definition
45573
def add(var1,var2):
return var1+var2
var3=add(var1,var2)
print(var3)
Quiz review
Started on Sunday, 28 January 2024, 4:33 PM
State Finished
Completed on Sunday, 28 January 2024, 4:34 PM
Time taken 34 secs
Marks 1.00/1.00
Grade 100.00 out of 100.00
Feedback
Congratulations!!! You have passed by securing more than 80%
45573
Question 1
Correct
Import sqrt function from math module. Print the square root of 25 using this function.
print(sqrt(25))
45573
◄ Modules and Packages - Presentation Deck New
Jump to...
45573
Dashboard / My courses / Python / Functions and Modules / Practice Session - Numpy package
Quiz review
Started on Sunday, 28 January 2024, 4:36 PM
State Finished
Completed on Sunday, 28 January 2024, 4:37 PM
Time taken 49 secs
Marks 1.00/1.00
Grade 100.00 out of 100.00
Feedback
Congratulations!!! You have passed by securing more than 80%
45573
Question 1
Correct
Fill up the code to generate and print 15 random integers between 1 to 100.
import numpy as np
print(np.random.randint(1,100,15))
45573
◄ Numpy Package - Presentation Deck Ne
Jump to...
Lucky Number ►
45573
Dashboard / My courses / Python / Functions and Modules / Post Quiz - Functions and Modules
Quiz review
Started on Sunday, 28 January 2024, 4:39 PM
State Finished
Completed on Sunday, 28 January 2024, 4:42 PM
Time taken 3 mins 42 secs
Marks 10/10
Grade 100 out of 100
Feedback Congratulations!!! You have passed by securing more than 80%
Question 1
Correct
Mark 1 out of 1
45573
Veena, a beginner in Python programing has written the code for counting the number of elements in the list. The code that she has
written is given below. Analyse and display the output for the given code.
def addItem(listParam):
listParam += [1]
mylist = [1, 2, 3, 4]
addItem(mylist)
print len(mylist)
Select one:
4
45573
5
45573
Question 2
Correct
Mark 1 out of 1
Analyze the code given below and choose the correct output.
d = lambda p: p * 2
t = lambda p: p * 3
x=2
x = d(x)
x = t(x)
x = d(x)
print(x)
Select one:
12
36
48
24
45573
Your answer is correct.
After assigning x with 2, d(x) is the first call to lambda function. The function returns 4(2*2) and is assigned to x.
t(x) is the second call and the function returns 12(4*3) and is assigned to x.
d(x) is the third call and the function returns 24(12*2) and is assigned to x. Now, x is 24.
45573
Question 3
Correct
Mark 1 out of 1
Identify which of the following methods return a string that represents the present working directory.
Select one:
os.pwd()
os.cwd() 45573
os.getcwd()
os.getpwd()
Mark 1 out of 1
Select one:
conversion of a byte stream into Python object hierarchy
45573
stream which can be stored on disk or sent over network.
The correct answer is: conversion of a Python object hierarchy into byte stream
Question 5
Correct
Mark 1 out of 1
Choose the best statement that describes the output of the given code snippets:
numbers=[-2,4,6,-1]
new_no = list(filter(lambda x:x>0,numbers ))
Select one:
45573
It will filter the negative numbers from a list
The correct answer is: It will filter the positive numbers from a list
45573
Question 6
Correct
Mark 1 out of 1
Identify which of the following functions can be used to create a symbolic link.
Select one:
os.symb_link()
os.symlink()
os.ln()
os.symblin()
45573
a path to another file or directory.
The correct answer is: os.symlink()
Question 7
Correct
Mark 1 out of 1
Which of the following functions can be used to read data from a file using a file descriptor?
Select one:
os.scan()
os.reader()
45573
os.quick_read()
os.read()
45573
Question 8
Correct
Mark 1 out of 1
Select one:
Question 9
Correct
Mark 1 out of 1
45573
State what print(os.geteuid()) prints?
Select one:
Question 10
Correct
Mark 1 out of 1
Returns an integer telling how close the file pointer is to the end of file
Jump to...
45573
45573
45573
Dashboard / My courses / Python / File Handling / Pre Quiz -File Handling
Quiz review
Started on Sunday, 28 January 2024, 6:18 PM
State Finished
Completed on Sunday, 28 January 2024, 6:19 PM
Time taken 57 secs
Marks 5/5
Grade 100 out of 100
Feedback Congratulations!!! You have passed by securing more than 80%
Question 1
Correct
Mark 1 out of 1
45573
Which of the following is a contiguous set of bytes used to store data in a specific organized format?
Select one:
A folder
A file
A file system
Question 2
Correct
Mark 1 out of 1
"Byte files are then translated into binary 1 and 0 for easier processing by the computer."
45573
State whether true or false.
Select one:
True
False
Mark 1 out of 1
Header: metadata about the contents of the file (file name, size, type, and so on)
Properties: name,size,creation date, modification date and contents of the file as written by the creator or editor
45573
The correct answers are: Header: metadata about the contents of the file (file name, size, type, and so on), Data: contents of the file as written by the creator
or editor, End of file (EOF): special character that indicates the end of the file
Question 4
Correct
Mark 1 out of 1
The file path is a string that represents the location of a file. What are major parts of a file path?
45573
File System: identifies which file system structure it is used.
Extension: the end of the file path pre-pended with a period (.) used to indicate the file type
Folder Path: the file folder location on the file system where subsequent folders are separated by a forward slash / (Unix) or
backslash \ (Windows)
The correct answers are: Folder Path: the file folder location on the file system where subsequent folders are separated by a forward slash / (Unix) or
backslash \ (Windows), File Name: the actual name of the file, Extension: the end of the file path pre-pended with a period (.) used to indicate the file type
45573
Question 5
Correct
Mark 1 out of 1
An encoding is a translation from byte data to human readable characters. What are the most common character encodings formats?
Object Code
Byte Code
ASCII
45573
◄ Post Quiz - Functions and Modules
Jump to...
45573
45573
Dashboard / My courses / Python / File Handling / Practise Session - Files
Quiz review
Started on Sunday, 28 January 2024, 12:52 AM
State Finished
Completed on Sunday, 28 January 2024, 12:55 AM
Time taken 2 mins 38 secs
Marks 3.00/3.00
Grade 100.00 out of 100.00
Feedback
Congratulations!!! You have passed by securing more than 80%
45573
Question 1
Correct
Open the file ‘odi.csv’ using DictReader in read mode and store it in the variable reader. (Use single quotes and do not leave the blank
spaces)
reader=csv.DictReader(open('odi.csv','r'))
Question 2
Correct
45573
Mark 2.00 out of 2.00
Fill the code to open the text file data_science in read mode using with statement and to print all the statements within the file. (Use
single quotes and do not leave the blank spaces)
with open('data_science.txt','r') as f:
print(f. readlines() )
45573
◄ JSON and XML Files - Presentation Deck New
Jump to...
Quiz review
Started on Sunday, 28 January 2024, 12:44 AM
State Finished
Completed on Sunday, 28 January 2024, 12:47 AM
Time taken 3 mins 23 secs
Marks 5/5
Grade 100 out of 100
Feedback Congratulations!!! You have passed by securing more than 80%
Question 1
Correct
Mark 1 out of 1
45573
Select the correct built-in function(s) to read a line of text from standard input, which by default comes from the keyboard.
Select one:
scanner
scanner
input
output
45573
The input() function reads a line entered on a console by an input device such as a keyboard and convert it into a string and returns it
The correct answer is: input
Question 2
Correct
Mark 1 out of 1
"You can read all the lines in the text file using .readlines() function". State True or False.
Select one:
45573
True
False
The method readlines() returns a list containing all the lines from the file.
The correct answer is 'True'.
Question 3
Correct
Mark 1 out of 1
"We can open a file in “a” mode to append text towards the end of the file". State True or False.
Select one:
True
False
We can open file in “a” mode to append text towards the end of the file. The file pointer is at the end of the file if the file exists. If the file
does not exist, it creates a new file for writing.
The correct answer is 'True'.
Question 4
Correct
Mark 1 out of 1
45573
Select the correct option(s) that describe(s) "pickling" in Python.
Select one:
It is for garbage collection
Question 5
Correct
Mark 1 out of 1
45573
"When we use DictReader for reading small csv files, each line in the file is read as dictionary and columns in the data will be available as
keys of the dictionary". State True or False.
Select one:
True
False
DictReader reads each line of a csv file as a dictionary and every column becomes the key of the dictionary.
The correct answer is 'True'.
45573
45573
45573