Endterm v3D
Endterm v3D
Endterm v3D
a.
b. answer is b
c.
2. Fill in the gap: “List is a Python data structure that can contain multiple items and
replace ______ values. Supports extraction of ______ values from saved items.”
a. external; necessary
b. internal; necessary
c. internal; last
3. Determine the output of the following code:
a. Method, address
b. {}, function
c. [], index
6. What is needed to use in code below?
a. Nothing
b. Finally clause
c. Method
7. Using for with two-dimensional list, return the list of the elements from the last to the
first
a. True
b. False
a. False
b. True
c. SyntaxError: Invalid syntax
9. What will be the output of the following code:
a. Banana
b. Orange
c. Syntax Error
10. What method is?
a. A function attached to an object dealt with an object-oriented programming
b. A value passed to a function when calling the function
c. A function which returns an asynchronous generator iterator
11. Where arbitrary parameters are used?
a. tuple
b. list
c. both of them
12. Determine the output of the following code:
a. 0, identified
b. 1, used
c. 0, assigned
16. Determine the function of the following syntax: a_list[-2:]
a. Slicing two items from the end
b. Slicing entire items from the start except for the last two items
c. Slicing the first two items in reverse order
17. Put the size of the row and column in for in range and index them to …
a. Identify size of 2 dimensional list
b. Print the elements in the list
c. Returns row size
18. Which code gives output bellow?
0
00
000
0000
00000
a.
b. b answ er
c.
19. What is used to add new contents to the back of a life that has already been created?
a. a+
b. add
c. +++