idk bruh

studied byStudied by 0 people
0.0(0)
Get a hint
Hint
  1. 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?

1 / 14

flashcard set

Earn XP

Description and Tags

15 Terms

1
  1. 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?

A. The program includes individual variables to store the names of each student rather than a single list of students.

New cards
2
2. Which of the following will not result in an error if placed where the program reads <INSERT CODE\> and the program is run?

B. i < list.length

New cards
3
  1. 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"]?

a. wordList[0] = wordList[2]

New cards
4
  1. What will be displayed in the console when this program runs?

D. 30

New cards
5
  1. What will be displayed when this program finishes running?

D. 5

New cards
6
  1. What will be displayed in the console when the following program runs?

D. The program will result in an infinite loop

New cards
7
  1. What will the following program display in the console?

A. 0 1 2 3

New cards
8
  1. What will the following program display in the console?

C. 10

New cards
9
  1. The following question uses a robot in a grid of squares. The robot is represented by a triangle, which is initially facing up. Which of the following programs will move the robot to the gray square following the path shown on the grid?

A.

New cards
10
  1. ageList and grade.list contain information about students in a classroom. A programmer has already written the following code with that information. Which of the following programs will result in filteredNames only containing the names of students who are 17 or older?

D.

New cards
11
  1. If the program above is run, what will be displayed in the console?

B

New cards
12
12. A program is designed to determine the minimum value in a list of positive numbers called numList. The following program was written. Which of the following can be used to replace <MISSING CODE\> so that the program works as intended for every possible list of positive numbers?

D.

New cards
13
  1. A 2-sided coin has an equal likelihood of landing on each side. One side is called "heads" and the other is called "tails". The program below simulates randomly flipping that coin many time. Which of the following is NOT a possible combination of values of the variables in this program when it finishes running?

C.

New cards
14
  1. A restaurant knows from historical data that 60 out of 100 of its customers purchase a full meal while 40 out of 100 only order a side dish. The program below is intended to simulate the orders of 1000 customers.

D.

New cards
15
  1. A job placement agency helps match job seekers with potential employers. The agency would like to design a simulation in order to help predict the likely job placement outcomes for job seekers based on historical trends and patterns. Which of the following is most likely to be a benefit of the simulation?

B.

New cards

Explore top notes

note Note
studied byStudied by 12 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 5 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 308 people
Updated ... ago
5.0 Stars(4)
note Note
studied byStudied by 60 people
Updated ... ago
4.9 Stars(7)
note Note
studied byStudied by 35 people
Updated ... ago
5.0 Stars(2)
note Note
studied byStudied by 7 people
Updated ... ago
5.0 Stars(2)
note Note
studied byStudied by 8 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 21 people
Updated ... ago
5.0 Stars(1)

Explore top flashcards

flashcards Flashcard30 terms
studied byStudied by 3 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard156 terms
studied byStudied by 4 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard20 terms
studied byStudied by 1 person
Updated ... ago
5.0 Stars(1)
flashcards Flashcard36 terms
studied byStudied by 33 people
Updated ... ago
4.5 Stars(2)
flashcards Flashcard32 terms
studied byStudied by 19 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard30 terms
studied byStudied by 6 people
Updated ... ago
5.0 Stars(2)
flashcards Flashcard154 terms
studied byStudied by 33 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard164 terms
studied byStudied by 117 people
Updated ... ago
4.0 Stars(4)