stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Murray, Kaitlyn AP Exam Review Flashcards | StudBud
Explore
/
Murray, Kaitlyn AP Exam Review
Murray, Kaitlyn AP Exam Review
96 terms
·
StudBud Administration
Imported from external platform
Flashcards
96 cards
F
Practice quiz
P
Host live
L
Questions
96
Answers
1
Due to an incorrect total value. What type of error did the below procedure suffer from?
No error. The program works as intended
Syntax error
Runtime error
Logical error
2
What will the program above display?
3 7
2 8
2 7
4 8
3
What will the above program display?
Nothing due to an infinite loop
4 8 8
3 8 0
2 8 14
4
What will the following program display?
OOOXX
The program is an infinite loop.
OXXOXXOXX
OXXOO
5
What will the following code segment display?
Nothing will be displayed due to an error.
6
3
11
6
What are two aspects of efficiency?
execution time and length of code
wall clock time and CPU time
execution time and memory usage
memory usage and length of code
7
Which of the following test cases will NOT find the maximum number in the list?
list1[−23, −67, −3, −7]
list1[4]
list1[23, 67, 3]
list1[0, 0, 0, 0]
8
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.
Some of the data will be lost and cannot be recovered.
The number and size of pixels will be less.
The image quality will be less and will result in a blurry image.
9
What is a reason to use a procedure?
To avoid duplicating code
To avoid a loop
When you need a section of code once in a program
To use with a condition
10
Which combination of statements can be used to express algorithms?
Correctness, efficiency, and clarity
Selection, conditional, and Boolean
Iterative, sequential, and selection
Readable, iterative, and efficient
11
Else statements?
run when an "if" condition is false
run every time an "if" statement runs
run each time an "if" condition is true
do not need an "if" statement to run
12
Which type of loop runs a set number of times?
REPEAT n TIMES
REPEAT UNTIL
Indefinite
Infinite
13
What will the following algorithm display?
13 17 5
2 12 2
2 14 17
14 17 2
14
What is the following program returning?
20
37
27
25
15
What will the following algorithm display?
18
17
19
13
16
What will the following algorithm display?
8
13
1
26
17
What will the following code segment display?
11
6
3
Nothing will be displayed due to an error.
18
What will the following code segment display?
30
22
1
10
19
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
20
Why is a "divide and conquer" search more efficient than a linear search?
You only look at half the dataset
You have to search all the values
It is less efficient with large datasets
You eliminate half the dataset with each
21
Which of the following are benefits to having information be easily accessible and changeable?
I and II only
II and III only
I only
I, II, and III
22
Which of the following is least likely to receive targeted advertisements?
Individuals using the web browser without the Do Not Track option
Users with strong passwords and multifactor authentication
Individuals using the web browser with the Do Not Track setting engaged
Users visit websites with digital certificate that block advertisements.
23
What should replace <missing condition> so that the program below displayes TRUE 60% of the time?
x > 10
x < 6
x >= 9
x >= 6
24
What will the executed code display?
All even numbers between 3 and 12
All even numbers between 1 and 12
All odd numbers between 1 and 12
All odd numbers between 3 and 12
25
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.
Lossy compression cannot be used when sending pictures.
Data compression can be used to reduce the size of a file.
26
How do parameters and arguments differ?
Arguments are sent to procedures where they are then used as parameters.
Arguments are the intermediate values in a calculation
The words can be used interchangeably.
Parameters are sent to procedures where they are then used as arguments.
27
What is returned by
cube(cube(2))
?
512
64
8
128
28
How many lines need to be cut to completely isolate computer E from computer C?
8
0
6
3
29
What are variables used for in programs?
They hold the indices for a list name
They indicate how long the fraction part of a real number is
They hold values, numbers, or strings
They link libraries of programs to the current program
30
Which command can replace <Missing Condition> to result in the last column of the table shown below?
a OR b
NOT (a AND b)
a AND (a AND b)
b AND (a AND b)
31
Sort the following by levels of abstraction, from lowest to highest:
I, II, III, IV
I, III, IV, II
I, IV, III, II
I, IV, II, III
32
What would be a good use of constants when initializing variables at the beginning of a program?
I and III only
I, II, and III
II and III only
I and II only
33
Which of the following is NOT metadata?
The date the photo was taken
The geographic location where the picture was taken
The Red, Green, and Blue values of the top left pixel
The filename
34
A mother is attempting to determine which cell phone plan best fits her family's needs.
III, I, II, IV
I, Il, III, IV
I, III, IV, II
I, IV, II, III
35
What is the appropriate name for the procedure?
CAN_ESCAPE()
SPIN()
IS_TRAPPED()
ESCAPE()
36
What is storage methods that make accessibility for data easiest for people in multiple locations?
USB Flash Drive,as it can be copied and handed or mailed to multiple users.
Magnetic Drive System. as it can handle all data types.
Cloud Drive, as it allows for multiple users and version control.
Mainframe Computer, as it can be accessed from many computers.
37
What will the following algorithm display after running the code below?
2
4
3
1
38
What is displayed as a result if the user inputs “Karel” to the program?
What is your name? Hello Karel
What is your name?HelloKarel
What is your name?Hello Karel
Hello Karel
39
What is displayed after running the algorithm below?
145
43
12
133
40
Which of the following protocol standardization is NOT a function of the IETF (Internet Engineering Task Force)?sponses
Internet Protocol
Simple Mail Transfer Protocol
Hypertext Transfer Protocol
JavaScript Coding Protocol
41
Which of the following lists is
NOT
a candidate for a binary search?
A list of words from a poem about sunshine in the order they appear.
A list of words in a dictionary
A list of numbers from smallest to larges
A list of students in order of height
42
Which of the following illustrate ways that the internet facilitates collaboration?
II and III only
I and III only
I only
I, II, and III
43
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
44
In the following flowchart, what is the value of RESULT?
Always false
True when either A or B are true
True when both A and B are true
Always true
45
What data is not directly provides by user, but is necessary for the ugraded game?
Speed traveling
Location of landmarks used in the game.
GPS location of user
User name
46
What percentage of the time will the program display an even number?
50%
40%
20%
10%
47
Which of the statements below are true.
I only
All of the above
I, II, and IV only
II, III, and IV only
48
What is the maximum number of searches required if using a linear search on list containing 2,000 numbers?
1
1,000
11
2,000
49
We can convert a number from decimal to octal (base 8) by repeatedly subtracting the largest possible powers of what?
8
9
2
7
50
What will the program segment display?
34
3
99
2
51
Which of the following is the MOST likely data privacy concern of the upgrades game?
Recording whether the player was speeding when driving to a location.
The player’s score
How many locations the player visited
How much time a person spent playing the game
52
What is the minimum number of searches for a binary search using an ordered list of 100 numbers?
100
0
1
8
53
Which of the following statements below is NOT true?
lossless is the idea of breaking a file into smaller forms for transmission
Lossy format is used for being rebuilt exactly pre-compression
Scanning in a picture creates a lossy format result.
Moving music onto your digital music player is done is a lossless format
54
What type of problem cannot currently be determined or explained by an algorithm?
Tractable problem
Indefinite problem
Undecidable problem
Unreasonable problem
55
With a problem that cannot be solved for all cases, what can sometimes be used as a close approximation?
A tractable solution
A heuristic solution
A travelling solution
A solvable solution
56
What is displayed because of executing the code segment?
9
1 5 7
3 9
1 3 5 7 9
57
What is displayed by runnning the code segment?
11 3 8
3 11 3
3 3 6
8 4 6
58
What does the algorithm display?
4
7
3
5
59
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
60
Which of the following is NOT metadata for the picture?
The time the picture was taken
The location where the picture was taken
The memory space taken up by the picture
The picture of the dog
61
What is the value of sum displayed after this algorithm is run?
4
6
Error
0
62
What is/are used to determine whether code should be run for both "IF" statements and "REPEAT UNTIL" loops?
Conditions
Events
Iterations
Pseudocode
63
When should a heuristic algorithm be used?
When finding the lifetime batting average of Mookie Wilson
When calculating the average score for the national SAT test
Finding the quickest way to drive from Orlando, Florida, to Alaska
When choosing which files could have been exposed to a virus
64
Which of the following types of components is necessary for cybersecurity?
I only
I and II only
I, II, and III
III only
65
What is the minimum number of lines that must be cut to isolate F completely?
6
0
4
8
66
What will the following algorithm display?
13
26
1
0
67
What should replace so the program below displays TRUE 60% of the time?
x MOD 2 = 0
x MOD 5 = 5
x MOD 5 = 0
x MOD 2 = 1
68
Why does program code have to be run through a compiler?
Program code is write-only until it is 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 must be translated into a language the computer understands.
69
When is a compound condition using the logical operator AND true?
When the NOT operator is also used
When both conditions are true
When both conditions are false
When either of the conditions are true
70
What does the following algorithm display?
When B is false, the algorithm displays “False.”
It always displays “True.”
When A is false, the algorithm displays “False.”
It always displays “False.”
71
What will be the output of the following program?
14
14 6
9 5 7
7 5 9
72
What is the minimum number of binary digits needed to store the number 56?
1
5
3
6
73
What is the code segment displaying?
0
17
68
34
74
What type of error did the procedure below suffer from?
No error. The program works as intended.
Runtime error
Logical error
Syntax error
75
What percentage of the time will the following program display a number?
20%
25%
75%
10%
76
Which of the following computer languages have the highest level of abstractions?
Machine code
All of the above
Python/JAVA
COBOL
77
Which of the following input data is needed by the upgraded game that was NOT needed by the original game?
GPS location
Picture of the player
Age of the player
Event sensing; an event would be the user pushing a button or screen
78
What should replace <missing condition> so that the program below display TRUE 10% of the time?
x < 1
x <= 1
x <= 9
x < 9
79
Which of the following can be represented by a single binary digit?
Time
Light on / light off
Geographic location
Date
80
Which of the following statements is
NOT
correct
Logic gates are used to perform operations such as addition and subtraction
Hardware is the lowest level of abstraction
Logic gates are modeled by Boolean functions
Binary data is processed by physical layers of computing hardware
81
Sequential statements?
run until a loop finishes
run only when the condition is true
run until the user enters "done"
run one after the other in the order given
82
What could a single binary value represent?
Temperature in degrees Celsius
Time
Volume on a radio
If a light is on or off
83
Which of the following lines of code would cause an error with a robot?
CAN_MOVE (north)
CAN_MOVE (right)
NOT CAN_MOVE (left)
NOT CAN_M0VE (forward)
84
What happens when there are syntax errors?
Your program cannot run
The code runs as normal
Nothing happens
Your computer crashes
85
What will the following code segment display?
Nothing will be displayed due to the error index out of bounds.
10
1 4 7 10 9
9 10 7 4 1
86
Which of the following is a uniquely useful feature of search engines?
The ability to find and filter information from a large variety of sites
The ability to find information originally released in print form
The ability to find basic information such as creators or release dates
The ability to distinguish between different versions of something
87
Which of the choices below properly identify these concepts?
Lexicographic and Asymmetric
Hash Codes and Key Transfers
Symmetric and Steganography
Asymmetric and Symmetric
88
Find the error in the following low-level programming code.
The 84th digit should be a 1.
The 17th 1 needs to be changed to a 0.
The 34th 0 should be a 1.
This is too difficult, to determine errors
89
What is 10 MOD 2
4
2
2
0
90
What will y display?
0
16
14
20
91
Which of the following test cases will return the correct average using the above procedure?
numbers[0, 1, 35, 6]
numbers[11, 35, 6]
numbers[3, 5, 11, 6]
numbers[1, 1, 35, 6]
92
What is a special data type that had one of two values?
Bit
A boolean
Bytes
Nothing
93
What will be the result of the displayed program?
7 5 9
14 6
9 5 7
6 14
94
The procedure isFound(list, item)will return TRUE if an item is found in list What will the following procedure display?
[ ]
[4, 6, −4]
[1, 35, 6, 76, 4, 98, 5, 1, 8, 96, −4]
[1, 6, −4]
95
Which of the following has the lowest level of hardware abstraction?
Computer
Transistors
Motherboard
Computer chips
96
The following program is intended to display the string 789. What type of error will the following procedure cause?
No Error
Syntax Error
Runtime Error
Logic Error