
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
15 questions
Python Workshop Day - 2

Quiz
•
University
15 questions
Python Variables

Quiz
•
University
16 questions
PAP Module-3 Part-2

Quiz
•
University
10 questions
Basic python

Quiz
•
University
10 questions
02 - Python - Introduction & Installation

Quiz
•
University - Professi...
15 questions
Python End of Topic Quiz

Quiz
•
8th Grade - University
10 questions
Introducción a Python - Clase 7

Quiz
•
University
15 questions
Python Basics

Quiz
•
University
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
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University