
Lists!
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Hard
Erin Glaser
Used 3+ times
FREE Resource
Enhance your content in a minute
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a benefit of using a list as a data abstraction in a program?
Lists often allow their size to be easily updated to hold as many data values as needed
Lists convert all elements to strings so that they can be inspected character-by-character.
Lists prevent duplicate data values from appearing in the list.
Lists are used to store all input data so that there is a running record of all user input.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A programmer has a need to round many numeric values to the nearest integer. Which of the following best explains the benefit of using a list as a data abstraction in this situation?
Keeping the numeric values in a list makes it easier to round a number to the nearest integer.
Keeping the numeric values in a list makes it easier to apply the same computation to every data element.
Keeping the numeric values in a list makes it easier to prevent a program from unintentionally changing the value of a variable.
Keeping the numeric values in a list makes it easier to prevent a program from attempting to access an index beyond the length of the list.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Step 3
Increase the value of position by 1.
Step 4
Repeat steps 2 and 3 until the value of count is greater than 100.
Step 3
Increase the value of position by 1.
Step 4
Repeat steps 2 and 3 until the value of position is greater than n.
Step 3
Repeat step 2 until the value of count is greater than 100.
Step 4
Increase the value of position by 1.
Step 3
Repeat step 2 until the value of position is greater than n.
Step 4
Increase the value of count by 1.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the following procedure, the parameter numList is a list of numbers and the parameters j and k are integers.
Which of the following is the most appropriate documentation to appear with the swapListElements procedure?
Returns a copy of numList with the elements at indices j and k interchanged.The value of j must be between 0 and the value of k, inclusive.
Interchanges the values of the parameters j and k.The value of j must be between 0 and the value of k, inclusive.
Returns a copy of numList with the elements at indices j and k interchanged.The values of j and k must both be between 1 and LENGTH(numList), inclusive
Interchanges the values of the parameters j and k.The values of j and k must both be between 1 and LENGTH(numList), inclusive.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the contents of yourList after the code segment is executed?
[20, 40, 60, 80]
[10, 30, 50, 70, 20, 40, 60, 80]
[20, 40, 60, 80, 10, 30, 50, 70]
[10, 30, 50, 70]
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
MS PowerPoint
Quiz
•
11th Grade
10 questions
Lesson 1-Media and Information Literacy
Quiz
•
11th Grade
10 questions
Writer - II
Quiz
•
11th Grade
10 questions
Networks 1.3
Quiz
•
9th - 12th Grade
10 questions
Python Testing
Quiz
•
9th - 12th Grade
10 questions
YouCode Scratch Quiz
Quiz
•
KG - 12th Grade
10 questions
Working with tables
Quiz
•
5th - 12th Grade
10 questions
E-Tech Lesson 1
Quiz
•
11th Grade
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
