stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Roberson, Cort AP Exam Review Flashcards | StudBud
Explore
/
Roberson, Cort AP Exam Review
Roberson, Cort AP Exam Review
90 terms
·
StudBud Administration
Imported from external platform
Flashcards
90 cards
F
Practice quiz
P
Host live
L
Questions
90
Answers
1
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)
NOT (a AND b)
a OR b
2
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
3
What percentage of the time will the following program display a number?
75%
25%
10%
20%
4
A data compression algorithm that allows the original data to be perfectly reconstructed from the compressed data.
data compression
lossless compression
lossy compression
analog compression
5
What is displayed as a result of executing the following code segment?
Dog Waffle Moose Noodles Novack Benji
Waffle Moose Noodles Novack Benji
Moose Benji Novack Waffle Noodles
Dog Waffle Noodles Moose Novack Benji
6
The main colors that are combined to make the broad array of colors that appear on any device with a screen.
Red, Yellow, Blue
Green, Yellow, Violet
ROYGBIV
Red, Green, Blue
7
What is displayed by running the code segment?
11 3 8
3 3 6
8 4 6
3 11 3
8
The process for reducing the amount of bits needed to represent a piece of information.
Data compression
Compressed files
Lossless compression
Lossy compression
9
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.
It is Efficient
An efficient solution makes it harder to copy an algorithm.
10
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.
11
Which of the following can be represented by a single binary digit?
Geographic location
Time
Light on / light off
Date
12
A process for creating a digital image from analog data by measuring the data along sequentially smaller sample sizes.
3D printing
Sampling
Analog measurements
Expressive Art
13
What should replace <missing condition> so that the program below display TRUE 10% of the time?
x <= 9
x < 1
x <= 1
x < 9
14
The procedure is Found(list, item) will return TRUE if an item is found in a list What will the procedure display?
[4, 6, −4]
[1, 35, 6, 76, 4, 98, 5, 1, 8, 96, −4]
[ ]
[1, 6, −4]
15
Data that can be measured continuously, such as the temperature outside.
analog data
image data
compressed data
metadata
16
What will y display?
0
15
16
20
17
What would be a good use of constants when initializing variables at the beginning of a program?
I and II only
I, II, and III
I and III only
II and III only
18
The procedure below is used to display the sum of a list. What type of error did the below procedure suffer from?
Runtime error
No error. The program works as intended
Syntax error
Logical error
19
What is the minimum number of lines that must be cut to isolate F completely?
4
8
6
0
20
What will the following code segment display?
6
3
11
Nothing will be displayed due to an error.
21
Information that is freely available online with few or no copyright or license restrictions.
Open Code
Intellectual Property
Open Source
Open Access
22
Compression used most commonly in jpg files. Also know as irreversible compression.
data compression
lossy compression
lossless compression
sampling
23
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.
24
A way of representing information using only two options.
Decimal
Binary
Power of 1
Power of 10
25
Which of the following is true about data compression?
Lossy compression cannot be used when sending pictures.
Data compression can be used for pictures and video only.
Data compression can be used to reduce the size of a file for storage.
Lossless data compression is the best compression under all conditions.
26
Example: When an odometer appears to reset once it passes the highest number that would fit in the screen.
user error
round-off error
overflow error
syntax error
27
What is the value of sum displayed after this algorithm is run?
4
error
0
6
28
What is the code below displaying?
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
Nothing will be displayed
29
What is displayed after running the algorithm below?
145
12
43
133
30
A freely accessible license whereby a creator determines the use of his or her own work.
Open Source
Intellectual Property
Copyright
Creative Commons
31
What will the executed code display?
All odd numbers between 3 and 12
All even numbers between 1 and 12
All even numbers between 3 and 12
All odd numbers between 1 and 12
32
What should replace <missing condition> so that the program below displays TRUE 60% of the time?
x > 10
x >= 9
x >= 6
x < 6
33
What is displayed as a result of executing the code segment?
Golden Bandicoot Cat Fish
Dog Golden Bandicoot Cat Fish
Dog Cat Fish
Dog Cat Fish Golden Bandicoot
34
What does the following algorithm display?
It always displays “True.”
When A is false, the algorithm displays “False.”
It always displays “False.”
When B is false, the algorithm displays “False.”
35
What will the following code segment display?
1 4 7 10 9
9 10 7 4 1
10
Nothing will be displayed due to the error index out of bounds.
36
Which of the following does NOT need to be considered when determining the credibility of a source?
Use of persuasive techniques within the source
Sponsorship of the article or publisher
Publisher’s reputation and credentials
Author’s reputation and credentials
37
What will the program segment display?
99
3
34
1
38
What could a single binary value represent?
Time
Volume on a radio
Temperature in degrees Celsius
If a light is on or off
39
Which of the following lines of code would cause an error with a robot?
CAN_MOVE (north)
NOT CAN_MOVE (left)
CAN_MOVE (right)
NOT CAN_M0VE (forward)
40
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 from a poem in the order they appear in the poem
A list of students in order of height
A list of words in a dictionary
41
The following picture was taken by a smartphone. Which of the following is
NOT
metadata?
The date the photo was taken
The Red, Green, and Blue values of the top left pixel
The filename
The geographic location where the picture was taken
42
Which of the following is NOT an example of using citizen science as a possible solution?
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
Collecting recordings using ultrasonic microphones and sonograms of bats
43
A type of data used for graphics or pictures.
Sampling
Image
Pixelation Widget
metadata
44
What will be the result of the displayed program?
7 5 9
6 14
9 5 7
14 6
45
When sending a picture from phone to phone using an app, what is true about the packets of information sent
Packets are received in the order that they are sent.
All of the above.
Packets are sent by the quickest path possible in the correct order.
Packets are sent in multiple paths and can be received out of order.
46
What is returned by
cube(cube(2))
?
512
8
64
128
47
Convert 88
dec
to a binary number.
1010101
1000001
1011000
1111000
48
The number 256 can only be represented using the decimal system.
True
False
49
Which of the below, represented in binary as a byte, contains the most zeros?
C
.
K
p
50
Is a binary search always the fastest search when searching for a number in a sorted list?
For a large list, linear searches are always faster.
A binary search is always faster with a sorted list.
For a large list, binary searches are always faster.
No
51
What will the following algorithm display after running the code below?
4
2
1
3
52
The code is intended to swap variables a and b using a temporary variable, temp. What can replace to work as intended
a = temp
b = temp
b = a
a = b
53
What will the following program display?
The program is an infinite loop.
OXXOO
OXXOXXOXX
OOOXX
54
What is the maximum number of searches required if using a linear search on list containing 2,000 numbers?
1
2,000
11
1,000
55
In the following flowchart, what is the value of RESULT?
True when both A and B are true
Always false
True when either A or B are true
Always true
56
Which of the following statements are true about high-level programming languages?
A high-level programming language must be used to execute math problems
A high-level programming language often uses natural language elements.
A high-level programming language allows for code to be re-used.
A high-level programming language does not ensure program reliability.
57
What should replace missing code t oreturn true when the first element is equal to the last element of the array?
( list1[1] = list1[LENGTH(list1)] )
( list1 = list1 )
( list1[0] = list1[LENGTH(list1) – 1] )
( list1[0] = list1[1] )
58
A single unit of computer information represented as a 0 or 1
byte
compressed data
pixel
bit
59
When should a heuristic algorithm be used?
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 Florida, to Alaska
When determining files that have been exposed to a virus
60
What will be the values of x and y after this code segment executes?
x is 40, y is 40
x is 30, y is 40
x is 40, y is 30
x is 20, y is 20
61
What will the following code segment display?
3
Nothing will be displayed due to an error.
11
6
62
What is the following program returning?
20
27
25
37
63
What is the minimum number of searches for a binary search using an ordered list of 100 numbers?
8
100
0
1
64
How many lines need to be cut to completely isolate computer E from computer C?
6
1
3
5
65
The findings from a project are typically presented using a graph as opposed to table or raw data. Why might this be?
Graphs can be placed into a slideshow or document, while tables cannot
Graphs are able to show all of the detail necessary to understand data.
Graphs can show trends that might not be easily seen with raw data.
Graphs are easier to read and interpret at a glance.
66
What should replace so the program below displays TRUE 60% of the time?
x MOD 5 = 0
x MOD 5 = 5
x MOD 2 = 0
x MOD 2 = 1
67
Why does a calculator show 0.666666667 when you perform the equation of 2 divided by 3?
syntax error
overflow error
round-off error
user error
68
What protocol below guides the rules about how data are subdivided into packets before transmission?
DNS
TCP
FTP
HTTP
69
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.
70
Which of the following is NOT metadata for the picture?
The picture of the dog
The location where the picture was taken
The time the picture was taken
The memory space taken up by the picture
71
Metadata is...
data to help with compression
data to deconstruct an image
data to build an image
data that describes other data
72
Which of the following can be represented by a single binary number?
Is your puppy named “Waffles”?
What is the speed of a puppy chasing a squirrel?
Do you have a puppy?
How many squrrels are there?
73
For the following data structure, which search algorithm would work as intended to find the value 35?
Linear search
Bubble sort
Binary search
Insertion sort
74
This drawing depicts 2 fundamental cryptographic concepts. which of the choices below properly identify these concepts?
Lexicographic and Asymmetric
Hash Codes and Key Transfers
Symmetric and Steganography
Asymmetric and Symmetric
75
What is the code segment displaying?
34
17
0
68
76
We can convert a number from decimal to octal (base 8) by repeatedly subtracting the largest possible powers of what?
7
8
9
2
77
Why are internet protocols used?
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.
Internet protocols are specific to the hardware attached to the internet.
78
An algorithm has
n
number of steps. Which of the following would be considered a reasonable number of steps?
100n4
3n
4
n!
79
What will be the value of x after this code segment executes?
For all values of x, x will remain unchanged.
For all values of x, x will decrease by 1.
none
when x > 5, x will remain unchanged, otherwise, x will decrease by 1
80
I don't know all the binary code that is used to make a picture on my screen, but I understand the picture. This is...
metadata
an algorithm
powerful stuff
an abstraction
81
What does the algorithm display?
5
7
3
4
82
The building blocks of a image, typically a tiny square that contains a single byte of color data for a larger image
sampling
pixel
colors
metadata
83
The standard unit of measurement for binary data in most computers. Grouped in 8 pieces of data
Byte
GigaByte
MegaByte
Bit
84
What is digital data?
Data that measures continous changes in a environment
Data for image files so you can upload you images anyhere.
Data for all electronic devices
Data that is measured based on a limited set of values.
85
What is displayed after the following algorithm is run?
32
50
132
100
86
What is displayed because of executing the code segment?
1 3 5 7 9
9
3 9
1 5 7
87
Which of the following types of components is necessary for cybersecurity?
I, II, and III
I and II only
III only
I only
88
Which of the following is true about redundancy on the internet?
I only
II and III only
I and II only
I, II, and III
89
Which of the following are benefits to having information be easily accessible and changeable?
I only
I, II, and III
II and III only
I and II only
90
Intellectual property can be anything you purchased on your own.
False
True