stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Sant,Jacob summative test project Flashcards | StudBud
Explore
/
Sant,Jacob summative test project
Sant,Jacob 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
The code segment below is intended to swap the variables a and b. What can replace so the algorithm works
temp =b
a =b
b= temp
a = temp
2
What is displayed after running the algorithm below?
12
133
145
43
3
what error would the code have if it ran
Logical error
Runtime error
Syntax error
No error. The program works as intended.
4
Review the following statements about metadata types. Which of the statements below are true.
I, II, and IV only
I only
II, III, and IV only
All of the above
5
Consider the following code.
1 3 5 7 9
3 9
1 5 7
9
6
What should replace <missing condition> so that the program below displays TRUE 60% of the time?
x < 6
x > 10
x >= 9
x >= 6
7
What percentage of the time will the following program display a number?
25%
20%
10%
75%
8
What does the algorithm display?
4
3
5
7
9
what will the following program display
SNOOPY
yes
no
10
What is returned by
mystery (1, 2)
?
2
4
10
8
11
What is the value of sum displayed after this algorithm is run?
6
error
4
0
12
what is not metadata about the photo
The date the photo was taken
The filename
The geographic location where the picture was taken
The Red, Green, and Blue values of the top left pixel
13
What does the following algorithm display?
It always displays “True.”
It always displays “False.”
When A is false, the algorithm displays “False.”
When B is false, the algorithm displays “False.”
14
Which of the codes below will correctly swap the frog with the bear?
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
animal[3] = animal[1]animal[1] = animal[3]-------------------------------
15
Which of the following is NOT considered an analog signal?
temperature
light
Human speech
Boolean values
16
What will the following code segment display?
9 10 7 4 1
1 4 7 10 9
10
Nothing will be displayed due to the error index out of bounds.
17
What will be the value of x after this code segment executes?
For all values of x, x will decrease by 1.
values more than 5, x will increase by 1, for others x will decrease by 1
values more than 5, x will remain the same, and others , x will decrease b
For all values of x, x will remain unchanged.
18
What is the name of the search method that provides higher or lower feedback with each iteration of the search?
bucket search
Merge search
binary search
linear search
19
What are two aspects of efficiency?
execution time and length of code
memory usage and length of code
execution time and memory usage
wall clock time and CPU time
20
Using a linear search, how many passes are needed to find the number 13?
22
1
2
5
21
In this serial/parallel computing solution, how much processing time would the problem take?
15 seconds
24 seconds
18 seconds
22
Why is cryptography essential to cybersecurity?
Cryptography secures internet communications by making files unreadable
secures internet communications by stopping a 3rd party from entering
Cryptography is used to prevent publicly accessible files on a server
Cryptography does not allow data on a server to be edited by anyone
23
Which of the following is a negative trade-off inherent in lossless compression?
Some of the data will be lost and cannot be recovered.
The image quality will be less and will result in a blurry image.
The number and size of pixels will be less.
The file can be difficult to email and can take up lots of memory storage.
24
How can programmers avoid duplicating code?
through use of iteration
though the use of selection statements
Through sequential statements to process all data once
Through the use of efficient algorithms
25
An algorithm has n number of steps. Which of the following would be considered a reasonable number of steps?
4n + 8n2
3n
n!
100n4
26
Why should procedures be used?
They ease the workload on the processors.
They make writing and maintaining programs easier through reuse of code
they facilitate the storage of data
they control the flow of input and output data
27
What is the code segment displaying?
34
0
68
17
28
Which of the following does NOT contribute to the digital divide?
A person could have access to the internet but not the knowledge to use it
Infrastructure. There are parts of the world without internet.
All of the above contribute to the digital divide.
.A person could have access to the internet but choose not to use it
29
What is a major disadvantage of the internet’s model of trust?
A trusted website can still download malicious code
cannot have encrypted communications, which means any data sent can be read
30
A programmer uses 8 bits to store a value. If the programmer wants 4times the storage, how many bits are needed?
16
9
32
10
31
Which of the following lists is
NOT
a candidate for a binary search?
A list of words in a dictionary
A list of students in order of height
A list of words from a poem about sunshine in the order they appear in
A list of numbers from smallest to largest
32
Which of the following can be represented by a single binary digit?
Light on / light off
Geographic location
Time
DateDate - no response given
33
What is displayed as a result of executing the code segment?
Dog Cat Fish Golden Bandicoot
Dog Golden Bandicoot Cat Fish
Dog Cat Fish
Golden Bandicoot Cat Fish
34
what will the program display
7
13
5
35
what would the following program display
1
10
11
0
36
Which of the following is true about data compression?
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.
Data compression can be used to reduce the size of a file for uses
37
Consider the code segment below.
What is your name?Hello Karel
What is your name?Hello Karel
What is your name? Hello Karel
Hello Karel
38
Convert 88DEC to a binary number.
1111000BIN
1000001BIN
1010101BIN
1011000BIN
39
Which of the following is the
MOST
likely data privacy concern of the upgraded game?
The player’s score
How many locations the player visited
How much time a person spent playing the game
Recording whether the player was speeding when driving to a location.
40
When is using TCP instead of UDP advantageous?
Using TCP is advantageous when the IP address of the computer is not known
UDP is better than TCP, so UDP should always be used when available
TCP is advantageous when error correction is more important than speed
41
What is the maximum number of searches required if using a linear search on list containing 2,000 numbers?
1
11
2000
1000
42
What is the following number in binary?
10011BIN
1111BIN
100000BIN
43
what type of error occurs in the program below
syntax error
logical error
no error
Runtime error
44
If a does not equal b, what error has occurred?
Overflow error
a will equal b on all computers
Roundoff error
Hexadecimal conversion error
45
What is the following program returning?
20
27
37
25
46
What is the minimum number of lines that must be cut to isolate F completely?
6
8
4
0
47
What is displayed as a result of executing the following code segment?
Dog Waffle Noodles Moose Novack Benji
Waffle Moose Noodles Novack Benji
Moose Benji Novack Waffle Noodles
Dog Waffle Moose Noodles Novack Benji
48
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
49
Which of the following is NOT metadata for the picture?
The location where the picture was taken
The time the picture was taken
The memory space taken up by the picture
The picture of the dog
50
Which of the following is a true statement about data transmitted over the internet?
Redundancy in the design of the internet is overseen by large companies
Packets are received in the same order that they are sent.
The DNS has been challenged by the DMCA
All data traveling over the internet is in binary.
51
What are the contents of list2 after the following procedure is run?
z z z
e z u
b m u
wwwww
52
what error did the procedure suffer from
Syntax error
Runtime error
No error. The program works as intended
Logical error
53
Which of the following types of components is necessary for cybersecurity?
III only
I and II only
I, II, and III
I only
54
What percentage of the time will the program display an even number?
10%
20%
40%
50%
55
Which command can replace <Missing Condition> to result in the last column of the table shown below?
b AND (a AND b)
a OR b
NOT (a AND b)
a AND (a AND b)
56
What would be a good use of constants when initializing variables at the beginning of a program?SSSSSSS
II and III only
I and III only
I, II, and III
I and II only
57
What is displayed by running the code segment?
11 3 8
3 11 3
3 3 6
8 4 6
58
In a sequential computing solution how much processing time would the problem take?
5 second
1 second
6 seconds
11 seconds
59
What is the average number of times the REPEAT UNTIL segment will run if the user inputted the number 0?
infinite
0 times
100 times
50 times
60
What could a binary number represent?www.apstudy.net---------------------
text
All the above
a color
a number decimal
61
A web browser contacts a server using IPv4 and pages a request for a website address. Which is NOT a potential response
54.116.188.246
174.260.45.144
128.198.232.65
92.11.198.113
62
What should replace <missing condition> so that the program below display TRUE 10% of the time?
x <= 9
x <= 1
x < 1
x < 9
63
What will be the output of the following program?
14
9 5 7
7 5 9
14 6
64
We can convert a number from decimal to octal (base 8) by repeatedly subtracting the largest possible powers of what?
9
8
7
2
65
Which of the following may be an unintended effect of the use of the professional filters?
body dysmorphia when users try to look like the images of their peers.
The filters allow users to look their best while documenting their life.
They generate interest and allow users to accumulate followers.
The filters allow users to visually connect their brand to their customers.
66
what does isp stand for
internet service provider
interim test practice
internet still pays
67
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 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.
68
. In this parallel computing solution, how much processing time would the problem take?
24 seconds
9 seconds
16 seconds
69
What will be the result of the displayed program?
9 5 7
14 6
7 5 9
6 14
70
What can a series of bits represent?
the color puce
the number i am thinking of
high resolution pictures
all the above
71
what error did the procedure suffer from
Runtime error
No error. The program works as intended
Syntax error
Logical error
72
A flowchart is a way to represent an algorithm visually. The flowchart below uses the following building blocks.
2 8
3 7
4 8
2 7
73
What will the following code segment display?
Nothing will be displayed due to an error.
11
3
6
74
Which of the following is NOT a predicting algorithm?
A school calculating grades to determine the valedictorian
Social media sites using patterns to target advertising based on viewing
75
Which of the following does NOT need to be considered when determining the credibility of a source?
Author’s reputation and credentials
Use of persuasive techniques within the source
Publisher’s reputation and credentials
Sponsorship of the article or publisher
76
Consider the following code segment.
All even numbers between 3 and 12
All odd numbers between 1 and 12
All even numbers between 1 and 12
All odd numbers between 3 and 12
77
How does creating program components help with program development?
Individual components can be added without additional testing
Added components incrementally helps create functional programs.
78
using binary search how many passes are needed to find 13
1
4
a Binary search does not work unless the list is sorted
2
79
Which of types data must the social networking site process to allow users to edit and share photos, videos, etc
text
pictures
all of the above
videos
80
What should replace so the program below displays TRUE 60% of the time?
x MOD 2 = 1
x MOD 2 = 0
x MOD 5 = 5
x MOD 5 = 0
81
what will the program display?
2 8 14
Nothing due to an infinite loop
4 8 8
3 8 0
82
Which of the following is NOT an example of using citizen science as a possible solution?
The behavior of mysterious and wonderful jellyfish on the beach or water
The behavior of fireflies during the summer months
Collecting recordings using ultrasonic microphones and sonograms of bats
Calculating PSAT scores for a school district
83
what will the segment display
the red blue is not
a+c+b
the red is not blue
acb
84
The procedure isFound(list, item) will return TRUE if an item is found in a list What will the procedure display?
[ ]
[1, 6, −4]
[4, 6, −4]
[1, 35, 6, 76, 4, 98, 5, 1, 8, 96, −4]
85
Which of the following digital sample rates would more accurately represent the analog signal?
higher sample rate
low sample rate
86
What will the following algorithm display after running the code below?
2
4
1
3
87
a node in the path between the sender and the receiver has broken. Will the sender and receiver be able to communicate
no, the path has been interrupted
yes, an alternate route from the sender
88
Parallel computing consists of what two parts?
A sequential section and a distributed section
A sequential section and an iterative section
A parallel section and a distributed section
A sequential section and a parallel section
89
What will y display?
20
15
0
16
90
What is the code below displaying?
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14
Nothing will be displayed
3, 6, 9, 12, 15
2, 4, 6, 8, 10, 12, 14
91
What will the following program display?
The program is an infinite loop.
OXXOO
OOOXX
OXXOXXOXX
92
take 10 seconds for a sequential solution but 5 seconds for a parallel, what is the speed up
10
2
.5
93
Which of the following best describes the fault-tolerant nature of the internet?
If a node fails, the packets choose a different path to the computer
The fault tolerance adds an additional layer of privacy
all the above
94
In the following flowchart, what is the value of RESULT?
Always false
True when both A and B are true
True when either A or B are true
Always true
95
Which best describes the role of TCP?
The set of rules for the path packets taken on the fault-tolerant internet
A common protocol for encrypting and decrypting data on the internet
Setting the rules for a numerical label assigned to each device
The foundation of data communication for the World Wide Web
96
What is a problem that no algorithm exists to solve all instances called?
indeterminable problem
infinite problem
exponential problem
undecidable problem
97
What will the following code segment display?
6
Nothing will be displayed due to an error.
11
3
98
Which of the following is MOST likely to be a harmful effect of storing all posts?
A user can connect and rekindle old friendships.
A user may post something that can affect his or her college acceptance.
A user can become social media famous and get sponsored by a makeup brand.
99
The procedure findAverage is intended to return the average number in the lis numbers. fix the procedure
numbers[11, 35, 6]
numbers[3, 5, 11, 6]
numbers[1, 1, 35, 6]
numbers[0, 1, 35, 6]
100
What is the largest number that can be stored using 8 bits?
255
256
3