stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Asif, Zain Summative Test Project Flashcards | StudBud
Explore
/
Asif, Zain Summative Test Project
Asif, Zain Summative Test Project
100 terms
·
StudBud Administration
A 100 questions based around AP Computer Science Principles
Flashcards
100 cards
F
Practice quiz
P
Host live
L
Questions
100
Answers
1
Which of the following types of components is necessary for cybersecurity?
I.
Software
II.
Hardware
III.
Human
1, 2, and 3
1 only
1 and 2
3 only
2
While algorithms can be analyzed mathematically, what information does the testing process provide?
How often program statements execute.
The maximum size dataset the algorithm can handle.
The validity of the algorithm.
The clarity of the algorithm.
3
Which best describes the role of TCP?
The set of rules for the path packets taken on the fault-tolerant internet.
The foundation of data communication for the World Wide Web .
numerical label assigned to each device connected to the internet.
A common protocol for encrypting and decrypting data on the internet.
4
What is an example of "metadata"?
A header in a document
Test data
Author of the document
A line of code
5
Usually exponential in the number of steps, like doubling every time your input grows by one
Not reasonable time
Moore's Law
Data type
Binary Search
6
What will the following code segment display?
nothing will display due to eror
11
6
3
7
The process of translating the detailed designs into computer code.
Debugging
Pseudocode
Coding
Sorting
8
Different levels of access to technological devices and the Internet due to economic or geographic reasons.
Technology Rift
Binary Split
Demographic Division
Digital Divide
9
What could a binary number represent?
All of the above
A color
Text
A number in a decimal
10
Why are simulations useful abstractions?
They can change multiple options at the same time, leading to new insights.
They can precisely test real-world events to identify the ultimate outcome.
They can confirm the cause of events.
They can test hypotheses without real-world constraints.
11
What do logical conditions always evaluate to?
A Boolean value
A real number
A value stored in a constant
A "string" text field
12
using a looping control structure, like while, for, foreach, repeat, repeat-until, etc.
Iteration
Crowdsourcing
Selection
Heuristic
13
What will the following code segment display?
11
3
6
nothing will display due to error
14
In the following flowchart, what is the value of RESULT?
Always false
True when both A and B are true
True when either A or B are true
Always true
15
Designing a special set of test cases and running the program using these test data.
Feasibility Study
Data Network
Regression Testing
Empirical testing
16
What is the name of the search method that provides higher or lower feedback with each iteration of the search?
Merge Search
Binary Search
Linear Search
Bucket Search
17
What does the following algorithm display?
It always displays “True.”
When A is false, the algorithm displays “False.”
When B is false, the algorithm displays “False.”
It always displays “False.”
18
Which of the following is a true statement about data transmitted over the internet?
Packets are received in the same order that they are sent.
Redundancy of the internet is by companies that set the standards
All data traveling over the internet is in binary.
The domain name system (DNS)
19
In the following flowchart, what is the value of RESULT?
True when either A or B are true
Always true
True when both A and B are true
Always false
20
Consider the following code segment.
What is displayed as a result of the code segment?
Golden Bandicoot Cat Fish
Dog Cat Fish Golden Bandicoot
Dog Cat Fish
Dog Golden Bandicoot Cat Fish
21
What is the minimum number of lines that must be cut to isolate F completely?
6
4
8
0
22
Which of the following can be represented by a single binary digit?
Geographic location
Date
Light on / light off
Time
23
data about data, like a camera storing the location, aperture, shutter speed, etc. for a digital photo
Server
Datatype
Metadata
Key
24
Why does program code have to be run through a compiler?
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.
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.
25
On the AP exam, compound expressions can be created using which of the following operators?
AND/OR
IF/IF ONLY
IS/IS NOT
NOT/NOR
26
What does the algorithm display?
5
4
3
7
27
Consider the following code segment. What will the executed code display?
All even numbers between 3 and 12
All odd numbers between 1 and 12
All even numbers between 1 and 12
All odd numbers between 3 and 12
28
What will the program below display?
2 7
3 7
2 8
4 8
29
What should replace so the program below displays TRUE 60% of the time?
x MOD 2 = 0
x MOD 2 = 1
x MOD 5 = 0
x MOD 5 = 5
30
Compressing data in a way that preserves all data away and allows full recovery of the original, good compression.
Iteration
Crowdsourcing
Lossless
Lossy
31
Error that results when the number of bits is not enough to represent the actual number
Round-off
Overflow
Metadata
Syntax Error
32
The following picture was taken by a smartphone. 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
33
What will the following code segment display?
Nothing will be displayed due to the error index out of bounds.
9 10 7 4 1
1 4 7 10 9
10
34
An approach to software development that emphasizes a flexible and ready response to meet a shifting target.
Abstraction
program design phase
Agile software development
Problem specification
35
The sequence control structure is simple a sequence of one or more statements in a computer program
Sequence
Algorithm
Selection
Repetition
36
Steps taken before performing an action. Also can be defined as a set of rules
Code
Protocol
IP Address
Encryption
37
Consider the following code.
1 5 7
9
1 3 5 7 9
3 9
38
What happens when you "clean data"?
All of the above
Incomplete data records are completed or removed.
Duplicate records are removed.
Corrupt data records are corrected or removed.
39
We can convert a number from decimal to octal (base 8) by repeatedly subtracting the largest possible powers of what?
9
8
7
2
40
What will the following algorithm display after running the code below?
2
4
3
1
41
a boolean condition to determine which of two algorithmic paths are taken, aka if-then
Heuristic
Selection
Sequencing
Iteration
42
A precise sequence of instructions for processes that can be executed by a computer.
Parameter
Algorithm
Function
Documentation
43
error that results when the number of bits is not enough to hold the number, like a car's odometer "rolling over"
Overflow
Saturated
Underflow
Lossy
44
What will be the result of the displayed program?
7 5 9
14 6
9 5 7
6 14
45
What will be the output of the following program?
14
14 6
9 5 7
7 5 9
46
Why does updating a file require more memory than reading a file?
A read file requires the entire file be loaded to memory.
A read file needs no memory, so the updating file will require more memory.
A read file needs only certain parts loaded to memory.
A read file uses only the hard disk.
47
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.
The image quality will be less and will result in a blurry image.
The number and size of pixels will be less.
Some of the data will be lost and cannot be recovered.
48
The amount of data that can be sent from one point to another in a certain period of time.
Time-Space Compression
Bandwith
Innovation
Latency
49
An algorithm has n number of steps. Which of the following would be considered a reasonable number of steps?
3^n
4^n + 8n^4
100n^4
n!
50
The resulting object code after a linker inserts requested code from code libraries.
Data Network
Computational model
Executable module
Subtask module
51
Why do computing innovations tend to lead to legal concerns?
Lawyers are unfamiliar with the laws governing computing innovations.
Laws about the internet concerning copyrights have been passed.
There is no way to hide your IP address on the internet.
Laws involved in these concerns were often created before computers.
52
What is the value of sum displayed after this algorithm is run?
6
4
Error
0
53
the computer's electronic and mechanical components.
Data
Software
Hardware
Database
54
A piece of code in logical chunks that you can easily call over and over again.
Loop
Parameter
Abstraction
Function
55
a number written in the binary system, a system that uses only two digits, 0s and 1s.
Intergern
Binary Number
Pseudocode
Decimal Number
56
A design that resembles a final product.
Protocol
Innovation
Lossless Compression
Prototype
57
Which of the following can be represented by a single binary digit?
Date
Geographic Location
Light on/ light off
Time
58
How do selection statements determine which section of code to execute?
Through the use of the Turing algorithm.
Through random number generators.
Through conditions that evaluate to true or false.
Through variables initialized to execute these statements.
59
Consider the following code segment.
Dog Golden Bandicoot Cat Fish
Golden Bandicoot Cat Fish
Dog Cat Fish Golden Bandicoot
Dog Cat Fish
60
What is the value of sum displayed after this algorithm is run?
error
0
4
6
61
An error in a program that makes it do something other than what the programmer intended.
Run-time error
Compile-time error
Logic error
Syntax error
62
polynomial in the number of steps an algorithm takes in the worst case based on the input size
Hash Function
Linear Search
Reasonable Time
Polyalphabetic Cipher
63
What is the maximum number of searches required if using a linear search on list containing 2,000 numbers?
11
2000
1
1000
64
Going one by one vs starting in the middle and going left/right like looking for a word in the dictionary.
Binary Search
Sequence
Iteration
Linear Search
65
Using distributed calculations and/or storage for big data or a web application
Cloud Computing
virtualization
Crowdsourcing
Deciphering
66
How are procedures abstract in computer science?
They use actual values to represent concepts.
They represent the lowest level of code for a computer to run.
They can be used without understanding or seeing the code used.
They are blocks of code that do something specific.
67
A collection of thoroughly tested object code for various useful tasks.
Sorting
Digital collection
Library of code
Code library
68
Any materials assembled to clarify the program's design and implementation.
Iteration
External Library
Innovation
External Documentation
69
Which of the codes below will correctly swap the frog with the bear?
animal[1] = animal[2]animal[2] = animal[1]
animal[3] = animal[1]animal[1] = animal[3]
temp = animal[1]animal[1] = animal[2]animal[2] = temp
temp = animal[1]animal[1] = animal[3]animal[3] = temp
70
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.
71
Which of the following is NOT metadata for the picture?
The memory space taken up by the picture.
The location where the picture was taken.
The picture of the dog .
The time the picture was taken.
72
Reducing information and detail to focus on essential characteristics.
Iteration
Abstraction
Algorithm
Parameter
73
Compressing data in a way that throws some data away and makes it almost impossible to recover the original.
Redundant
Lossless
Lossy
Jpeg
74
Each pixel in a photo is three color values, what is the minimum number of bits need to store a single pixel.
512
8
256
24
75
Running a program on many data sets to be sure its performance falls within required limits
Regression Testing
Debugging
Coding
Benchmarking
76
A collection of programs that support software development.
External library
Integration testing
IDE
High-level programming language
77
Which of the following lists is
NOT
a candidate for a binary search?
Words from a poem about sunshine in the order they appear in the poem
A list of students in order of height
A list of words in a dictionary
A list of numbers from smallest to largest
78
A network of independent but connected devices all over the world.
World Wide Web
Protocol
Crowdsourcing
Internet
79
An extra piece of information that you pass to the function to customize it for a specific need.
Function
Algorithm
Iteration
Parameter
80
What should replace <missing condition> so that the program below display TRUE 10% of the time?
x < 1
x <= 9
x < 9
x <= 1
81
The basic building blocks of everything around us that relates to technology
Bit
Byte
Code
Ascii
82
What will the following program display?
The program is an infinite loop.
OXXOO
OXXOXXOXX
OOOXX
83
uses a Boolean condition (a TRUE/FALSE condition) to determine which of two parts of an algorithm is used.
Iteration
Selection
Documentation
Algorithm
84
What will the following algorithm display after running the code below?
2
4
1
3
85
a description of the behavior of a command, function, library, API, etc.
Documentation
Iteration
Abstraction
Selection
86
A question with only two possible answer choices
Binary Question
Binary Message
Decimal Question
Encryption
87
What are two aspects of efficiency?Responses
execution time
CPU time
length of code
memory usage
88
Which of the following is NOT an example of using citizen science as a possible solution?
Calculating PSAT scores for a school district.
Collecting recordings using ultrasonic microphones and sonograms of bats.
The behavior of fireflies during the summer months.
The behavior of the mysterious jellyfish on the beach or water.
89
code flows line by line, one after another, like a recipe
Selection
Iteration
Algorithm
Sequencing
90
What is the code going to display from this a ← 2b ← a + ac ← b + aa ← c + aDISPLAY(a)DISPLAY(b)DISPLAY(c
3 11 3
11 3 8
8 4 6
3 3 6
91
What will the program below display?
2 7
2 8
37
4 8
92
A step in the software development life cycle that evaluates a proposed project.
Program design phase
Modeling
Regression testing
Feasibility Study
93
What is displayed as a result of executing the following code segment?
Dog Waffle Noodles Moose Novack Benji
Moose Benji Novack Waffle Noodles
Dog Waffle Moose Noodles Novack Benji
Moose Benji Novack Waffle Noodles
94
what will be displayed from this? x ← 7y ← 8temp ← x + yx ← yy ← xtemp ← x + yy ← temp + 4DISPLAY (y)
20
15
0
16
95
a group of two or more computer systems linked together
Server
Client
Internet
Network
96
Find the error in the following low-level programming code.10111001 11010010 0000011 100001001 00001110 00000000 0000000
The 34th 0 should be a 1.
This is too difficult.
The 84th digit should be a 1.
The 17th 1 needs to be changed to a 0.
97
An algorithm repeats a sequence of statements.
Sequence
Event Driven Programming
Iteration
Selection
98
The findings from a project are typically presented using a graph as opposed to table or raw data.
Select two answers.
Graphs can show trends that might not be easily seen with raw data.
Graphs are able to show all of the detail necessary to understand data.
Graphs are easier to read and interpret at a glance.
Graphs can be easily placed into a slideshow, while tables cannot
99
the art of protecting information by transforming it into an unreadable format, called cipher text
Abstraction
Cryptography
Pseudocode
Steganography
100
What is displayed after running the algorithm below?
133
145
43
12