
Unit-V-Set Q & A
Authored by Ajitha Padmanabhan
Computers
Professional Development
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
8 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Indicate all of the following that are syntactically correct for creating a set.
set([1, 2, 3])
set((1, 2, 3))
{1, 2, 3}
[1,2,3]
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
For set s containing values 1, 2, 3, and set t containing 3, 4, 5, which of the following are the correct results for each given set operation?
(a) s | t -> {3}
s & t -> {1, 2, 3, 4, 5}
s - t->{1, 2}
s ^ t -> {1, 2, 4, 5}
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
For set s containing values 1, 2, 3 and set w of type frozenset containing values 'a','b','c', which of the following are valid set operations?
'a' in s
'a' in w
len(s) + len(w)
s.add(4)
w.add('d')
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A dictionary type in Python is an associative data structure that is accessed by a _______________ rather than an index value.
key
value
key value
index
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Associative data structures such as the dictionary type in Python are useful for,
accessing elements more intuitively than by use of an indexed data structure
maintaining elements in a particular order
insert and update
delete and drop
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following types can be used as a key in Python dictionaries?
strings
lists
tuples
numerical values
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a syntactically correct sequence, s, for dynamically creating a dictionary using dict(s).
s = [[1: 'one'],
[2: 'two'], [3: 'three']]
s = [[1, 'one'], [2, 'two'], [3, 'three']]
s = {1:'one', 2:'two', 3:'three'}
s ={[1:'one', 2:'two', 3:'three']}
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
How are you doing?
Quiz
•
Professional Development
10 questions
Quiz Day - Mesa de ayuda - Puestos de Pago
Quiz
•
Professional Development
10 questions
AWS ACF Módulo 1 - Visão geral dos conceitos de nuvem
Quiz
•
Professional Development
10 questions
Ai BG-Q#
Quiz
•
Professional Development
10 questions
Azure Cloud computing
Quiz
•
Professional Development
13 questions
GRAND OPENING INTERNSHIP EXERCISE 2024
Quiz
•
Professional Development
10 questions
CORSO G_SUITE parte seconda
Quiz
•
Professional Development
10 questions
Hen keeping
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
15 questions
LOTE_SPN2 5WEEK3 Day 2 Itinerary
Quiz
•
Professional Development
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
42 questions
LOTE_SPN2 5WEEK2 Day 4 We They Actividad 3
Quiz
•
Professional Development
6 questions
Copy of G5_U6_L3_22-23
Lesson
•
KG - Professional Dev...
20 questions
Employability Skills
Quiz
•
Professional Development