stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Marco, Mariella AP Exam Review Flashcards | StudBud
Explore
/
Marco, Mariella AP Exam Review
Marco, Mariella 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
A unique string of numbers separated by periods identifies each computer using the IP to communicate over a network.
ip address
ddos
dns
tcp
2
A memory location to store active data temporarily to shorten data access times and reduce latency is the definition of
indexing
utility
cache
big data
3
Client requests data from Server Alpha What statement BEST shows what'll happen if ISPX Host3 & Host11 aren't working?
The Client will not receive any data due to the outage
It will reroute the data to a working host
Host 1 will compensate for the outage and route the data accordingly
ISP Y receives packets means a failure at Host 3
4
What is the value displayed after the algorithm is run?
Nothing will be displayed
ODD ODD ODD
EVEN EVEN EVEN EVEN
2 4 6
5
Decomposition is:
To break things down into easier to handle chunks
Creating a step-by-step guide to do something
Getting rid of unnecessary information
what happens in the compost heap
6
one of the main protocols in TCP/IP networks
tcp
ip
url
dns
7
Which of the following lines of code would cause an error with a robot?
CAN_MOVE (right)
NOT CAN_M0VE (forward)
CAN_MOVE (north)
NOT CAN_MOVE (left)
8
Which of the following encoded ciphertext strings decodes to an original plaintext message of “secret”?
wigvix
ersecr
kwujwl
oaynap
9
Which of the following statements are true about high-level programming languages? Select
two
answers.
It does not ensure program reliability.
It often uses natural language elements.
It allows for code to be re-used.
It must be used to execute commands such as adding & multiplying
10
Why are internet protocols used?
Select two answers.
Internet protocols are needed to slow the growth of the internet.
Internet protocols are a set of rules to ensure the internet can work
Internet protocols are specific to the hardware attached to the internet.
Internet protocols make the internet scalable and encourage growth.
11
Working together to facilitate the application of multiple perspectives and diverse talents and skills defines...
ReCAPTCHA
visualtion
crowdsourcing
collaboration
12
Which of the following can be represented by a single binary digit?
Geographic Location
Light on/Light off
Date
Time
13
What is the value displayed after the algorithm is run?
2 4 6
6
0 2 4 6
8
14
Which of the following are benefits of using well-named variables in a computer program? Select two answers
The program will be easier to modify in the future.
The program will be easier for people to read.
The program will run faster.
The program will be easier for people to read.
15
Which of the following statements are true?
Both programs will work as intended, but Program B is more readable.
Program A will work as intended, but Program B will not work as intended.
Neither program will work as intended.
Program B will work as intended, but Program A will not work as intended.
16
Which of the following codes will output a TRUE statement if executed?
((true OR false) AND NOT (false OR NOT (true))
((NOT (true)) OR (false AND true))
((true AND false) AND (false OR true))
((NOT(true AND false)) AND (false OR true))
17
Which of the following protocol standardization is NOT a function of the IETF (Internet Engineering Task Force)?
JavaScript Coding Protocol
Simple Mail Transfer Protocol
Internet Protocol
Hypertext Transfer Protocol
18
When the findings from a project are presented, they are typically presented using a graph not a table. Why is this?
Graphs are easier to read and interpret at a glance.
Graphs are able to show all the detail necessary to understand data.
Graphs can show trends that might not be easily seen with raw data.
Graphs can be easily placed into a slideshow/document, while tables can't.
19
Which of the following activities poses the greatest personal cybersecurity risk?
Withdrawing money from a bank account using an ATM
Reserving a hotel room by e-mailing a credit card number to a hotel
Paying a bill using a secure electronic payment system
Making a purchase at an online store that uses public key encryption
20
What is an Event?
An action that doesn’t do anything in the App
An action that will allow you to look up and event
An action that causes something to happen
Something that is happening in the calendar
21
Which of the following would be the most appropriate name for a variable?
variable1
t
amountOfTimeRemainingInTheGame
time_left
22
What will the following code segment display?
30
22
10
1
23
Which of the following lists is
NOT
a candidate for a binary search?
no response given
A list of students in order of height
A list of words from a poem about sunshine in the order they appear
A list of numbers from smallest to largest
24
Which of the choices below properly identify these concepts?
Asymmetric and Symmetric
Hash Codes and Key Transfers
Lexicographic and Asymmetric
Symmetric and Steganography
25
Which of the following is LEAST likely to indicate a phishing attack?
An e-mail from a merchant asks you click on a link to reset your password
Email from a utility company asks you to enter your social security number
Email from your bank ask you to call number on a card to verify transaction
Email say that you've won a lot of money &asks you to put your bank account
26
What is the missing condition?
x > 10
x ≥ 10
x < 10
x ≤ 10
27
When should a heuristic algorithm be used?
Looking for a virus in the computer & not the files
When finding the lifetime batting average of Mookie Wilson
When finding the quickest way to drive from Orlando, FL, to Cold Foot, AK
When calculating the average score for the national SAT test
28
What will the following program display?
[1, 1, 35, 6, 76, 4, 98]
[6, 76, 4, 98]
[ ]
[1, 1, 35]
29
What is Computational Thinking?
Abstraction, Decomposition, Pattern recognition, Algorithm Design
The objective analysis&evaluation of an issue in order to form a judgement.
Nothing to do with Computer Science
Thinking about how computers work things out
30
What will the following algorithm display after running the code below?
4
2
3
1
31
A program is expressed in a programming language. Which of the following is true of the program?
A part of the program can use binary&using higherlevel programming language
A program can be expressed as binary code but will be understood by humans
A program can't be expressed as binary code
The program can also be expressed as binary code
32
A logical error is when the programmer makes a silly mistake.
False
True
33
Binary search always the fastest search when searching for a number in a sorted list.
True
False
34
Which of the following statements best describes the behavior of the algorithm depicted in the flowchart?
It displays the difference between a and b.
It runs in an infinite loop.
It displays the sum of a and b.
It displays the product of a and b
35
a method of compression where you lose no bits
unlikely compression
lossy compression
lossless compression
likely compression
36
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
37
Consider the above procedure. Which of the following best describes the behavior of the find procedure?
Displays the positions of all occurrences of target in list
Displays the position of the first occurrence of target in list
Displays each item in list that is equal to target
Displays the position of the last occurrence of target in list
38
Which of the following decimal (base-10) values is equivalent to the binary (base-2) value 101001?
22
37
41
82
39
Which of the following is a cause of the digital divide?
All of the above
Lack of access to technology due to location
Lack of knowledge on how to use technology
Lack of access to the technology due to affordability
40
what is the formal name in computing for looping?
For While Do
Iteration
Selection
Repetition
41
You have a list of students in alphabetical order, which algorithm would be best to find a specific student?
Linear
Quick
Binary
bubble
42
What is an application program interface?
Service with 2 apps
Service with 1 app
Deleting some code to make the program more efficient
None of the above
43
What will the following program display?
[ ]
[6, 76, 4, 98]
[1, 1, 35, 6, 76, 4, 98]
[1, 1, 35]
44
What is the maximum number of guesses the computer could make before guessing the user’s number?
50
7
25
10
45
What is the value displayed after the algorithm is run?
1
10
12
0
46
How many lines need to be cut to completely isolate computer E from computer C?
8
3
0
6
47
Chaining together or placing two or more separate things side by side so that they are treated as one defines...
cache
extraction
concatenation
ReCAPTCHA
48
What is the User Interface
An interface with code
Elements of which the coder controls
Elements of which the user controls
An interface with options
49
What shape do we use to indicate a decision on a flow chart?
Square
Diamond
Arrow
Rectangle
50
What would the following code display if it is executed? DISPLAY (num MOD)
The quotient that results when the num value is divided by 10
The integer value of num in its one's position
The integer value currently stored in the variable num
The integer value of num in its ten's position
51
Which of the following MUST an algorithm be written or be converted into to be executed by a computer?
High-level language
Natural language
Low-level machine language
Pseudocode
52
The Internet's system for converting alphabetic names into numeric IP addresses
ip address
tcp
url
dns
53
Which of the following best describes the result of running the code segment?
The number 4 is displayed.
The number 0 is displayed.
Nothing is displayed; the program results in an infinite loop.
The number 10 is displayed.
54
What will the following program display?
[0]
[-35]
[-11]
[ ]
55
Which paradigm is known for encapsulating the data structure with the functions
Object Oriented
Procedural
Event driven
Functional
56
What command can replace <Missing condition> to get the results shown in the fourth column of the table?
a OR b
NOT(a AND b)
NOT(a OR a)
NOT b
57
Which of the following best describes a Distributed Denial of Service (DDoS) attack?
An attempt to deny users access to a Web site's resources
An attempt by a country to deny its citizens access to the Internet
An attempt by one user to deny service to another user
An attempt by a user to get private information from a secure database
58
Computing is closely tied to ____, computing innovation have far reaching ____.
creativity, innovation
abstraction, algorithm
selection, iteration
prototype, innovation
59
A packet contains the destination address in addition to the data
specimen
packets
DDoS
DNS
60
Using a sequential search strategy, how many guesses on average would the computer need to guess the number?
100
25
Fewer than 25
50
61
Which answer is correct?
I only
II only
I , II , and III
II and III
62
What condition will make the above an infinite loop?
y≠-3
y ≥ 8
y < -53
y = -108
63
What is displayed after the algorithm is run?
12
3
0
9
64
The representation of information using a chart, diagram, image, etc. is the definition of
analytics
extraction
visualization(s)
concatenation
65
Which of the following statements is
NOT
correct:
Logic gates are used to perform operations such as addition and subtraction
Hardware is the lowest level of abstraction.
Logic gates are modeled by Boolean functions.
Binary data is processed by physical layers of computing hardware.
66
A binary search is performed on an array with 600 elements. About how many iterations are in the algorithm?
6
300
100
10
67
Convert 100001BIN to a decimal number.
29
33
31
63
68
Consider the above code. Assuming that before this code is run, x = 1. What would be displayed at the end?
16
210
8
1
69
a process of encoding messages to keep them secret, so only "authorized" parties can read it
private key
encryption
public key
encoding
70
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 image quality will be less and will result in a blurry image.
The number and size of pixels will be less.
71
How many numbers will the following algorithm display?
100
10
An infinite amount
0
72
Which missing code, if added, makes the result 25% BLUE? CHOOSE TWO ANSWERS.
RANDOM(250, 1000) < 251
RANDOM(1, 2) > 1
RANDOM(5, 8) > 7
RANDOM(1, 4) < 2
73
Selection uses which command?
While
x=x+1
Repeat Until
IF
74
What will the following program display?
0
35
12
16
75
Large amounts of structured and unstructured data that can potentially be mined examined&used by organizations define...
usable data
data collection
data set
big data
76
Which of the following best defines confidentiality in context with information and data?
The confirmation that a company will not sell your information to others
The certainty that information is accurate
The ability to limit access to information to a certain set of users
The reliability of access to information
77
Which of the following test cases will NOT find the maximum number in the list?
list1[23, 67, 3]
list1[−23, −67, −3, −7]
list1[4]
list1[0, 0, 0, 0]
78
You connect a new device to your Wi-Fi internet connection at home. What will happen next?
The device will be assigned a new Web address
The device will be assigned a new packet number
The device will be assigned a new IP address
The device will be assigned a new device driver
79
What is the value displayed after the algorithm is run?
5
2
6
0
80
Which of the following is used to predict future usage?
Calculating the monthly bill charged
Identifying the time at which most purchases are made
identifying the largest spending addresses
Using past purchases to recommend products for possible purchase
81
What will the following program display?
4
0
35
13
82
What is the value displayed after the program is run?
8 6
a 6
a 8
16 4
83
Given the above code segment, what would be displayed if age were initialized with a value of 18?
group 3
group 4
group 1
group 2
84
Which ASCII character is represented by the binary (base 2) number 1000001?
B
D
A
C
85
What is displayed after running the algorithm below?
145
43
133
12
86
Which of these is not a variable type?
Bool
Alphanumeric
Integer
String
87
Why is it important to find an efficient solution to a problem?
An efficient solution uses more computer resources
An efficient solution can always be solved in a reasonable amount of time.
An efficient solution makes it harder to copy an algorithm.
An efficient solution can make it easier to analyze larger data sets.
88
The basic building blocks of everything around us that relates to technology
Binary
Byte
Bit
Boolean
89
What is the minimum number of searches for a binary search using an ordered list of 100 numbers?
1
0
100
8
90
For the method call t(6), how many calls to t will be made, including the original call?
7
6
15
11
91
Which of the following CANNOT be determined using only the information contained in the metadata?
The time when the streaming service is used
The least common mood of the audience
Whether the streaming service is used more during inclement weather
The most popular current album
92
What will be returned by t(5)?
-2
0
4
-4
93
Monica types the widgets.cs.fbhs.org into the URL bar in her browser. Which will happen on DNS servers?
The .org name server will send the IP of the fbhs.org name server.
widgets.cs.fbhs.org name server will send the IP of widgets.cs.fbhs.org
widgets name server will send the IP of the widgets.cs name server.
.org name server will send the IP address of widgets.cs.fbhs.org
94
public void f(int a, int b) { if (a/b != 0) f(a/b,b); System.out.print(a % b); }what is printed by the call f(4,2)
201
3
221
100
95
Which of the following is likely to affect the ability of the program to process larger data sets?
How many program statements the program contains
The order in which the data is put into the data set
How much memory the program requires to run
How well the program is documented
96
What data type would you use to store a telephone number
Bool
Integer
String
Real/Float
97
What is the minimum number of binary digits needed to store the number 56?
5
6
3
1
98
What value does the above code segment display?
17
53
No value is ever displayed
36
99
Why do most data-analyzing programs include options for creating graphs?
It's harder to make spreadsheets properly displayed.
Graphs make it easier to interpret data values, trends, and proportions
Graphs are less taxing on a computer graphics card than a plain spreadsheet
It's easier to code graph-based data analyzer than a spreadsheet-based one.
100
Which of the following can be represented by a single binary number?
Select two answers
What is the speed of a puppy chasing a squirrel?
The position of an object on a grid representing a position of two-d
Is your puppy named “Waffles”?
Where is your dog?