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