Santiago Unit 6 Quiz

Santiago Unit 6 Quiz

12th Grade

12 Qs

quiz-placeholder

Similar activities

Lesson 2 - Queues

Lesson 2 - Queues

11th - 12th Grade

14 Qs

Computer Science Principles

Computer Science Principles

9th - 12th Grade

8 Qs

Code.org CSA

Code.org CSA

9th - 12th Grade

8 Qs

Quiz One Review

Quiz One Review

7th - 12th Grade

14 Qs

INTRODUCTION TO OOP TECHNIQUE

INTRODUCTION TO OOP TECHNIQUE

11th - 12th Grade

15 Qs

coding

coding

7th Grade - University

14 Qs

Programming Paradigms

Programming Paradigms

12th Grade

10 Qs

Computer Science Slip test 2

Computer Science Slip test 2

12th Grade

10 Qs

Santiago Unit 6 Quiz

Santiago Unit 6 Quiz

Assessment

Quiz

Computers

12th Grade

Medium

Created by

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

Media Image

What will be displayed in the console when this program runs?

2

3

20

30

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?