stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Lau, Sydney Summative Test Project Flashcards | StudBud
Explore
/
Lau, Sydney Summative Test Project
Lau, Sydney Summative Test Project
100 terms
·
StudBud Administration
·
1 play
Imported from external platform
Flashcards
100 cards
F
Practice quiz
P
Host live
L
Questions
100
Answers
1
What will the following code segment display?
30
1
10
22
2
The algorithm below should display the total value contained in list1, not counting the value 13. What can be replaced?
item = 13
item ≠ 13
list1 ≠ 13
list1 = 13
3
In what order will the numbers appear after running the algorithm below?
5, 7, 4, 3.5
5, 7, −6, 7
5, 6, 3, 3
5, 6, −5, 6
4
The following program is intended to display the string 789. What type of error will the following procedure cause?
Syntax error
No error
Logic error
Runtime error
5
Which of the following is NOT metadata for the picture?
The location where the picture was taken
The memory space taken up by the picture
The time the picture was taken
The picture of the dog
6
What could have been the reason for the failure?Responses
The simulation might not have considered human preference for ordering food
The simulation worked as intended.
The simulation had considered all variables.
Wait time and sales are directly proportional;, the simulation worked.
7
What type of transformation is the photo-editing software using?
Addition transformation
Lossy transformation
Lossless transformation
Frequency transformation
8
What will the program above display?
4 8
2 8
2 7
3 7
9
Which of the following is true about redundancy on the internet?
I, II, and III
I only
I and II only
II and III only
10
Which of the choices below properly identify these concepts?
Symmetric and Steganography
Asymmetric and Symmetric
Lexicographic and Asymmetric
Hash Codes and Key Transfers
11
What will the above program display?
4 8 8
2 8 14
3 8 0
Nothing due to an infinite loop
12
What does the following algorithm display?
When B is false, the algorithm displays “False.
It always displays “False.”
It always displays “True.”
When A is false, the algorithm displays “False.”
13
What does the algorithm display?
5
7
3
4
14
Which of the following is true about data compression?
Data compression can be used for pictures and video only.
Can be used to reduce the size of a file for storage or transmission.
Lossy compression cannot be used when sending pictures.
Lossless data compression is the best compression under all conditions.
15
What is displayed after running the algorithm below?
133
43
145
12
16
What will the following code segment display?
Nothing will be displayed due to an error.
3
6
11
17
What is displayed by running the code segment?
11 3 8
3 3 6
3 11 3
8 4 6
18
What is displayed after the following algorithm is run?
32
132
100
50
19
What could a single binary value represent?
If a light is on or off
Temperature in degrees Celsius
Volume on a radio
Time
20
Which of the following test cases will return the correct average using the above procedure
numbers[3, 5, 11, 6]
numbers[0, 1, 35, 6]
numbers[11, 35, 6]
numbers[1, 1, 35, 6]
21
What will the executed code display?
All even numbers between 1 and 12
All odd numbers between 1 and 12
All even numbers between 3 and 12
All odd numbers between 3 and 12
22
Which of the following lines of code would cause an error with a robot?
CAN_MOVE (right)
CAN_MOVE (north)
NOT CAN_M0VE (forward)
NOT CAN_MOVE (left)
23
Debug the above code segment. Which of the following statements is true?
The code doesn't run as intended. The robot won't reach the end of the maze
The code runs as intended. The robot will reach the end of the maze.
The code may or may not run as intended. The code’s purpose is not stated.
The code runs as intended. The code runs without error.
24
Which of the following protocol standardization is NOT a function of the IETF (Internet Engineering Task Force)?
JavaScript Coding Protocol
Simple Mail Transfer Protocol
Hypertext Transfer Protocol
Internet Protocol
25
Which of the following is a cause of the digital divide?
Lack of access to technology due to location
Lack of access to the technology due to affordability
All of the above
Lack of knowledge on how to use technology
26
Which of the following input data is needed by the upgraded game that was
NOT
needed by the original game?
Event sensing; an event would be the user pushing a button or screen
GPS location
Age of the player
Picture of the player
27
What is the minimum number of searches for a binary search using an ordered list of 100 numbers?
0
8
100
1
28
Is a binary search always the fastest search when searching for a number in a sorted list?
No the first pass of a linear search has a chance of finding a right number
A binary search is always faster with a sorted list.
For a large list, binary searches are always faster.
For a large list, linear searches are always faster.
29
What protocol below guides the rules about how data are subdivided into packets before transmission?
HTTP
FTP
DNS
TCP
30
What will the following code segment display?
6
Nothing will be displayed due to an error.
11
3
31
By switching from IPv4, which can store 2
32
IP addresses to IPv6 can store 2
128
IP addresses how many more IP addresses?
22 as many IP addresses
296 as many addresses
96 as many IP addresses
Twice as many IP addresses
32
What is displayed as a result if the user inputs “Karel” to the program?
Hello Karel
What is your name?Hello Karel
What is your name?Karel
What is your name? Hello Karel
33
What is the minimum number of lines that must be cut to isolate F completely?
0
8
4
6
34
TWhich of the following best approximates the minimum possible time to run all five processes in parallel?
9 seconds
15 seconds
11 second
13 seconds
35
Which of the following statements are true about undecidable problems in computer science?
II and III
I only
I, II, and III
I and II
36
What should replace <missing condition> so that the program below displays TRUE 60% of the time?
x < 6
x > 10
x >= 9
x >= 6
37
Which of the following is NOT an example of using citizen science as a possible solution?
Collecting recordings using ultrasonic microphones and sonograms of bats
The behavior of the mysterious and wonderful jellyfish on the beach
The behavior of fireflies during the summer months
Calculating PSAT scores for a school district
38
The following picture was taken by a smartphone. Which of the following is NOT metadata?
The filename
The Red, Green, and Blue values of the top left pixel
The date the photo was taken
The geographic location where the picture was taken
39
What is the minimum number of binary digits needed to store the number 56?
3
5
6
1
40
What is an aspect of efficiency?
memory usage and length of code
execution time and memory usage
wall clock time and CPU time
execution time and length of code
41
Which of the following statements is
NOT
correct:
Logic gates are used to perform operations such as addition and subtraction
Binary data is processed by physical layers of computing hardware.
Logic gates are modeled by Boolean functions.
Hardware is the lowest level of abstraction.
42
Which command can replace <Missing Condition> to result in the last column of the table shown below?
NOT (a AND b)
b AND (a AND b)
a OR b
a AND (a AND b)
43
When should a heuristic algorithm be used?
When finding the quickest way to drive from Orlando, Florida, to Alaska
When finding the lifetime batting average of Mookie Wilson
When calculating the average score for the national SAT test
When finding which files could have been exposed to a virus before checking
44
What binary number is equal to 10001BIN+3DEC?
11110BIN
10011BIN
11100BIN
10100BIN
45
What will be displayed by
mystery( 3, myList)
?
9 6 3
10 8 7 5 4 2 1 0
9 6 3 0
10 8 7 5 4 2 1
46
Her connection speed is 700 kilobytes per second (kps). How long will the download take if her video is 400 megabytes ?
57.1 seconds
175 seconds
1.75 seconds
571 seconds
47
What is the code segment displaying?
34
0
17
68
48
What would be a good use of constants when initializing variables at the beginning of a program?
I and II only
II and III only
I, II, and III
I and III only
49
What is displayed as a result of executing the code segment?
Dog Cat Fish Golden Bandicoot
Dog Cat Fish
Dog Golden Bandicoot Cat Fish
Golden Bandicoot Cat Fish
50
Which of the following test cases will NOT find the maximum number in the list?
list1[23, 67, 3]
list1[−23, −67, −3, −7]
list1[0, 0, 0, 0]
list1[4]
51
What will the following program display?
The program is an infinite loop.
OXXOXXOXX
OOOXX
OXXOO
52
Which of the following can be represented by a single binary number?
What is the position of an object in a grid of squares?
Do you have a puppy?
What is the speed of a puppy chasing a squirrel?
Is your puppy named “Waffles”?
53
For the following data structure, which search algorithm would work as intended to find the value 35?
Linear search
Binary search
Insertion sort
Bubble sort
54
Which of the following is an example of a UDP's use case?
Routing internet traffic through a secure vpn
Storing data in a cloud storage service
Encrypting messages for secure email communication
Streaming live video without checking for lost frames
55
The code segment below is intended to swap the variables a and b using a variable temp. What can replace so it works?
b ← a
temp ← a
b ← temp
temp ← b
56
Which of the following potential benefits is
MOST
likely to be provided by the upgraded system?
Offering products and services that are more relevant to the user
Limiting the information about the sites and stores that the user visits
Weather websites customizing site information based on the user’s location
Increasing the speed in ordering pizza online because it remembers the user
57
What is the smallest unit of information in a computer, consisting of either a zero or a one?
Byte
Bit
Nibble
Block
58
What is the appropriate name for the procedure?
IS_TRAPPED()
SPIN()
ESCAPE()
CAN_ESCAPE()
59
Why are internet protocols used?
Internet protocols are specific to the hardware attached to the internet.
Internet protocols are needed to slow the growth of the internet.
Internet protocols are a set of rules to ensure the internet can work.
Internet protocols make the internet scalable and encourage growth.
60
Which of the following is a negative trade-off inherent in lossless compression?
The number and size of pixels will be less.
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 image quality will be less and will result in a blurry image.
61
Which of the following best approximates the minimum possible time to run all three processes in series?
10 seconds
8 seconds
20 seconds
38 seconds
62
What command can replace <Missing condition> to get the results shown in the fourth column of the table?
NOT(a AND b)
NOT(a OR a)
a OR b
NOT b
63
In the following flowchart, what is the value of RESULT?
Always true
Always false
True when either A or B are true
True when both A and B are true
64
The first element in the list is counted twice. What type of error did the procedure below suffer from?
Logical error
Syntax error
No error. The program works as intended.
Runtime error
65
When sending a picture from your phone to your friends phone using a mobile application what is true about the packets?
Packets are sent by the quickest path possible in the correct order.
All of the above.
Packets are received in the order that they are sent.
Packets are sent in multiple paths and can be received out of order.
66
Find the error in the following low-level programming code.
The 34th 0 should be a 1.
This is too difficult. It would be easier to use an upper-level language.
The 84th digit should be a 1.
The 17th 1 needs to be changed to a 0.
67
Why is it important to find an efficient solution to a problem?
An efficient solution can make it easier to analyze larger data sets.
An efficient solution can always be solved in a reasonable amount of time.
An efficient solution makes it harder to copy an algorithm.
An efficient solution uses more computer resources which shows it's correct
68
If the list
CSList
contains the data [’c’, ’o', ’m’, ’p’, ’u', ’t', ’e’, 'r'] what will be displayed by
mystery(CSList)?
computer computer computer computer computer
cmptr cmptr cmptr
cmptr cmptr cmptr cmptr cmptr
computer computer computer
69
Which of the following can be represented by a single binary digit?
Light on / light off
Geographic location
Date
Time
70
The procedure isFound(list, item) will return TRUE if an item is found in a list. What will the procedure display?
[4, 6, −4]
[ ]
[1, 6, −4]
[1, 35, 6, 76, 4, 98, 5, 1, 8, 96, −4]
71
Which of the following isn't provided directly by the user but is necessary for the upgraded game to operate?
GPS location of user
Speed traveling
Location of landmarks used in the game.
User name
72
Which of the following does NOT need to be considered when determining the credibility of a source?
Publisher’s reputation and credentials
Sponsorship of the article or publisher
Use of persuasive techniques within the source
Author’s reputation and credentials
73
What should replace so the program below displays TRUE 60% of the time?
x MOD 5 = 0
x MOD 5 = 5
x MOD 2 = 1
x MOD 2 = 0
74
Using the partial hierarchy shown above, which of the following commands would properly import ThreadLocalRandom?
import java.ThreadLocalRandom
import ThreadLocalRandom.concurrent.util.java
import java.util.concurrent.ThreadLocalRandom
import java.util.function.ThreadLocalRandom
75
What will the following algorithm display after running the code below?
3
2
4
1
76
Which of the following is true of effective collaboration?
All of the above
I, III, and IV only
II, IV, and V only
I, II, III, and V only
77
What is returned by
mystery (1, 2)
?
4
10
2
8
78
Which of the codes below will correctly swap the frog with the bear?
animal[3] = animal[1]animal[1] = animal[3]
temp = animal[1]animal[1] = animal[2]animal[2] = temp
animal[1] = animal[2]animal[2] = animal[1]
temp = animal[1]animal[1] = animal[3]animal[3] = temp
79
We can convert a number from decimal to octal (base 8) by repeatedly subtracting the largest possible powers of what?
9
8
2
7
80
Why does program code have to be run through a compiler?
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.
It doesn’t, as the new program could be run directly from the code.
Program code must be translated into a language the computer understands.
81
A simulation for a color chooser should result in 25% BLUE. Which of the following could replace <missing condition>?
RANDOM(250, 1000) < 251
RANDOM(1, 2) > 1
RANDOM(5, 8) > 7
RANDOM(1, 4) < 2
82
What will the program segment display?
34
2
99
3
83
Which ofthe following will correctly replace /*missing code */ ?
CAN_MOVE (right)
NOT CAN_M0VE (right)
NOT CAN_MOVE(forward)
CAN_MOVE(right) OR NOT CAN_MOVE(forward)
84
How many lines need to be cut to completely isolate computer E from computer C?
0
3
6
8
85
If a does not equal b, what error has occurred?
Hexadecimal conversion error
Roundoff error
a will equal b on all computers
Overflow error
86
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
87
Find the error in the following low-level programming code.
The 84th digit should be a 1.
The 34th 0 should be a 1.
The 17th 1 needs to be changed to a 0.
This is too difficult. It would be easier to use an upper-level language.
88
What will be the result of the displayed program?
9 5 7
6 14
7 5 9
14 6
89
A web browser contacts a server using IPv4 and pages a request for a website’s address. What is NOT a potential response
174.260.45.144
92.11.198.113
128.198.232.65
54.116.188.246
90
An algorithm has n number of steps. Which of the following would be considered a reasonable number of steps?
3n2
100n4
n!
4n +8n2
91
Fraud detection algorithms collect massive amounts of data from customers. What type of algorithm would be used?
Searching algorithm
Brute force algorithm
Optimization algorithm
Heuristic algorithm
92
Consider the following code segment, which uses the variables x, y, and z. What will the following program display?
24 24 24
6 12 24
12 12 12
12 24 24
93
What will the following code segment display?
Nothing will be displayed due to the error index out of bounds.
1 4 7 10 9
9 10 7 4 1
10
94
What should replace <missing condition> so that the program below display TRUE 10% of the time?
x < 1
x <= 1
x < 9
x <= 9
95
Which of the following lists is
NOT
a candidate for a binary search?
A list of words in a dictionary
A list of words from a poem about sunshine in the order they appear
A list of numbers from smallest to largest
A list of students in order of height
96
What role does a compiler have in processing a high-level language?
The computer cannot directly understand high-level languages.
The compiler speeds up the run time of a program.
The compiler checks for updates and installs programs onto the computer.
The compiler ensures that the program has no runtime errors.
97
Which of the following types of components is necessary for cybersecurity?
I.
Software
II.
Hardware
III.
Human
III only
I and II only
I, II, and III
I only
98
What is the maximum number of searches required if using a linear search on list containing 2,000 numbers?
1,000
11
1
2,000
99
What is displayed as a result of executing the following code segment?
Moose Benji Novack Waffle Noodles
Dog Waffle Noodles Moose Novack Benji
Waffle Moose Noodles Novack Benji
Dog Waffle Moose Noodles Novack Benji
100
What should replace <missing code> in order to make the following program return True when the first equals the last?
( list1[0] = list1[LENGTH(list1) – 1] )
( list1[0] = list1[1] )
( list1 = list1 )
( list1[1] = list1[LENGTH(list1)] )