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
15 questions
C Quiz

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

Quiz
•
University
15 questions
Aggregate Demand and Aggregate Supply

Quiz
•
University
12 questions
JAVA FUNDAMENTALS

Quiz
•
University
15 questions
B1B ELECTRO 2 SEMI-FINAL QUIZ NO. 2

Quiz
•
University
10 questions
OUTPUT DEVICES YEAR 2 WK 4

Quiz
•
10th Grade - University
10 questions
Uncontrolled Half-wave Rectifier

Quiz
•
University
9 questions
quiz - 7(exceptions and file handling)

Quiz
•
12th Grade - 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 Other
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