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
10 questions
Data Structures Quiz

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

Quiz
•
9th - 12th Grade
14 questions
Python List Basics

Quiz
•
12th Grade
15 questions
Problem Solving using Python and R - UNIT II - Tuples

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

Quiz
•
12th Grade
10 questions
Python Generators

Quiz
•
10th Grade - University
15 questions
PYTHON PROGRAMMING

Quiz
•
11th - 12th Grade
12 questions
12cs cha9

Quiz
•
12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
6 questions
Maier - AMDM - Unit 1 - Quiz 1 - Estimation

Quiz
•
12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade
21 questions
9th Grade English Diagnostic Quiz

Quiz
•
9th - 12th Grade
7 questions
Characteristics of Life

Interactive video
•
11th Grade - University