Comp Sci Final

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/20

flashcard set

Earn XP

Description and Tags

Use learn mode -> multiple choice questions only

Last updated 1:12 PM on 5/20/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

21 Terms

1
New cards

What will be the value of sum1 after this code runs?

var START = 1;
var END = 4;

function start(){
    var sum1 = 0;
    for(var i = START; i <= END; i++){
        sum1 += i;
    }
}

10

2
New cards

If we want to draw a circle using our helpful drawCircle function at position (200, 300) with a radius of 50 and color purple, which is the correct function call?

As a reminder, here’s the function header for drawCircle:

function drawCircle(radius, color, x, y)

drawCircle(50, Color.purple, 200, 300);

3
New cards

Consider the following array:

var shoppingList = ["notebooks", "pencils", "calculator", "backpack", "markers"];

Which line of code will correctly change "markers" to "colored pencils"?

shoppingList[4] = "colored pencils";

4
New cards

Why do we compress data?

I. To save memory space on devices
II. To speed up the time it takes to send a file over the internet
III. The computation it takes to decompress data is cheaper than the storage space required to store uncompressed data


I, II, and III

5
New cards

Which of the following are true about Internet routing?

I. For any two points on the Internet, there exists only one path between the two points
II. Routing on the Internet is fault-tolerant and redundant

II only

6
New cards

Which of the following statements are true about using visualizations to display a dataset?

I. Visualizations are visually appealing but don’t help the viewer understand relationships that exist in the data
II. Visualizations like graphs, charts, or visualizations with pictures are useful for conveying information, while tables just filled with text are not useful.
III. Patterns that exist in the data can be found more easily by using a visualization

III only

7
New cards

Alma will make the honor roll if she has at least a 3.80 GPA and misses less than 5 days of school in a year. In which of the following cases will Alma make honor roll?

Alma has a 3.81 GPA and misses 3 days of school

8
New cards

If x represents the area of the number line colored blue, which inequality accurately reflects the value of x?

numberline

x < 2

9
New cards

Karel the Dog is instructed to move forward one space. Then, if Karel is standing on a ball, Karel will turn right. Otherwise, Karel will move forward two spaces. Given the starting point below, where will Karel end up?Starting Point:

Karel

Karel

10
New cards

Which of the following statements are true about the Internet?
I - The entire global population has Internet access
II - Widespread use of the Internet has led to concerns around privacy and copyright
III - Internet communication uses standard protocols that are used by all devices on the Internet
IV - The Internet connects devices and networks all over the world

II, III, and IV

11
New cards

Which binary value is equal to the decimal number 1210/12_10?

1100_2

12
New cards

Consider the following program code:

var sum = 0;
for(var i = 4; i  >  0; i--){
    sum += i;
}
println(sum);

What is the result of running this program code if sum is initialized to 1 instead?

11

13
New cards

Consider the following program code:

x = 9
y = 3
temp = x
x = y
y = temp

What are the values of x and y as a result of this program code?

x has a value of 3 / y has a value of 9

14
New cards

What will the following code print to the screen?

println(15 + 3);

18

15
New cards

Which of the following lists the types of copyright license from least restrictive to most restrictive?

Public Domain, Some Rights Reserved, All Rights Reserved

16
New cards

Which of the following best explains what happens when a new device is connected to the Internet?

An Internet Protocol (IP) address is assigned to the device.

17
New cards

Which of the following is a benefit of the fault-tolerant nature of Internet routing?

The ability to provide data transmission even when some connections between routers have failed

18
New cards

What is the latency of a system?

The time it takes for a bit to travel from sender to receiver

19
New cards

Which of the following best describes the difference between the domain and path of a URL?

The domain specifies where the browser’s request should be sent. The path specifies exactly what file is being requested.

20
New cards

What does URL stand for?

Uniform Resource Locator

21
New cards

Anything physical that lets a user interact with your idea is called a

Prototype