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