stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Santos Lucas Summative Test Project. Flashcards | StudBud
Explore
/
Santos Lucas Summative Test Project.
Santos Lucas 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
replace<missing code>to make the following program return True when the first element of the array is equal to the last
( list1[0] = list1[LENGTH(list1) – 1] )
( list1[1] = list1[LENGTH(list1)] )
( list1 = list1 )
( list1[0] = list1[1] )
2
which of the data is needed by the upgraded game that was
NOT
needed by the original game?ResponsesGPS location
Picture of the player
Event sensing; an event would be the user pushing a button or screen
Age of the player
GPS location
3
What should replace <missing condition> so that the program below displays TRUE 60% of the time?
x > 10
x >= 9
x >= 6
x < 6
4
Which of the following is
NOT
metadata?(The following picture was taken by a smartphone.)
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
5
What protocol below guides the rules about how data
DNS
HTTP
TCP
FTP
6
What command can replace <Missing condition> to get the results shown in the fourth column of the table?
NOT b
NOT(a AND b)
NOT(a OR a)
a OR b
7
Which of the codes below will correctly swap the frog with the bear?
animal[3]=animal[1] animal[2]=animal[1]
animal[1]=animal[2] animal[2]=animal[1]
temp=animal[1] animal[1]=animal[3] animal[3]=temp
temp = animal[1] animal[1] = animal[2] animal[2] = temp
8
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 makes it harder to copy an algorithm.
An efficient solution can always be solved in a reasonable amount of time.
it uses more computer resources, which ensures that the results are correct
9
Which of the following lists is
NOT
a candidate for a binary search?
A list of words from a poem,in the order they appear in the poem
A list of numbers from smallest to largest
A list of students in order of height
A list of words in a dictionary
10
What is the code segment displaying?
68
0
17
34
11
In this system, what would be the binary representation of the word dog?
00000100 00001001 00000111
00000010 00001111 00000111
00000100 00001111 00000111
00000111 00001111 00000100
12
Which of the following is true about redundancy on the internet?
I and II only
I, II, and III
II and III only
I only
13
What is the minimum number of binary digits needed to store the number 56?
6
3
5
1
14
.
1
4
3
2
15
What binary number is equal to 10001BIN+3DEC
11100BIN
10011BIN
11110BIN
10100BIN
16
What will be the output of the following program?
7 5 9
14 6
9 5 7
14
17
...
1,000
10
100
1
18
If a does not equal b, what error has occurred?
Hexadecimal conversion error
Overflow error
a will equal b on all computers
Roundoff error
19
Select 2 answers
moveAndSpin(0, 1) moveAndSpin(6, 3) moveAndSpin(4, 0)
moveAndSpin(7, 3)
moveAndSpin(0, 7)
moveAndSpin(4, 1) moveAndSpin(6, 0)
20
Which statements below BEST describes what will happen if ISP X, Host 3, and Host 11 are not working?
Host 1 will compensate for the outage and route the data accordingly
ISP Y will receive packets showing a failure to Host 3 and re-route it
The Client will not receive any data due to the outage
21
What is the minimum number of searches for a binary search using an ordered list of 100 numbers?
8
0
1
100
22
Which of the following statements are true about high-level programming languages? Select
two
answers.
A high-level programming language must be used to execute commands(+,-)
A high-level programming language allows for code to be re-used.
A high-level programming language does not ensure program reliability.
A high-level programming language often uses natural language elements.
23
In what order will the numbers appear after running the algorithm below?
5, 7, −6, 7
5, 6, 3, 3
5, 6, −5, 6
5, 7, 4, 3.5
24
What is displayed after running the algorithm below?
145
43
12
133
25
What is displayed as a result of executing the following code segment?
Waffle Moose Noodles Novack Benji
Dog Waffle Moose Noodles Novack Benji
Moose Benji Novack Waffle Noodles
Dog Waffle Noodles Moose Novack Benji
26
Which command can replace <Missing Condition> to result in the last column of the table shown below?
b AND (a AND b)
a AND (a AND b)
a OR b
NOT (a AND b)
27
Convert 88 to a binary number
1000001
1111000
1010101
1011000
28
How many lines need to be cut to completely isolate computer E from computer C?
0
6
3
8
29
how many more IP addresses will become available if you switch from IPv4 to IPv6
22 as many IP addresses
Twice as many IP addresses
296 as many addresses
96 as many IP addresses
30
Which of the following best approximates the minimum possible time to run all three processes in series?
9 seconds
15 seconds
28 seconds
4 seconds
31
.
I and III only
I only
II and III only
I, II, and III
32
A web browser contacts a server using IPv4 and pages a request for a website’s address. Which could not be a response
54.116.188.246
174.260.45.144
92.11.198.113
128.198.232.65
33
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.function.ThreadLocalRandom
import java.util.concurrent.ThreadLocalRandom
34
Why are internet protocols used?
Select two answers.
Internet protocols make the internet scalable and encourage growth.
Internet protocols are specific to the hardware attached to the internet.
Internet protocols are needed to slow the growth of the internet.
(IP)'s are sets of rules to ensure the internet can work and transmit
35
What is the code below displaying?
3, 6, 9, 12, 15
2, 4, 6, 8, 10, 12, 14
Nothing will be displayed
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14
36
What will be displayed by
mystery( 3, myList)
?
10 8 7 5 4 2 1
9 6 3 0
9 6 3
10 8 7 5 4 2 1 0
37
select 2 answers
REPEAT UNTIL (Goal_Reached)
REPEAT 4 TIMES
FOR EACH item IN list
REPEAT UNTIL x = 4
38
Which of the following is the
MOST
likely data privacy concern of the upgraded game?
How many locations the player visited
Recording whether the player was speeding when driving to a location.
The player’s score
How much time a person spent playing the game
39
What will the following code segment display?
10
22
30
1
40
.
12 24 24
6 12 24
24 24 24
12 12 12
41
Which of the following must be true about the code that she writes?
Selection is necessary, but looping is not.
Both selection and looping are necessary.
Neither selection nor looping are necessary.
Looping is necessary, but selection is not.
42
What is displayed after the following algorithm is run?
50
100
132
32
43
An algorithm has (n) number of steps. Which of the following would be considered a reasonable number of steps?
4n+8n2
100n4
3n
n!
44
A simulation for a color chooser should result in 25% BLUE. Which of the following could replace <missing condition>?
RANDOM(1, 2) > 1
RANDOM(250, 1000) < 251
RANDOM(1, 4) < 2
RANDOM(5, 8) > 7
45
The code segment below is intended to swap the variables a and b using a temporary variable, temp.
temp=a
temp=b
b=temp
b=a
46
Which of the choices below properly identify these concepts?Responses
Asymmetric and Symmetric
Lexicographic and Asymmetric
Symmetric and Steganography
Hash Codes and Key Transfers
47
...
Home key encryption
Public key encryption
No key encryption
Symmetric encryption
48
.
Brute force algorithm
Searching algorithm
Heuristic algorithm=
Optimization algorithm
49
Which of the following statements is
NOT
correct:
Hardware is the lowest level of abstraction.
Logic gates are modeled by Boolean functions.
Logic gates are used to perform operations such as addition and subtraction
Binary data is processed by physical layers of computing hardware.
50
When should a heuristic algorithm be used?
When finding the lifetime batting average of Mookie Wilson
When finding which files could've been exposed to a virus before checking
When finding the quickest way to drive from Orlando, Florida, to Alaska
When calculating the average score for the national SAT test
51
Which of the following test cases will NOT find the maximum number in the list?
list1[−23, −67, −3, −7]
list1[23, 67, 3]
list1[0, 0, 0, 0]
list1[4]
52
What will the following program display?
The program is an infinite loop.
OXXOXXOXX
OXXOO
OOOXX
53
What will the executed code display?
All odd numbers between 3 and 12
All even numbers between 1 and 12
All odd numbers between 1 and 12
All even numbers between 3 and 12
54
What is the appropriate name for the procedure?
IS_TRAPPED()
ESCAPE()
CAN_ESCAPE()
SPIN()
55
What will be the result of the displayed program?
9,5,7
7,5,9
6,14
14,6
56
What is displayed as a result of executing the code segment?
Dog Cat Fish Golden Bandicoot
Dog Cat Fish
Golden Bandicoot Cat Fish
Dog Golden Bandicoot Cat Fish
57
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.
The image quality will be less and will result in a blurry image.
Some of the data will be lost and cannot be recovered.
The number and size of pixels will be less.
58
What is displayed as a result if the user inputs “Karel” to the program?(-- = same line)
Hello Karel
What is your name?----Hello Karel
What is your name?Hello Karel
What is your name?HelloKarel
59
What would be a good use of constants when initializing variables at the beginning of a program
II and III only
I and III only
I, II, and III
I and II only
60
Which of the following is a cause of the digital divide?
Lack of access to the technology due to affordability
Lack of knowledge on how to use technology
All of the above
Lack of access to technology due to location
61
Which ofthe following will correctly replace /*missing code */ ?
CAN_MOVE (right)
CAN_MOVE(right) OR NOT CAN_MOVE(forward)
NOT CAN_M0VE (right)
NOT CAN_MOVE(forward)
62
What is the following program returning?
27
25
37
20
63
.
Logical error
Runtime error
No error. The program works as intended.
Syntax error
64
What type of error did the procedure cause
Runtime error
Logical error
No error; the program works as intended
Syntax error
65
Which of the following best approximates the minimum possible time to run all five processes in parallel?
11 second
9 seconds
13 seconds
15 seconds
66
Which of the following can be represented by a single binary digit?
Time
Date
Geographic location
Light on / light off
67
.
IF(number = randomNumber)
IF(number = true AND randomNumber = drawing)
IF(number ≠ randomNumber)
IF(number = true OR randomNumber = true)
68
In the following flowchart, what is the value of RESULT?
True when either A or B are true
True when both A and B are true
Always false
Always true
69
Why does 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 translated into a language the computer understands.
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.
70
What is the value of sum displayed after this algorithm is run?
Error
6
0
4
71
What does the following algorithm display?
When A is false, the algorithm displays “False.”
It always displays “True.”
When B is false, the algorithm displays “False.”
It always displays “False.”
72
What could a single binary value represent?
Temperature in degrees Celsius
Volume on a radio
If a light is on or off
Time
73
What will the program above display?
4,8
2,7
3,7
2,8
74
Which of the following types of components is necessary for cybersecurity?
III only
I only
I, II, and III
75
.
item ≠ 13
list1 = 13
list1 ≠ 13
item = 13
76
31.What is the minimum number of lines that must be cut to isolate F completely?
8
6
0
4
77
What does the algorithm display?
4
9
3
7
78
.
x MOD 2 = 0
x MOD 5 = 5
x MOD 5 = 0
x MOD 2 = 1
79
What will the following code segment display?
6
11
3
Nothing will be displayed due to an error.
80
Which of the following is NOT metadata for the picture?
The picture of the dog
The time the picture was taken
The location where the picture was taken
The memory space taken up by the picture
81
Which of the following is true about data compression
Lossless data compression is the best compression under all conditions.
Data compression can be used for pictures and video only.
Data compression can be used to reduce the size of a file for storage
Lossy compression cannot be used when sending pictures.
82
Which of the following protocol standardization is NOT a function of the IETF (Internet Engineering Task Force)?
JavaScript Coding Protocol
Internet Protocol
Hypertext Transfer Protocol
Simple Mail Transfer Protocol
83
which data is not provided by the usser,or their device,but necessary for the upgraded game.
Speed traveling
GPS location of user
User name
Location of landmarks used in the game.
84
Debug the above code segment. Which of the following statements is true?
The code runs as intended. The code runs without error.
The code does not 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.
85
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]
86
What should replace <missing condition> so that the program below display TRUE 10% of the time?
x < 1
x <= 9
x <= 1
x < 9
87
Consider the following code segment, which uses the variables a, b, and c.
11,3,8
8,4,6
3,11,3
3,3,6
88
The following program is intended to display the string 789. What type of error will the following procedure cause?
Logic error
No error
Runtime error
Syntax error
89
Which of the following does NOT need to be considered when determining the credibility of a source?
Sponsorship of the article or publisher
Use of persuasive techniques within the source
Publisher’s reputation and credentials
Author’s reputation and credentials
90
.
II only
I only
II and III
I , II , and III
91
.
Addition transformation
Lossy transformation
Frequency transformation
Lossless transformation
92
If each pixel in a photo is a combination of three color values, what's the minimum number of bits to store on one pixel
256
512
24
8
93
Which of the following statements is
NOT
correct:
Binary data is processed by physical layers of computing hardware.
Hardware is the lowest level of abstraction.
Logic gates are used to perform operations such as addition and subtraction
Logic gates are modeled by Boolean functions.
94
What type of error did the below procedure suffer from?
Runtime error
Logical error
Syntax error
No error. The program works as intended
95
What will the following code segment display?
6
11
Nothing will be displayed due to an error.
3
96
What is a benefit of using a simulation?
Simulations have as much of an effect on the real world
Simulations can be run only once, so they will be close to real life
A simulation would be more cost-effective and easier to create
simulations can account for every variable that affects supply and demand.
97
Which of the following is a true statement about data transmitted over the internet?
Packets are received in the same order that they are sent.
The (DNS) has been challenged by the (DMCA)
Redundancy in the internet design are overseen companies who set standards
All data traveling over the internet is in binary.
98
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)
99
...
7 seconds
18 seconds
8 seconds
10 seconds
100
.
Food preference—denotes the type of food that a patron prefers to eat
Ticket type—denotes whether the patron has a single,multi,or annual pass
Ride preference denotes if a patron prefers thrill rides,gentle rides, none
Walking preference denotes how far a patron is willing to walk between ride