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