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