WorksheetsPPS Lab Viva (Pending Students)
Total questions: 5
Worksheet time: 3mins
Name
Class
Date
1.
What is the correct way to read a single line of string input from the user in Python?
2.
Which function is used to write output to the console in Python?
a)
write()
b)
console()
c)
output()
d)
print()
3.
Which Python data structure is ordered, changeable, and allows duplicate members?
a)
Tuples
b)
Set
c)
dictionary
d)
List
4.
What is the most memory-efficient way to handle a large collection of numeric data (like integers or floats) that requires arithmetic operations in Python?
a)
Python List
b)
Python Dictionary
c)
Numpy Array
d)
Python Tuple
5.
If a is a 1-dimensional NumPy array, which operation adds the value 5 to every single element in a
a)
np.add(a, 5)
b)
a + 5
c)
a.add(5)
d)
a.append(5)
100 %
