List,Tuples & Dict "A1" 1 / 50 Which removes first occurrence of value? pop()  cut()  del remove() 2 / 50 Tuple uses memory: more less double zero 3 / 50 (10,) * 3 gives: (10,30) (3,10) (10,10,10) Error 4 / 50 Function returns multiple values using: list tuple dict set 5 / 50 Unpacking means: merge delete error assigning tuple elements to variables 6 / 50 Tuple packing means: compress create tuple from values sort remove elements 7 / 50 Can tuple contain list? yes no error yes, but tuple remains immutable 8 / 50 Tuple comparison uses: > only & lexicographic order memory 9 / 50 (1, (2,3)) is: flat error nested tuple mixed 10 / 50 Count occurrences: total() findall() count() freq() 11 / 50 Index of tuple value: search index() locate() pos() 12 / 50 Empty tuple: {} [] None () 13 / 50 Tuple used in dictionary as: value only key only both (but keys must be immutable) none 14 / 50 Which tuple is correct? (1 2 3) [1,2,3] 1,2,3; (1,2,3) 15 / 50 Tuple repetition: prohibited allowed using * operator error infinite 16 / 50 max((1,2,3)) gives: 1 none 3 error 17 / 50 Which operator converts two tuples into one? {} + % * 18 / 50 Immutable होने से फायदा: remove duplicates safe for keys heavy slow 19 / 50 Tuple slicing returns: list tuple set dict 20 / 50 Tuple allows: insert delete update none of these 21 / 50 Output: tuple("ABC") ABC ('ABC') ('A','B','C') Error 22 / 50 Which converts list to tuple? map() convert() make() tuple() 23 / 50 Tuples are faster than lists because: stored in fixed memory sorted compiled smaller 24 / 50 Tuple defined as (5,) is: single-element tuple set list integer 25 / 50 Which of the following is immutable? dict set tuple list 26 / 50 Which method counts value occurrences? tally() count() freq() no() 27 / 50 What will be output? list("abc") abc ('a','b','c') a,b,c ['a','b','c'] 28 / 50 What is list repetition complexity? O(n+k) O(k²) none O(1) 29 / 50 Which operator checks membership? == in -> @ 30 / 50 To copy list without reference: L2 = L1 L2 == L1 L2 = L1.copy() none 31 / 50 sum(['1','2']) gives: 3 12 Error None 32 / 50 Which returns index of value? findpos() locate() index() search() 33 / 50 Nested lists stored: only numbers lists inside list cannot store function 34 / 50 Which search is fastest in list? Binary B. C. DFS BFS None (list search = O(n)) 35 / 50 min(['a','A']) gives: a A 'A' (ASCII small) Error 36 / 50 What is list comprehension? List delete list store Short way to create lists compression 37 / 50 Which reverses a list in-place? revert() reverse() rotate() sorted() 38 / 50 List slicing uses: {} [] () 39 / 50 max([]) gives: -1 Error None 0 40 / 50 Sorted() returns: new list string tuple . modifies original 41 / 50 Which removes first occurrence of value? pop() del remove() cut() 42 / 50 What does list.insert(1,10) do? add at end delete index insert at index replace 43 / 50 Output of: [1,2,3] * 2 [2,4,6] [1,2,3,1,2,3] Error [1,1,2,2,3,3] 44 / 50 Which method deletes all items of list? del list delete() removeall() clear() 45 / 50 Python list can store: Same data types only Numbers only Text only Different data types 46 / 50 Which operator is used to concatenate two lists? * / + > 47 / 50 Which method removes and returns the last element? del discard() pop() remove() 48 / 50 What will be the output of: len([[],[],[]])? 0 3 6 Error 49 / 50 Which method adds an element at the end of a list? appendall() append() add() insert() 50 / 50 Which of the following is a mutable data type? tuple string list int Your score isThe average score is 0% 0% Restart quiz