stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Do, Samuel Summative Test Project Flashcards | StudBud
Explore
/
Do, Samuel Summative Test Project
Do, Samuel Summative Test Project
100 terms
·
StudBud Administration
Imported from external platform
Flashcards
100 cards
F
Practice quiz
P
Host live
L
Questions
100
Answers
1
What is displayed after the following algorithm is run?
132
100
50
32
2
Which search algorithm is most efficient for a sorted list?
Bubble search
Binary search
Depth-first search
Linear search
3
Which of the following is NOT metadata for the picture?
The time the picture was taken
The memory space taken up by the picture
The location where the picture was taken
The picture of the dog
4
Which of the following can be represented by a single binary digit?
Time
Date
Geographic location
Light on / light off
5
What percentage of the time will the following program display a number?
25%
10%
20%
75%
6
Which best describes the role of TCP?
A common protocol for encrypting and decrypting data
Setting the rules for a numerical label assigned to each internet device
The set of rules for the path packets taken on the fault-tolerant internet
The foundation of data communication for the World Wide Web
7
What does the algorithm display?
5
7
4
3
8
We can convert a number from decimal to octal (base 8) by repeatedly subtracting the largest possible powers of what?
2
7
9
8
9
What is the decimal equivalent of the binary number 1101?
12
11
13
14
10
What will be displayed by mystery (3, myList)?
9 6 3 0
9 6 3
10 8 7 5 4 2 1
10 8 7 5 4 2 1 0
11
What will the following code segment display?
10
1 4 7 10 9
9 10 7 4 1
Nothing will be displayed due to the error index out of bounds.
12
What are two aspects of efficiency?
execution time and length of code
execution time and memory usage
wall clock and CPU time
memory usage and length of code
13
What is displayed after running the algorithm below?
145
133
43
12
14
Which of the above, represented in binary as a byte, contains the most zeros?
K
C
.
p
15
What is the value of sum displayed after this algorithm is run?
6
4
0
Error
16
What is the main reason binary is used to represent data in computers?
Computers are built with switches that have two states: on and off
Binary allows more colors to be displayed on screen.
Binary makes programs run faster
Binary is easier for humans to read
17
Which command can replace <Missing Condition> to result in the last column of the table shown below?
b AND (a AND b)
NOT (a AND b)
a OR b
a AND (a AND b)
18
What will be the values of x and y after this code segment executes?
x is 30, y is 40
x is 20, y is 20
x is 40, y is 30
x is 40, y is 40
19
What percentage of the time will the program display an even number?
20%
50%
15%
30%
20
Metadata is defined as data about data. Review the following statements. Which of the statements are true
II, III, and IV only
All of the above
I, II, and IV only
I only
21
Which of the following is the MOST likely data privacy concern of the upgraded game?
How many locations the player visited
The player’s score
How much time a person spent playing the game
Recording whether the player was speeding when driving to a location.
22
Which of the following is a true statement about data transmitted over the internet?
All data traveling over the internet is in binary.
The domain name system DNS has been challenged by the DMCA
Packets are received in the same order that they are sent.
Redundancy in the design of the internet is overseen by large companies
23
Consider the following code segment, which uses the variables a, b, and c.
3 3 6
3 11 3
8 4 6
11 3 8
24
Using a loop can help reduce repeated code and make an algorithm more efficient
False
True
25
Which of the following would most likely be represented using binary values?
The color of a pixel
A handwritten note
A spoken conversation
A word processor menu
26
What is the purpose of a return statement in a function?
To take input from a user
To send a value back to the caller
To print a value
To repeat code
27
Consider the following code
9
1 3 5 7 9
1 5 7
3 9
28
Which of the following is a cause of the digital divide?
Lack of access to the technology due to affordability
Lack of access to technology due to location
Lack of knowledge on how to use technology
All of the above
29
What is the maximum number of searches required if using a linear search on list containing 2,000 numbers?
1
11
2,000
1,000
30
Which of the following is true about redundancy on the internet?
II and III only
I and II only
I only
I, II, and III
31
Which of the following test cases will NOT find the maximum number in the list?
list1[−23, −67, −3, −7]
list1[4]
list1[23, 67, 3]
list1[0, 0, 0, 0]
32
What is the maximum number of searches required if using a linear search on list containing 2,000 numbers?
11
1
2,000
1,000
33
What is displayed as a result of executing the following code segment?
Dog Waffle Moose Noodles Novack Benji
Waffle Moose Noodles Novack Benji
Dog Waffle Noodles Moose Novack Benji
Moose Benji Novack Waffle Noodles
34
Consider the following code segment, which uses the variables x, y, and z. What will the following program display?
6 12 24
24 24 24
12 12 12
12 24 24
35
Which of the following protocol standardization is NOT a function of the IETF (Internet Engineering Task Force)
Internet Protocol
JavaScript Coding Protocol
Simple Mail Transfer Protocol
Hypertext Transfer Protocol
36
Which sorting algorithm guarantees the fewest comparisons in the best case for nearly sorted data?
Bubble Sort
Selection Sort
Merge Sort
Insertion Sort
37
Consider the following code segment. What will the executed code display?
All even numbers between 3 and 12
All odd numbers between 3 and 12
All odd numbers between 1 and 12
All even numbers between 1 and 12
38
Parameters allow functions to be reused with different inputs
False
True
39
What will the program segment display?
2
34
99
3
40
What is the maximum number of searches required if using a linear search on list containing 2,000 numbers?
1,000
1
11
2,000
41
If a does not equal b, what error has occurred?
Roundoff error
Overflow error
a will equal b on all computers
Hexadecimal conversion error
42
What is the minimum number of binary digits needed to store the number 56?
6
1
5
3
43
Which binary sequence represents the number 9?
1001
1000
1110
1010
44
What will be the output of the following program?
14 6
14
7 5 9
9 5 7
45
What will y display?
16
20
0
15
46
What does the following algorithm display?
It always displays “True.”
When A is false, the algorithm displays “False.”
When B is false, the algorithm displays “False.”
It always displays “False.”
47
Which ofthe following will correctly replace /*missing code */ ?
NOT CAN_MOVE(forward)
CAN_MOVE(right) OR NOT CAN_MOVE(forward)
NOT CAN_M0VE (right)
CAN_MOVE (right)
48
Consider the following code segment
Dog Cat Fish Golden Bandicoot
Golden Bandicoot Cat Fish
Dog Cat Fish
Dog Golden Bandicoot Cat Fish
49
What percentage of the time will the following program display a number?
20%
10%
75%
25%
50
The procedure findAverage is intended to return the average number in the list of numbers. Which one doesn't work.
numbers[1, 1, 35, 6]
numbers[0, 1, 35, 6]
numbers[11, 35, 6]
numbers[3, 5, 11, 6]
51
Consider the following procedure called mystery (list)
cmptr cmptr cmptr cmptr cmptr
computer computer computer computer computer
computer computer computer
cmptr cmptr cmptr
52
Colors are represented by 0-255. If each pixel in a photo are 3 color values combined what is the minimum number of bits
512
24
8
256
53
Which of the following statements is NOT correct
Binary data is processed by physical layers of computing hardware
Logic gates are used to perform operations such as addition and subtraction
Hardware is the lowest level of abstraction
Logic gates are modeled by Boolean functions
54
The findings from a project are typically presented using a graph as opposed to table or raw data. Why? Select 2 answers
Graphs are able to show all of the detail necessary to understand data.
Graphs are easier to read and interpret at a glance.
Graphs can show trends that might not be easily seen with raw data.
Graphs can be easily placed into a slideshow or document, while tables cant
55
Sort the following by levels of abstraction, from lowest to highest
I, IV, III, II
I, IV, II, III
I, II, III, IV
I, III, IV, II
56
Which of the following is
LEAST likely to be included with the game?
Location of high-crime areas that should be avoided
What protocols the mobile device uses to connect to the internet
Location of highly trafficked roads and bridges
Information about what types of mobile devices can be used
57
What would be a good use of constants when initializing variables at the beginning of a program?
I, II, and III
I and II only
I and III only
II and III only
58
Which of the following is NOT metadata?
The date the photo was taken
The geographic location where the picture was taken
The Red, Green, and Blue values of the top left pixel
The filename
59
Which of the algorithms below would allow the student to create an analysis that accomplishes the task?
II only
Neither
I only
Both I & II
60
Which of the following lines of code would cause an error with a robot?
NOT CAN_M0VE (forward)
CAN_MOVE (north)
CAN_MOVE (right)
NOT CAN_MOVE (left)
61
Which of the following input data is needed by the upgraded game that was NOT needed by the original game?
Age of the player
Picture of the player
Event sensing; an event would be the user pushing a button or screen
GPS location
62
What is the appropriate name for the procedure?
ESCAPE()
SPIN()
IS_TRAPPED()
CAN_ESCAPE()
63
Which of the following statements are true about high-level programming languages? Select 2 answers
A high-level programming language often uses natural language elements.
A high-level program language doesn't ensure program reliability
A high-level programming language allows for code to be reused
64
Pick one of the answer choices
I , II , and III
I only
II and III
II only
65
What is returned by cube(cube(2))?
128
512
8
64
66
Which of the following is true about data compression?
Data compression can reduce the size of a file for storage or transmission.
Data compression can be used for pictures and video only.
Lossy compression cannot be used when sending pictures.
Lossless data compression is the best compression under all conditions.
67
What does the algorithm display?
3
5
7
4
68
Which of the choices below properly identify these concepts?
Lexicographic and Asymmetric
Hash Codes and Key Transfers
Asymmetric and Symmetric
Symmetric and Steganography
69
What is returned by mystery (1,2)
-4
-3
-6
-5
70
Which of the following is considered a potential effect of the mobile game rather than the purpose of the game?
People are not watching where they are walking and are getting injured.
People are exercising.
Players are becoming more cultured by visiting artworks.
Players play the game in their spare time.
71
ASCII and Unicode are both systems for representing images in binary
False
True
72
A function can return a value and also print a message at the same time
True
False
73
Which of the following is NOT an example of using citizen science as a possible solution?
Calculating PSAT scores for a school district
The behavior of the mysterious and wonderful jellyfish on the beach
The behavior of fireflies during the summer months
Collecting recordings by ultrasonic microphones and sonograms of bats
74
What command can replace <Missing condition> to get the results shown in the fourth column of the table?
a OR b
NOT(a AND b)
NOT b
NOT(a OR a)
75
The following program is intended to display the string 789. What type of error will the following procedure cause?
No error
Logic error
Syntax error
Runtime error
76
What is the minimum number of searches for a binary search using an ordered list of 100 numbers?
100
8
1
0
77
In what order will the numbers appear after running the algorithm below?
5, 6, −5, 6
5, 7, 4, 3.5
5, 7, −6, 7
5, 6, 3, 3
78
What is the minimum number of lines that must be cut to isolate F completely?
6
7
5
2
79
Lossless compression permanently removes some data, which cannot be restored
True
False
80
What is the best case time complexity for a linear search algorithm on a list of size n?
O(1n)
O(1)
O(n)
O(log n)
81
Which will the following code segment display?
5
6
3
11
82
What will the following code segment display?
Nothing will be displayed due to an error.
11
6
3
83
What will the following algorithm display after running the code below?
2
1
3
4
84
Monica types the web address, widgets.cs.fbhs.org into the URL bar. Which will take place among the DNS servers?
The widgets name server will send the IP address of the widgets.cs
The widgets name server will send the IP address of widgets.cs.fbhs.org
The .org name server will send the IP address of the fbhs.org name server
The .org name server will send the IP address of widgets.cs.fbhs.org
85
What is the code segment displaying?
34
68
17
0
86
Why is digital data often compressed?
To increase image quality
To improve color resolution
To protect it from being copied
To save storage bandwidth
87
In the following flowchart, what is the value of RESULT?
Always false
True when either A or B are true
Always true
True when both A and B are true
88
Which of the following illustrate ways that the internet facilitates collaboration
I and III only
I only
II and III only
I, II, and III
89
What should replace so the program below displays TRUE 60% of the time?
x MOD 2 = 1
x MOD 5 = 0
x MOD 2 = 0
x MOD 5 = 5
90
How many lines need to be cut to completely isolate computer E from computer C?
8
3
0
6
91
Why does a program code have to be run through a compiler?
It doesn’t, as the new program could be run directly from the code.
Program code must be debugged by the compiler before it can ever run.
Program code is write-only until it is run through a compiler.
Program code must be translated into a language the computer understands.
92
Which of the following is a negative trade-off inherent in lossless compression?
The file can be difficult to email and can take up lots of memory storage.
Some of the data will be lost and cannot be recovered.
The number and size of pixels will be less.
The image quality will be less and will result in a blurry image.
93
What will the following code segment display?
1
10
30
22
94
Which of the following problems is considered undecidable?
Finding the max value in a list
Checking if a number is prime
Sorting an array
Determining if a program halts for all inputs
95
Which of the following protocol standardization is NOT a function of the IETF (Internet Engineering Task Force)?
Hypertext Transfer Protocol
Simple Mail Transfer Protocol
Internet Protocol
JavaScript Coding Protocol
96
What should replace <missing condition> so that the program below display TRUE 10% of the time?
x <= 1
x < 9
x <= 9
x < 1
97
Debug the above code segment. Which of the following statements is true?
The code runs as intended/ The code runs without error
The code runs as intended. The robot will reach the end of the maze
The code doesn't run. The robot will not reach the end of the maze
The code may or may not run as intended. The code's purpose is not stated
98
Binary search can be used on any list,even if it is unsorted.
False
True
99
What should replace so the program below displays TRUE 60% of the time?
x MOD 5 = 0
x MOD 2 = 1
x MOD 2 = 0
x MOD 5 = 5
100
Which of the following does NOT need to be considered when determining the credibility of a source?
Author’s reputation and credentials
Publisher’s reputation and credentials
Sponsorship of the article or publisher
Use of persuasive techniques within the source