stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Nath, Rushaan AP Exam Review Flashcards | StudBud
Explore
/
Nath, Rushaan AP Exam Review
Nath, Rushaan 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 is the minimum number of lines that must be cut to isolate F completely?
8
6
0
4
2
Answer the following scenario
1.75 seconds
571 seconds
57.1 seconds
175 seconds
3
Answer the following question.
Cloud Drive, as it allows for multiple users and version control.
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
4
What is the code segment displaying?
68
0
34
17
5
Answer the following question
512
24
256
8
6
Answer the following scenario.
Phishing
Denial of Service
Spearing
Social Engineering
7
Which of the following will correctly replace /*missing code */ ?
NOT CAN_MOVE(forward)
CAN_MOVE(right) OR NOT CAN_MOVE(forward)
NOT CAN_M0VE (right)
CAN_MOVE (right)
8
What is the value of sum displayed after this algorithm is run?
0
4
Error
6
9
What are two aspects of efficiency?
execution time and memory usage
wall clock time and CPU time
memory usage and length of code
execution time and length of code
10
Which of the following is least likely to receive targeted advertisements?
All of the above
Users with strong passwords and multifactor authentication
Individuals using the web browser with the Do Not Track setting engaged
Individuals using the web browser without the Do Not Track option
11
Which of the following types of components is necessary for cybersecurity?
I.
Software
II.
Hardware
III.
Human
I only
I and II only
III only
I, II, and III
12
Answer the following scenario
IF(number = true OR randomNumber = true)
IF(number = randomNumber)
IF(number = true AND randomNumber = drawing)
IF(number ≠ randomNumber)
13
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
Publisher’s reputation and credentials
Sponsorship of the article or publisher
14
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 12 12
12 24 24
15
Which of the following is a cause of the digital divide?
Lack of access to the technology due to affordability
Lack of knowledge on how to use technology
Lack of access to technology due to location
All of the above.
16
The client requests data from alpha. Which BEST describes what will happen if ISP X, Host 3, and Host 11 don't work?
H1 will compensate for the outage and route the data accordingly
The Client will not receive any data due to the outage
ISPY will receive packets showing an error to H3 & reroute to a working one
The whole server will not function due to the outage
17
Which algorithm calculates average correctly?
Both calculate average correctly, but Algorithm A more efficient.
Algorithm B calculates average in all cases, while Algorithm A does not.
Neither Algorithm A nor Algorithm B calculates average correctly.
Algorithm A calculates average in all cases, while Algorithm B does not.
18
What is the following program returning?
27
20
25
37
19
Answer the following scenario
Runtime error
Logical error
No error. The program works as intended
Syntax error
20
What does the algorithm display?
4
5
7
3
21
Which of the following algorithms require both selection and iteration?
given a list of integers, displays only the negative integers in the list
given a list of integers, displays the number of even integers in the list
given a list of integers, displays the sum of the integers in the list
given two integers, displays the greater of the two integers
22
Which of the following lines of code would cause an error with a robot?
CAN_MOVE (right)
NOT CAN_MOVE (left)
CAN_MOVE (north)
NOT CAN_M0VE (forward)
23
Answer the following scenario
Wiki
Newsgroup
RSS Feed
Webopedia
24
What will be the output of the following program?
9 5 7
14 6
14
7 5 9
25
Under which of the following conditions is it most beneficial to use a heuristic approach to solve a problem?
The problem can't be solved in a quick time and a rough solution is ok
The problem can be solved in a quick time and an exact solution is needed
The problem can't be solved in a quick time and an exact solution is needed
The issue can be solved in a quick time and an close solution is allowed
26
Answer the following scenario
item ≠ 13
item = 13
list1 = 13
list1 ≠ 13
27
Metadata is defined as data about data. Which of the statements below is true?
I, II, and IV only
I only
II, III, and IV only
All of the above
28
An algorithm has n number of steps. Which of the following would be considered a reasonable number of steps?
4n+8n2
n!
3n
100n4
29
Answer the following scenario.
I, II, III, and V only
All of the above
II, IV, and V only
I, III, and IV only
30
Answer the following scenario.
Neither
II only
I only
Both I & II
31
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.
32
Which of the following is true about data compression?
DataC can be used to reduce the size of a file for storage or transmission.
Lossy compression cannot be used when sending pictures.
Data compression can be used for pictures and video only.
Lossless data compression is the best compression under all conditions.
33
What will the following code segment display?
1 4 7 10 9
9 10 7 4 1
10
Nothing will be displayed due to the error index out of bounds.
34
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 largest
A list of words from a sunshine poem in the order they appear in the poem
A list of students in order of height
35
What is the code below displaying?
3, 6, 9, 12, 15
2, 4, 6, 8, 10, 12, 14
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14
Nothing will be displayed
36
Which of the following statements describes a limitation of a computer simulation to model realistic objects or systems?
Computer simulations only run on powerful computers that not everyone has
It is difficult to change parameters or conditions when using simulations.
Computer simulations can only be built after real-world scenarios
Computer simulations usually make some assumptions about the real-world
37
What is returned by
mystery (1, 2)
?
2
8
4
10
38
If a does not equal b, what error has occurred?
Hexadecimal conversion error
Roundoff error
Overflow error
a will equal b on all computers
39
What percentage of the time will the following program display a number?
20%
75%
10%
25%
40
What will the program above display?
2 8
4 8
3 7
2 7
41
What is displayed after running the algorithm below?
12
43
133
145
42
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
43
Consider the following procedure,
cube (n)
. What is returned by
cube(cube(2))
?
512
128
64
8
44
Answer the following scenario.
II only
I only
Both I and II
Neither I nor II
45
We can convert a number from decimal to octal (base 8) by repeatedly subtracting the largest possible powers of what?
7
2
9
8
46
Answer the following scenario
Both selection and looping are necessary.
Neither selection nor looping are necessary.
Selection is necessary, but looping is not.
Looping is necessary, but selection is not.
47
Which of the following best describes the result of using 64-bit integers instead of 32-bit integers?
2 times as many values can be represented.
32 times as many values can be represented.
32^2 times as many values can be represented
2^32 times as many values can be represented.
48
Answer the following question.
Optimization algorithm
Heuristic algorithm
Searching algorithm
Brute force algorithm
49
Read the following question:
GIF. Storing information in a table format ensures losslessness.
BMP. The algorithm for storing a BMP file has fewer steps.
GlF. data in pairs allows for the use of 3 bytes for each set of colors
BMP. Having access to the data at every pixel ensures losslessness.
50
Which of the above, represented in binary as a byte, contains the most zeros?
C
K
p
.
51
The following picture was taken by a smartphone. Which of the following is
NOT
metadata?
The date the photo was taken
The filename
The Red, Green, and Blue values of the top left pixel
The geographic location where the picture was taken
52
These drawings depict two fundamental cryptographic concepts. Which of the choices properly identify these concepts?
Lexicographic and Asymmetric
Symmetric and Steganography
Asymmetric and Symmetric
Hash Codes and Key Transfers
53
What should replace <missing condition> so that the program below display TRUE 10% of the time?
x < 1
x < 9
x <= 1
x <= 9
54
How many lines need to be cut to completely isolate computer E from computer C?
0
6
3
8
55
Which of the storage methods makes accessing data easiest for people in multiple locations?
Cloud Drive, as it allows for multiple users and version control.
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, handed, or mailed to multiple users.
56
Answer the following question.
Home key encryption
Symmetric encryption
No key encryption
Public key encryption
57
Which of the following are true statements about digital certificates in Web browsers?
II only
Neither I nor II
I only
I and II
58
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
59
What should replace so that the program below displays TRUE 60% of the time?
x >= 6
x < 6
x > 10
x >= 9
60
Which of the following test cases will return the correct average using the above procedure
numbers[1, 1, 35, 6]
numbers[0, 1, 35, 6]
numbers[11, 35, 6]
numbers[3, 5, 11, 6]
61
The following program is intended to display the string 789. What type of error will the following procedure cause?
No error
Runtime error
Logic error
Syntax error
62
What will the following program display?
OXXOXXOXX
OXXOO
OOOXX
The program is an infinite loop.
63
The procedure isFound(list, item) will return TRUE if an item is found in a list. What will the procedure display?
[1, 35, 6, 76, 4, 98, 5, 1, 8, 96, −4]
[1, 6, −4]
[4, 6, −4]
[ ]
64
What will be the result of the displayed program?
7 5 9
6 14
14 6
9 5 7
65
Answer the following scenario.
CS, mechanical engineering, biology, electronics, remote systems.
Remote systems, computer science, biology, and mechanical engineering.
Computer science, electronics, remote systems, and biology.
Mechanical engineering, biology, and computer science.
66
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
Event sensing; an event would be the user pushing a button or screen
GPS location
67
What will y display?
20
0
15
16
68
What is displayed as a result of executing the code segment?
Dog Cat Fish
Dog Golden Bandicoot Cat Fish
Dog Cat Fish Golden Bandicoot
Golden Bandicoot Cat Fish
69
Answer the following scenario
Direct observations.
Collecting data through surveys
Programming the most fancy code
User testing
70
A web browser contacts a server using IPv4 and pages a request for a website’s address. Which ISN'T a potential response
128.198.232.65
54.116.188.246
92.11.198.113
174.260.45.144
71
What will the above program display?
2 8 14
3 8 0
Nothing due to an infinite loop
4 8 8
72
Answer the following scenario.
The amount of program documentation that should be minimized
The order of the data put into the data set
How much memory the program requires to run
How many program statements the program contains
73
What is displayed because of executing the code segment?
1 5 7
3 9
9
1 3 5 7 9
74
Answer the following scenario.
Neither Algorithm I nor Algorithm II
Algorithm I only
Algorithm II only
Both Algorithm I and Algorithm II
75
Answer the following scenario
cmptr cmptr cmptr
computer computer computer
computer computer computer computer computer
cmptr cmptr cmptr cmptr cmptr
76
What will the executed code display?
All odd numbers between 1 and 12
All odd numbers between 3 and 12
All even numbers between 1 and 12
All even numbers between 3 and 12
77
Which of the following best approximates the minimum possible time to run all five processes?
10 seconds
18 seconds
8 seconds
7 seconds
78
Which of the following protocol standardization is NOT a function of the IETF (Internet Engineering Task Force)?
JavaScript Coding Protocol
Hypertext Transfer Protocol
Internet Protocol
Simple Mail Transfer Protocol
79
What can replace so the algorithm works a
temp <--- a
temp <--- b
b <--- a
b <--- temp
80
Answer the following question.
I only
I, II, and III
II and III only
I and III only
81
Which of the following is a true statement about data compression?
Data compression is only useful for files being sent over the Internet.
Any single method used for compression cannot fully restore a file
There are trade-offs involved in choosing a compression technique for data
Sending a compressed file ensures that the file cannot be intercepted
82
Which of the following is considered a potential effect of the mobile game rather than the purpose of the game?
People are not watching where they are walking and are getting injured.
People are exercising.
Players are becoming more cultured by visiting artworks.
Players play the game in their spare time.
83
Convert 88DEc to a binary number.
1010101BIN
1000001BIN
1111000BIN
1011000BIN
84
What is displayed by running the code segment?
3 3 6
3 11 3
8 4 6
11 3 8
85
Read the question below:
Population size
Food supply
Antler size
Prevalence of illness in herd
86
In the following flowchart, what is the value of RESULT?
True when either A or B are true
True when both A and B are true
Always true
Always false
87
Based on the table, which of the following tasks is likely to take the longest amount of time when scaled up to 100,000?
Sorting data
Backing up data
Searching through data
Deleting entries from data
88
What is displayed as a result of executing the following code segment?
Waffle Moose Noodles Novack Benji
Dog Waffle Moose Noodles Novack Benji
Moose Benji Novack Waffle Noodles
Dog Waffle Noodles Moose Novack Benji
89
answer the following scenario.
I and III
I and II
I, II, and III
II and III
90
Which of the following statements is NOT correct:
Logic gates are modeled by Boolean functions.
Logic gates are used to perform operations such as addition and subtraction
Hardware is the lowest level of abstraction.
Binary data is processed by physical layers of computing hardware
91
Which of the following is NOT metadata for the picture?
The memory space taken up by the picture
The picture of the dog
The time the picture was taken
The location where the picture was taken
92
Which of the following best approximates the minimum possible time to run all three processes in series?
4
28
15
9
93
Answer the following question.
II only
II and III
I , II , and III
I only
94
Which of the following is NOT an example of using citizen science as a possible solution?
The behavior of the mysterious & wonderful jellyfish on the beach or water
Calculating PSAT scores for a school district
The behavior of fireflies during the summer months
Collecting recordings using ultrasonic microphones and sonograms of bats
95
Which of the following can be represented by a single binary digit?
Date
Geographic location
Light on / light off
Time
96
Whis of the data is not given by the user or their device but is necessary for the upgraded game to operate as described
User name
Speed traveling
GPS location of user
Location of landmarks used in the game.
97
What will the following code segment display?
6
11
Nothing will be displayed due to an error.
6
98
What will be the values of x and y after this code segment executes?
x is 20, y is 20
x is 40, y is 30
x is 40, y is 40
x is 30, y is 40
99
Why does program code have to be run through a compiler?
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.
Program code must be debugged by the compiler before it can ever run.
Program code must be translated into a language the computer understands.
100
Which command can replace <Missing Condition> to result in the last column of the table shown below?
a AND (a AND b)
a OR b
b AND (a AND b)
NOT (a AND b)