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