Important QnA Lists in Python class 11

In this article, you will get important QnA Lists in Python class 11. So here we begin!

QnA Lists in Python class 11

In the first section of QnA Creating Lists in Python class 11 let’s talk about Objective type questions. These objective type questions contain fill in the blanks, MCQs and True/False. So lets we start with them!

Part I

Objective Type Questions

  1. The _________ is a collection of values of any type.
  2. In lists, you can change the elements of a list in place. (True/False)
  3. The _______ brackets are used to enclose the values of a list.
  4. The property which changes the element of a list in place but not changes the memory address is known as __________.
  5. In the statement l = [], a _________ type of a list is created.
  6. You can split list elements across several lines. (True/False)
  7. A list cannot have another list inside one list. (True/False)
  8. The ___________ function allows to create a list of user’s input values enclosed in square brackets.
  9. l1= list(‘ClassXI’) returns :
    1. [‘C’,’l’,’a’,’s’,’s’,’X’,’I’]
    2. [‘ClassXI’]
    3. l1[‘ClassXI’]
    4. All of the above
  10. The position of each element in the list is considered as ___________.

Let’s have look at answers of all of the above questions for QnA Lists in Python class 11.

Answers

  1. list
  2. True
  3. [] – Square Brackets
  4. mutability
  5. empty
  6. True
  7. False
  8. eval()
  9. 1. [‘C’,’l’,’a’,’s’,’s’,’X’,’I’]
  10. index

In the next section of QnA Lists in Python class 11, lets talk about short answer questions.

Short answer questions

For answers of the following questions, refer this article:

Recommended: Creating Lists

  1. What do you mean by a python list?
  2. What are mutable and immutable types?
  3. Write statements to create the following lists in python:
    1. Empty List named MyList
    2. A list of a range of odd numbers from 1 to 10 named odd_list_1to10
    3. Create a list of values with the addition of 0.5 to the next value. Suppose you start at 5 then the next value will be 5.5 and then the next value will be 6.0 and so on.
    4. Create list l with your name
    5. Create a list of your favourite colours
  4. Explain various ways of creating a list with example.
  5. Write one similarity and one difference between lists and strings.
  6. What do you mean by index in the context of lists? Explain in brief.
  7. Create a list std to store the values like ID, student name, city, fees and contactno.
  8. What is the use of eval() function? Explain with an example.
  9. Create a list by user input to store various values related to generate an invoice. (Use at least 5 values)
  10. Consider the given list and find the output/error of below given questions: l = [‘Sachin’,55,[56,78,90,67],’I’]
    1. print(l[])
    2. print(l[3])
    3. print(l[2])
    4. print(l[2][2])
    5. print(l(2,1))
    6. print(l[2,1])
  11. What is a nested list? Explain your answer with a suitable example.
  12. Assume the output for the following python lists when print(l) is written for the output:
    1. l = list(‘Assignments’)
    2. l = list(input(“Enter the value:”)) the input is – 54321
    3. l = eval(input(“Enter values”))

Practice these questions and find the answers from the recommended article. That’s all from QnA Lists in Python class 11 focused on creating lists in python.

Share your views/feedback/suggestions about this article in the comment section.

Thank you for

Leave a Reply