Python set 2

Quiz
•
Other
•
University
•
Hard
ESPARK 2023
Used 5+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following functions is a built-in function in python?
sqrt()
factorial()
print()
seed()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does pip stand for python?
Preferred Installer Program
Pip Installs Python
Pip Installs Packages
All of the mentioned
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following functions can help us to find the version of python that we are currently working on?
sys.version[]
sys.version(1)
sys.version(0)
sys.version
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
set1 = {1, 3, 5}
set2 = {2, 4, 6}
print(len(set1 + set2))
error
6
3
0
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
s1 = {1, 2, 3, 4, 5}
s2 = {2, 4, 6}
print(s1 ^ s2)
{1,2,3,4,5}
{2,4}
{1,3,5,6}
{1,6,5,7}
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code snippet?
A) 0 1 0
B) 0 1 2
C) 0 1 StopIteration
D) None of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code snippet ?
A) 2 3
B) 1 2
C) error
D) None of the above
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
c set 3

Quiz
•
University
10 questions
#Sg_Spaic Last season Quiz (ML and Python)

Quiz
•
KG - Professional Dev...
15 questions
ICT Quiz Bees

Quiz
•
University
15 questions
C Quiz

Quiz
•
University
12 questions
JAVA FUNDAMENTALS

Quiz
•
University
15 questions
Unit 1 Mod 2 & 3 Test Review

Quiz
•
University
10 questions
python set 1

Quiz
•
University
10 questions
Praktisi Mengajar - Java Test

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade