Python lists and tuples

Quiz
•
Computers
•
12th Grade
•
Medium
srimathi narayanan
Used 354+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Pick the odd one in connection with collection data type
List
Tuple
Dictionary
Loop
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following function is used to count the number of elements in a list ?
count( )
find( )
len( )
index( )
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Let list1=[2,4,6,8,10] the print(list1[-2]) will result in
10
8
4
6
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the use of type( ) function in python ?
To create a tuple
To know the type of an element in tuple
To know the data type of the Python object
To create a List
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statement is not correct
A list is mutable
A tuple is immutable
The append function is used to add an element
The extend function is used in tuples to add elements in a list
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
If list=[10,20,30,40,50] then list[2]=35 will result
[35,10,20,30,40,50]
[10,20,30,40,50,35]
[10,20,35,40,50]
[10,35,30,40,50]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If list=[17,23,41,10] then list.append(32) will result
[32,17,23,41,10]
[17,23,41,10,32]
[10,17,23,32,41]
[41,32,23,17,10]
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Problem Solving using Python and R - UNIT II - Tuples

Quiz
•
12th Grade
12 questions
Python list starter

Quiz
•
10th Grade - University
14 questions
Python List Basics

Quiz
•
12th Grade
10 questions
9 . Lists, Tuples, Sets and Dictionary - 5

Quiz
•
12th Grade
10 questions
MASSIV

Quiz
•
12th Grade
10 questions
Data Structures Quiz

Quiz
•
12th Grade
14 questions
Python: списки, кортеж, словник, множина

Quiz
•
9th - 12th Grade
9 questions
Unit 5 -- Lists, Loops, Traversals

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade