Data Types Quiz..!

  1. What will be Output?
    list(“Welcome”)
    a. [‘W’, ‘e’, ‘l’, ‘c’, ‘o’, ‘m’, ‘e’]
    b. (‘W’, ‘e’, ‘l’, ‘c’, ‘o’, ‘m’, ‘e’)
    c. [‘Welcome’]
    d. None of the above

2.What is the common usage of ‘append’ ?
a. Add single element at end of list
b. Add multiple elements to the end of list
c. Insert any element at given index
d. remove single element from list

  1. What is the common usage of ‘pop’ ?
    a. Add single element at end of list
    b. remove any element from list at given index
    c. remove last element from list(By default)
    d. Both b & c

  2. Which of the following is immutable?
    a. Tuple
    b. Dictionary
    c. Set
    d. All of above

5.What is the common usage of ‘extend’ ?
a. Add single element at end of list
b. Add multiple elements to the end of list
c. Insert any element at given index
d. remove single element from list

4 Likes

Hello @shivrajrtandale98 i m from batch DS240623 i complited Quiz for Data Type
Here is the Answers for this Quiz
1 . a
2. a
3. d
4. a
5. b

1 Like

Hello @shivrajrtandale98 i m from batch DS240623 i completed Quiz for Data Type
Here is the Answer for the quiz

1.m = list(“Welcome”)
print(m)
Answer is a. [‘W’, ‘e’, ‘l’, ‘c’, ‘o’, ‘m’, ‘e’]
2.a=Add single element at end of list
3.b = remove any element from list at given index
4.a = Tuple
5.b=Add multiple elements to the end of list

1 Like

Good work…! @dilip.dilip22 keep it up. Also tell your classmates to answer in comment section.

Q1. Ans: a. [‘W’, ‘e’, ‘l’, ‘c’, ‘o’, ‘m’, ‘e’]
Q2. Ans: a. Add single element at end of list
Q3. Ans: d. Both b & c
Q4. Ans: b. Dictionary & c. Set
Q5. Ans: b. Add multiple elements to the end of list

1 Like

Well Done…! @harshdip1804

@shivrajrtandale98
1.c
2.a
3.d
4.a
5.b

1 Like

1.C.
2.a. add single element at end of list.
3.b. remove any element from at given list.
4. a. Tuple.
5. b. Add multiple elements to the end of the list.

1 Like

Good…! @vikithakare210

Well done…! @afsal143af

1 Like

Good…! @srinathreddy1531 Keep it up…

later on, i realized that it immutable, not mutable. so the answer is option a. Tuple

1 Like

1.c
2.a
3.d
4.a
5.b
bejugamsreeja1608@gmail.com

1 Like

The answers are :
1.A
2.A
3.D
4.A
5.B

1 Like

Great…! @vikithakare210 happy to see that you are evaluating your answers… I will provide answers in comments.

Good work…! @bejugamsreeja1608

@shivrajrtandale98 Below are the following quiz answers.

1.c
2.a
3.d
4.a
5.b

1 Like

Good work…! @karthikeyasurampudi2

Good…! @kkshiva516 keep it up…!

1 Like
  1. d, because a variable is not specified.
  2. a
  3. d
  4. a
  5. b
1 Like