Problem Solving using Python and R - UNIT II - List

Quiz
•
Computers
•
12th Grade
•
Medium
MS.SHYAMALADEVI C
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the method used to add an element at the end of a list in Python?
append()
add()
insert()
extend()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following will create a list in Python?
list = (1, 2, 3)
list = [1, 2, 3]
list = {1, 2, 3}
list = <1, 2, 3>
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the first element of a list named `my_list`?
my_list[0]
my_list(1)
my_list{1}
my_list.first()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code: `print([1, 2, 3] + [4, 5])`?
[1, 2, 3, 4, 5]
[1, 2, 3, [4, 5]]
[4, 5, 1, 2, 3]
[1, 2, 3, 5]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to remove an item from a list by its value?
delete()
remove()
discard()
pop()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of `len([1, 2, 3, 4])`?
3
4
5
None
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is true about lists in Python?
Lists are immutable.
Lists can contain elements of different data types.
Lists can only contain integers.
Lists cannot be nested.
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
List Review Quiz

Quiz
•
9th - 12th Grade
10 questions
CSE 1.2.4 Quiz

Quiz
•
9th - 12th Grade
11 questions
Javascript Lists Lecture Knowledge Check

Quiz
•
9th - 12th Grade
7 questions
Python-list,tuple,Dictionary

Quiz
•
11th - 12th Grade
10 questions
B3 curs 11

Quiz
•
12th Grade
10 questions
G10 CS Linear Search

Quiz
•
12th Grade
15 questions
Basic Data Structures - Intro to CS

Quiz
•
12th Grade
13 questions
Robust Programming

Quiz
•
11th - 12th Grade
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade