You are tasked with creating an appropriate structure to store student names. The client would like the ability to pass in a name and wants to be sure that there can't be two students with the same name. Which would be the most suitable to use? Mark the correct answer(s)

4QFPy

Quiz
•
Computers
•
7th Grade
•
Hard
Tina Voci
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dictionary
List containing tuples
Nested list
Set
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which list function returns the number of items contained in the list?
Mark the correct answer(s)
len(listname)
listname.len()
listname.length()
length(listname)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following modes of file reading would be most appropriate for a program designed to update the contents of a .txt file without making any new deletion to the file. Mark the correct answer(s)
a
re
r
w
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which collection structure allows items that are ordered and changeable and contain duplicate values? Mark the correct answer(s)
Set
List
Tuple
Dictionary
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A programmer accidentally attempts convert the type of an object and receives the error: "int() cannot convert 'dog' into an integer". What error was likely raised in this instance? Mark the correct answer(s)
Value Error
Type Error
Name Error
Attribute Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following methods allows multiple items from a string to be added as individual elements to an existing list? Example:
list_one = [1,2,3]
string_one = 'abc'
list_one.method(string_one)
list_one = [1, 2, 3, 'a', 'b', 'c']
Mark the correct answer(s)
extend()
pop()
insert()
append()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code snippet?
careful = 0
second_chance = True
if careful: print('I got a second chance at this!')
elif second_chance: print('I am not being careful...')
else: print('I am being careful!')
Mark the correct answer(s)
'I am being careful!'
The execution will not enter the if-else statement.
'I am not being careful...'
'I got a second chance at this!'
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Computer trivia!

Quiz
•
5th - 8th Grade
10 questions
Programming - Syntax & Logic Errors

Quiz
•
3rd - 12th Grade
15 questions
Coding Pre-quiz

Quiz
•
6th - 9th Grade
15 questions
Python basics

Quiz
•
6th - 8th Grade
13 questions
Python

Quiz
•
7th - 8th Grade
14 questions
9.1.2 - Starter Quiz

Quiz
•
7th - 11th Grade
13 questions
Understanding Data Types and Errors

Quiz
•
6th - 8th Grade
10 questions
Quiz programming language

Quiz
•
7th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade