List WS
List WS
SESSION: 2024-2025
CLASS/SEC: XI A B
15 Assertion: In python, unlike other types, you can change elements of a list in place.
Reason: Lists are mutable sequences.
16 Assertion: Any comma-separated group of values creates a list.
Reason: Only a group of comma-separated values or expressions enclosed in [ ]
, creates a list.
17 Assertion: Lists and strings have similar types of indexing.
Reason: Both lists and strings have two-way indexing , forward indexing and backward
indexing.
18 Assertion :Lists are similar to strings in a number of ways like indexing , slicing and accessing
individual elements.
Reason : Lists, unlike strings , are mutable.
19 Assertion : The membership operators in and not in work in the same way on lists as they do ,
with strings.
Reason :Some operators work differently on strings and lists , such as + and * .
20 Assertion: A list slice is an extracted part of a list.
Reason: A list slice is a list in itself.
21 If a is [1,2,3],is a*3 equivalent to a+ a+a?
22 If ai s[1,2,3],what is the meaning of a[1:1]=9?
23 WAP to Calculate mean of the given list of numbers.
24 Differentiate between append( ) and extend ( ) functions in Python.
25 WAP to count the frequency of a given element in the list of numbers
26 WAP to search for an element in a given list of numbers.
27 WAP to find minimum element from a list of elements along with its index in the list