
python quiz

Quiz
•
Computers
•
University
•
Hard
Sujata B
Used 2+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
To which of the following the "in" operator can be used to check if an item is in it?
lists
tuples
dictionaries
All of the above
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output of the following Python code?
>>>t=(1,2,4,3)
>>>t[1:3]
(1,2)
(1,2,4)
(2,4)
(2,4,3)
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What will be the output of the following Python code?
d = {"john":40, "peter":45}
d["john"]
40
50
"jhon"
"peter"
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code?
>>>t = (1, 2)
>>>2 * t
(1, 2, 1, 2)
[1, 2, 1, 2]
(1, 1, 2, 2)
[1, 1, 2, 2]
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
How do you add an element to end of list in python?
list.add(element)
list.append(0,element)
list.append(element)
list.extend(element)
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
How do you find the number of elements in a list in python?
list.size()
list.count()
list.length()
len(list)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what is the result of the following code:
list1=[1,2,3]
list2=list1
list2[1]=4
print(list1)
[1,2,3]
[1,4,3]
[4,2,3]
error
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Python Basics

Quiz
•
University
15 questions
PyTron

Quiz
•
University
16 questions
Fundamentos de Python

Quiz
•
University
10 questions
Kiểm tra 15 phút Tin học 10 - DA - Bài 26,27,28

Quiz
•
10th Grade - University
15 questions
Conditions

Quiz
•
University
15 questions
coding

Quiz
•
KG - Professional Dev...
10 questions
Python Programming Concepts Challenge

Quiz
•
10th Grade - University
15 questions
Arrays, Lists, and Tuples

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University