stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Musa, Eman AP Exam Review Flashcards | StudBud
Explore
/
Musa, Eman AP Exam Review
Musa, Eman AP Exam Review
94 terms
·
StudBud Administration
Imported from external platform
Flashcards
94 cards
F
Practice quiz
P
Host live
L
Questions
94
Answers
1
What percentage of the time will the following program display a number?
10%
75%
20%
25%
2
What is displayed because of executing the code segment?
1 3 5 7 9
1 5 7
3 9
9
3
What does the algorithm display?
4
5
7
3
4
Answer the following question bellow.
Lossless transformation
Addition transformation
Lossy transformation
Frequency transformation
5
Which of the following is a negative trade-off inherent in lossless compression?
The number and size of pixels will be less.
Some of the data will be lost and cannot be recovered.
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.
6
What will the executed code display?
All even numbers between 1 and 12
All odd numbers between 3 and 12
All even numbers between 3 and 12
All odd numbers between 1 and 12
7
Debug the above code segment. Which of the following statements is true?
The robot will never reach the end of the maze. Not run as intended.
The code may or may not run as intended. The code’s purpose is not stated.
The code runs as intended. The code runs without error.
The code runs as intended. The robot will reach the end of the maze.
8
Sort the following by levels of abstraction, from lowest to highest:
I, IV, II, III
I, III, IV, II
I, II, III, IV
I, IV, III, II
9
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]
10
Answer the following question bellow.
Statistical probability model
Information filtering
Preference categorization
Reference grouping
11
What will the following code segment display?
Nothing will be displayed due to the error index out of bounds.
9 10 7 4 1
10
1 4 7 10 9
12
What will the following algorithm display after running the code below?
3
2
4
1
13
A flowchart is a way to represent an algorithm visually. The flowchart below uses the following building blocks.
4 8 8
3 8 0
Nothing due to an infinite loop
2 8 14
14
What should replace so the program below displays TRUE 60% of the time?
x MOD 5 = 0
x MOD 2 = 1
x MOD 2 = 0
x MOD 5 = 5
15
Consider the following code segment, which uses the variables x, y, and z. What will the following program display?
24 24 24
6 12 24
12 24 24
12 12 12
16
What is displayed by running the code segment?
8 4 6
3 3 6
11 3 8
3 11 3
17
What will y display?
20
16
0
15
18
Answer the following question bellow.
Location of landmarks used in the game.
User name
GPS location of user
Speed traveling
19
Which of the following illustrate ways that the internet facilitates collaboration.
I and III only
II and III only
I only
I, II, and III
20
Answe the following question bellow.
10
100
1,000
1
21
What are two aspects of efficiency?
memory usage and length of code
wall clock time and CPU time
execution time and memory usage
execution time and length of code
22
Which of the following must be true about the code that she writes?
Both selection and looping are necessary.
Looping is necessary, but selection is not.
Neither selection nor looping are necessary.
Selection is necessary, but looping is not.
23
What is displayed as a result of executing the following code segment?
Dog Waffle Moose Noodles Novack Benji
Moose Benji Novack Waffle Noodles
Waffle Moose Noodles Novack Benji
Dog Waffle Noodles Moose Novack Benji
24
Answer the follwoing question bellow.
8
24
512
256
25
What is the following program returning?
20
25
27
37
26
What is returned by
mystery (1, 2)
?
4
2
10
8
27
What would be a good use of constants when initializing variables at the beginning of a program?
I, II, and III
I and III only
II and III only
I and II only
28
Answe the following question bellow.
Public key encryption
No key encryption
Home key encryption
Symmetric encryption
29
Which of the following best approximates the minimum possible time to run all five processes?
10 seconds
18 seconds
8 seconds
7 seconds
30
What should replace <missing condition> so that the program below displays TRUE 60% of the time?
x > 10
x < 6
x >= 9
x >= 6
31
Which ofthe following will correctly replace /*missing code */ ?
CAN_MOVE(right) OR NOT CAN_MOVE(forward)
NOT CAN_MOVE(forward)
CAN_MOVE (right)
NOT CAN_M0VE (right)
32
Answer the following question bellow.
I , II , and III
I only
II and III
II only
33
What is the code segment displaying?
68
17
0
34
34
What will be the output of the following program?
9 5 7
7 5 9
14
14 6
35
If a does not equal b, what error has occurred?
a will equal b on all computers
Overflow error
Roundoff error
Hexadecimal conversion error
36
Which algorithm calculates average correctly?
Algorithm A calculates average in all cases, while Algorithm B does not.
Both Algorithm A and B work correctly, but Algorithm A is more efficient.
Algorithm B calculates average in all cases, while Algorithm A does not.
Neither Algorithm A nor Algorithm B calculates average correctly.
37
Which of the codes below will correctly swap the frog with the bear?
animal[3] = animal[1]animal[1] = animal[3]
temp = animal[1]animal[1] = animal[3]animal[3] = temp
animal[1] = animal[2]animal[2] = animal[1]
temp = animal[1]animal[1] = animal[2]animal[2] = temp
38
Answer the follwoing question bellow.
Runtime error
No error. The program works as intended
Syntax error
Logical error
39
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? Hello Karel
What is your name?HelloKarel
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 in a dictionary
A list of students in order of height
A list of words from a poem and the order they come in the poem
41
Which of the following input data is needed by the upgraded game that was
NOT
needed by the original game?
Age of the player
Event sensing; an event would be the user pushing a button or screen
GPS location
Picture of the player
42
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 geographic location where the picture was taken
The filename
43
What will be the result of the displayed program?
7 5 9
14 6
9 5 7
6 14
44
Which of the following is NOT metadata for the picture?
The location where the picture was taken
The picture of the dog
The memory space taken up by the picture
The time the picture was taken
45
What is the code below displaying?
3, 6, 9, 12, 15
Nothing will be displayed
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14
2, 4, 6, 8, 10, 12, 14
46
An algorithm has n number of steps. Which of the following would be considered a reasonable number of steps?
3^n
100n^4
n!
4^n+8n^2
47
In the following flowchart, what is the value of RESULT?
True when both A and B are true
Always true
True when either A or B are true
Always false
48
Convert 88DECto a binary number.
1011000BIN
1111000BIN
1010101BIN
1000001BIN
49
What should replace <missing condition> so that the program below display TRUE 10% of the time?
x <= 1
x <= 9
x < 9
x < 1
50
What percentage of the time will the program display an even number?
40%
10%
20%
50%
51
What will the following code segment display?
6
Nothing will be dispalyed due to an error.
11
3
52
Answer the following question bellow.
I, II, III, and V only
II, IV, and V only
I, III, and IV only
All of the above
53
Which of the following is considered a potential effect of the mobile game rather than the purpose of the game?
Players are becoming more cultured by visiting artworks.
Players play the game in their spare time.
People are exercising.
People are not watching where they are walking and are getting injured.
54
We can convert a number from decimal to octal (base 8) by repeatedly subtracting the largest possible powers of what?
2
8
9
7
55
Which of the following is
LEAST
likely to be included with the game?
Location of highly trafficked roads and bridges
Information about what types of mobile devices can be used
What protocols the mobile device uses to connect to the internet
Location of high-crime areas that should be avoided
56
Answer the following question bellow.
92.11.198.113
128.198.232.65
54.116.188.246
174.260.45.144
57
What will the following program display?
The program is an infinite loop.
OXXOO
OOOXX
OXXOXXOXX
58
Which of the following is
NOT
an investigation tool for designing programs?
Direct observations.
Programming the most elegant code
Collecting data through surveys
User testing
59
Which of the following does NOT need to be considered when determining the credibility of a source?
esponses
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 the
MOST
likely data privacy concern of the upgraded game?
Recording whether the player was speeding when driving to a location.
The player’s score
How much time a person spent playing the game
How many locations the player visited
61
Which of the following protocol standardization is NOT a function of the IETF (Internet Engineering Task Force)?
Internet Protocol
Simple Mail Transfer Protocol
Hypertext Transfer Protocol
JavaScript Coding Protocol
62
What is the maximum number of searches required if using a linear search on list containing 2,000 numbers?
2,000
1
11
1,000
63
What will the program above display?
3 7
2 8
2 7
4 8
64
Answer the following question bellow.
Spearing
Phishing
Denial of Service
Social Engineering
65
Which of the following statements is
NOT
correct?
Logic gates are used to perform operations such as addition and subtraction
Binary data is processed by physical layers of computing hardware.
Hardware is the lowest level of abstraction.
Logic gates are modeled by Boolean functions.
66
Which of the following types of components is necessary for cybersecurity?
III only
I and II only
I, II, and III
I only
67
Which of the following best approximates the minimum possible time to run all three processes in series?
9 seconds
4 seconds
15 seconds
28 seconds
68
Find the error in the following low-level programming code.
This is too difficult. To determine errors
The 34th 0 should be a 1.
The 17th 1 needs to be changed to a 0.
The 84th digit should be a 1.
69
Which of the following can be represented by a single binary digit?
Light on / light off
Time
Date
Geographic location
70
What is displayed as a result of executing the code segment?
Dog Cat Fish
Dog Golden Bandicoot Cat Fish
Golden Bandicoot Cat Fish
Dog Cat Fish Golden Bandicoot
71
The procedure isFound(list, item) will return TRUE if an item is found in a list What is the result procedure displayed?
[ ]
[1, 6, −4]
[1, 35, 6, 76, 4, 98, 5, 1, 8, 96, −4]
[4, 6, −4]
72
What is the minimum number of lines that must be cut to isolate F completely?
8
0
4
6
73
What is the appropriate name for the procedure?
SPIN()
ESCAPE()
IS_TRAPPED()
CAN_ESCAPE()
74
Answe the following question bellow.
Wiki
RSS Feed
Webopedia
Newsgroup
75
Which of the following is NOT an example of using citizen science as a possible solution?
Collecting recordings using ultrasonic microphones and sonograms of bats
Calculating PSAT scores for a school district
The behavior of the mysterious and wonderful jellyfish on the beach/water
The behavior of fireflies during the summer months
76
What is returned by
cube(cube(2))
?
512
64
128
8
77
Which of the choices below properly identify these concepts?
Asymmetric and Symmetric
Symmetric and Steganography
Hash Codes and Key Transfers
Lexicographic and Asymmetric
78
After the following code segment is run, what will be the values of x and y?
x is 30, y is 40
x is 40, y is 30
x is 20, y is 20
x is 40, y is 40
79
What is displayed after running the algorithm below?
12
145
43
133
80
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.
81
A mother is attempting to determine which cell phone plan best tits her family's needs. What are the best steps to take?
III, I, II, IV
I, III, IV, II
I, Il, III, IV
I, IV, II, III
82
Answer the following question bellow.
import java.ThreadLocalRandom
import java.util.function.ThreadLocalRandom
import java.util.concurrent.ThreadLocalRandom
import ThreadLocalRandom.concurrent.util.java
83
Answer the following question bellow. (select 2 answers)
Step 1, Step 5, Step 6, Step 3, Step 4, Step 2
Step 5, Step 1, Step 6, Step 3, Step 2, Step 4
Step 1, Step 5, Step 3, Step 6, Step 2, Step 4
Step 5, Step 1, Step 2,Step 4, Step 6, Step 3
84
Answer the following question bellow.
The order of the data put into the data set
The amount of program documentation that should be minimized
How much memory the program requires to run
How many program statements the program contains
85
Answer the following question bellow.
II and III
I and III
I, II, and III
I and II
86
Answer the following question bellow.
REPEAT UNTIL x = 4
REPEAT 4 TIMES
REPEAT UNTIL (Goal_Reached)
FOR EACH item IN list
87
Which of the following lines of code would cause an error with a robot?
CAN_MOVE (north)
NOT CAN_MOVE (left)
NOT CAN_M0VE (forward)
CAN_MOVE (right)
88
What is the value of sum displayed after this algorithm is run?
6
Error
0
4
89
Which of the following is least likely to receive targeted advertisements?
Users who visit websites with a digital certificate that block targeted ads
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
90
Answer the following quetion bellow.
Syntax error
Logical error
No error; the program works as intended
Runtime error
91
Which of the above, represented in binary as a byte, contains the most zeros?
C
K
p
.
92
Why does program code have to be run through a compiler?
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 must be translated into a language the computer understands.
Program code is write-only until it is run through a compiler.
93
What will the following code segment display?
11
3
Nothing will be displayed due to an error.
6
94
Which command can replace <Missing Condition> to result in the last column of the table shown below?
NOT (a AND b)
a OR b
a AND (a AND b)
b AND (a AND b)