
Santiago Unit 6 Quiz

Quiz
•
Computers
•
12th Grade
•
Medium
James Santiago
Used 9+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A school is developing a program to keep track of information about students and their class schedules. In which of the following instances would a data abstraction be most helpful?
The program includes individual variables to store the names of each student rather than a single list of students.
A program includes multiple comments that could be combined into a single comment
A program includes repeated programming statements that could be moved inside a loop
A program includes repeated code that could be moved inside a function.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You're developing a program to manage information about students and their class schedules at a school. Which data abstraction would be most helpful to simplify and organize this data efficiently?
A. Individual variables for each student's name (e.g., name1, name2, ...)
B. A single list to store all student names
C. Multiple comments combined into a single comment
D. Repeated code sections moved inside a function
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Your program needs to store not only student names, but also their grades, schedules, and other information. How would you use data abstraction to manage this data effectively?
A. Create a single list to store all student information mixed together.
B. Use separate lists or other data structures for different types of information.
C. Combine data from multiple lists into a single variable for each student.
D. Use individual variables for each piece of information about each student.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You need to calculate students' average grades in multiple classes. Which data abstraction technique would help you write reusable code?
A. Copy and paste the calculation code multiple times for each class.
B. Write a separate function for each class to calculate the average grade.
C. Define a general function that can calculate the average grade for any class.
D. Create a global variable to store the average grade for all classes.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Your program gets complex as you add more features. What data abstraction technique can help you manage the overall structure effectively?
A. Do not Break down the code into functions .
B. Use large, all-encompassing functions that handle multiple tasks at once.
C. Organize the code into function and label and name variables .
D. Keep the code as simple as possible, avoiding any abstractions.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
wordList is a list of words that currently contains the values ["tree", "rock", "air"]
Which of the following lines will result in the list containing the values ["air", "rock", "air"] ?
wordList[0] = wordList[2]
insertItem(wordList, 0, "air")
wordList[2] = wordList[0]
removeItem(wordList, 0)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be displayed in the console when this program runs?
2
3
20
30
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
Problem Solving

Quiz
•
9th - 12th Grade
15 questions
INTRODUCTION TO OOP TECHNIQUE

Quiz
•
11th - 12th Grade
10 questions
AP Computer Science Principles - Unit 5: Lists, Loops

Quiz
•
9th - 12th Grade
11 questions
Computational Thinking

Quiz
•
12th Grade
9 questions
Computational Thinking Definitions Quiz

Quiz
•
12th Grade
10 questions
AP CSP Worksheet 2

Quiz
•
9th - 12th Grade
10 questions
Programming Paradigms

Quiz
•
12th Grade
16 questions
Computer Science GCSE Algorithms Lesson 2 Search

Quiz
•
12th Grade
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
10 questions
Afterschool Activities & Sports

Quiz
•
6th - 8th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
15 questions
Cool Tool:Chromebook

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
20 questions
Bullying

Quiz
•
7th Grade
18 questions
7SS - 30a - Budgeting

Quiz
•
6th - 8th Grade