stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Patankar, Divya Summative Test Project Flashcards | StudBud
Explore
/
Patankar, Divya Summative Test Project
Patankar, Divya Summative Test Project
100 terms
·
StudBud Administration
Imported from external platform
Flashcards
100 cards
F
Practice quiz
P
Host live
L
Questions
100
Answers
1
What is the minimum number of searches for a binary search using an ordered list of 100 numbers?
0
100
1
8
2
What will the following code segment display?
10
9 10 7 4 1
1 4 7 10 9
Nothing will be displayed due to the error index out of bounds
3
Which of the following does NOT need to be considered when determining the credibility of a source?
Publisher’s reputation and credentials
Use of persuasive techniques within the source
Sponsorship of the article or publisher
Author’s reputation and credentials
4
In the context of a programming project, what does "debugging" refer to?
Adding new features to a program.
Writing the initial code for a program.
Identifying and fixing errors in a program
Testing a program with different inputs.
5
What could a single binary value represent?
Volume on a radio
Temperature in degrees Celsius
If a light is on or off
Time
6
What will the above program display?
3 8 0
Nothing due to an infinite loop
4 8 8
2 8 14
7
What is the maximum number of searches required if using a linear search on list containing 2,000 numbers?
1000
2000
1
11
8
According to the domain name system (DNS), which of the following is a subdomain of the domain example.com?
example.co.uk
example.org
about.example.com
example.com.org
9
How many lines need to be cut to completely isolate computer E from computer C?
0
8
5
3
10
Which command can replace <Missing Condition> to result in the last column of the table shown below?
b AND (a AND b)
a OR b
a AND (a AND b)
NOT (a AND b)
11
What should replace <missing condition> so that the program below display TRUE 10% of the time?
x <= 9
x < 9
x < 1
x <= 1
12
What role does a compiler have in processing a high-level language?
The compiler checks for updates and installs programs onto the computer.
The compiler speeds up the run time of a program.
computer cant understand high-level language intermediate program translate
The compiler ensures that the program has no runtime errors.
13
What line of code can replace <missing code> so the algorithm will work as intended?
list1 = 13
list1 ≠ 13
item = 13
item ≠ 13
14
Which of the following lists is
NOT
a candidate for a binary search?
A list of students in order of height
list of words from poem about sunshine in the order they appear in the poem
A list of numbers from smallest to largest
A list of words in a dictionary
15
Which of the following is true about data compression?
Data compression used to reduce size of a file for storage/ transmission.
Lossless data compression is the best compression under all conditions.
Data compression can be used for pictures and video only.
Lossy compression cannot be used when sending pictures.
16
findings from a project are presented using a graph as opposed to table/raw data. Why might this be?
Select two answers.
Graphs are easier to read and interpret at a glance.
Graphs easily placed into a slideshow or document, while tables cannot
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.
17
An algorithm has n number of steps. Which of the following would be considered a reasonable number of steps?
n!
4^n+8n^2
100n^4
3^n
18
the first element in the list is counted twice, resulting in an incorrect total value. What type of error?
No error. The program works as intended
Syntax error
Runtime error
Logical error
19
Which command can replace <Missing Condition> to result in the last column of the table shown below?
a OR b
b AND (a AND b)
a AND (a AND b)
NOT (a AND b)
20
Do packets always have to arrive in order?
Yes, because TCP is unable to reorder data
No, because it does not need to be in order in general
Yes, because they never get out of order
No, because TCP can always reorder the data.
21
What's the main benefit of using functions in programming?
They allow you to reuse the same code multiple times.
They are used to define new data types.
They make code longer and harder to read.
They make the computer run slower.
22
Which of the following is an example of an abstraction?
A list of numbers.
A computer program
A function
A variable
23
Data is broken down into packets. What protocol guides the rules about how data is subdivided before transmission?
TCP
DNS
FTP
HTTP
24
What does "iterative" mean when referring to a problem-solving process?
A process is done repeatedly, with each repetition building on previous one
A process that is very quick and easy.
A process that is only done once.
A process that involves creating new hardware.
25
What type of error did the below procedure suffer from?
Syntax error
Runtime error
No error. The program works as intended
Logical error
26
What will be the output of the following program?
14 6
14
7 5 9
9 5 7
27
What will the following code segment display?
3
6
Nothing will be displayed due to an error
11
28
Which of the following is NOT an example of using citizen science as a possible solution?
Calculating PSAT scores for a school district
behavior of the mysterious and wonderful jellyfish on the beach or water
Collecting recordings using ultrasonic microphones /sonograms of bats
The behavior of fireflies during the summer months
29
What will the following algorithm display after running the code below?
2
3
4
1
30
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
31
Which of the following statements about data storage is INCORRECT?
Storing data requires memory, whether it's RAM or disk.
Data is always stored in a secure and protected way.
Different types of data require different amounts of memory.
Data can be stored in various formats (e.g., text, numbers, images).
32
procedure isFound(list, item) will return TRUE if item is found in a list What will the following procedure display?
[1, 6, −4]
[4, 6, −4]
[ ]
[1, 35, 6, 76, 4, 98, 5, 1, 8, 96, −4]
33
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 must be translated into a language the computer understands.
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.
34
Which of the following best describes the purpose of a compiler?
To run a program on a computer
To translate a high-level programming language into a lower-level language
To store data on a hard drive
To connect a computer to the internet
35
Why are internet protocols used?
two answers.
Internet protocols are needed to slow the growth of the internet.
Internet protocols rules to ensure internet works/ transmits information
Internet protocols make the internet scalable and encourage growth.
Internet protocols are specific to the hardware attached to the internet.
36
The following program is intended to display the string 789. What type of error will the following procedure cause?
Logic error
No error
Syntax error
runtime error
37
What binary number is equal to 10001BIN+3DEC?
11110
111000
10100
10011
38
What command can replace <Missing condition> to get the results shown in the fourth column of the table?
NOT(a OR a)
a OR b a OR b
NOT b
NOT(a AND b)
39
What is displayed as a result of executing the following code segment?
Moose Benji Novack Waffle Noodles
Waffle Moose Noodles Novack Benji
Dog Waffle Moose Noodles Novack Benji
Dog Waffle Noodles Moose Novack Benji
40
Which of the following is a negative trade-off inherent in lossless compression?
The number and size of pixels will be less.
The image quality will be less and will result in a blurry image.
Some of the data will be lost and cannot be recovered.
The file can be difficult to email and can take up lots of memory storage.
41
Which of the following is a true statement about data transmitted over the internet?
(DNS) has been challenged by the Digital Millennium Copyright Act
Packets are received in the same order that they are sent.
Redundancy in internet design is overseen by companies that set standards
All data traveling over the internet is in binary.
42
Which of the following is NOT a data structure?
array
stack
list
function
43
What will the above program display?
Nothing due to an infinite loop
4 8 8
2 8 14
3 8 0
44
What should replace so the program below displays TRUE 60% of the time?
x MOD 2 = 0
x MOD 5 = 5
x MOD 5 = 0
x MOD 2 = 1
45
When should a heuristic algorithm be used?
When calculating the average score for the national SAT test
finding quickest way to drive from Orlando, Florida, to Cold Foot, Alaska
When finding the lifetime batting average of Mookie Wilson
determining files could've been virus exposed by checking file contained
46
Which of the following is a negative trade-off inherent in lossless compression?
The image quality will be less and will result in a blurry image.
file can be difficult to email/takes up memory storage
Some of the data will be lost and cannot be recovered.
The number and size of pixels will be less
47
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
48
Is a binary search always the fastest search when searching for a number in a sorted list?
A binary search is always faster with a sorted list.
No first pass of linear search has chance of finding correct number quickly
For a large list, linear searches are always faster.
For a large list, binary searches are always faster
49
Why is it more effective to put procedures in a program than to repeat code?
procedures takes less space than repeating code, makes program easy to read
Procedures make program hard to edit because every extraction saved on file
procedures are guaranteed to work if used once and works
Procedures simplify editing by requiring only one edit to the abstraction
50
Why is it important to find an efficient solution to a problem?
An efficient solution can make it easier to analyze larger data sets.
An efficient solution makes it harder to copy an algorithm.
An efficient solution can always be solved in a reasonable amount of time.
efficient solution uses more computer resources, ensures correct results.
51
Which of the following is the best way to describe the relationship between the Internet and the World Wide Web?
Internet is a network of devices/ World Wide Web is a network of websites
They are the same thing
The World Wide Web is a physical network, and the Internet is a digital one
World Wide Web uses the Internet to transmit data
52
Which of the following security measurements can help prevent unauthorized access to a computer system?
strong passwords
firewalls
all of the above
antivirus software
53
Which of the following is a common way to represent information in computers?
Using colors and images.
Using sound waves.
Using written words
Using binary code (0s and 1s).
54
In the following flowchart, what is the value of RESULT?
True when either A or B are true
Always false
true when both A and B are true
Always true
55
What is the code segment displaying?
68
34
17
0
56
Which of the following is a common data structure used to store and retrieve data efficiently?
a stack
all of the above
a hash
a queue
57
What will the program above display?
2 7
3 7
4 8
2 8
58
A simulation for a color chooser should result in 25% BLUE. Which of the following could replace <missing condition>?
RANDOM(5, 8) > 7
RANDOM(1, 4) < 2
RANDOM(1, 2) > 1
RANDOM(250, 1000) < 251
59
What does the algorithm display?
3
5
7
4
60
What is displayed after running the algorithm below?
133
145
12
43
61
What will the following code segment display?
6
Nothing will be displayed due to an error
3
11
62
Which of the following best describes the purpose of a for loop?
To store a value in a variable.
To call a function.
To execute a block of code repeatedly a fixed number of times.
To make a decision based on a condition.
63
Which of the following best approximates the minimum possible time to run all three processes in series?
9 seconds
15 seconds
4 seconds
28 seconds
64
What is the min number of bits you need to encode 26 letters of the alphabet plus a space - a total of 27 characters?
5 bits
6 bits
3 bits
2 bits
65
Which of the following actions is most likely to contribute to closing the digital divide?
eliminating computer literacy programs
reducing the number of public libraries
increasing the price of computers
providing free internet access in underserved areas
66
Which of the following is a cause of the digital divide?
Lack of knowledge on how to use technology
All of the above
Lack of access to technology due to location
Lack of access to the technology due to affordability
67
Which of the following lists is
NOT
a candidate for a binary search?
A list of students in order of height
A list of words in a dictionary
list of words from poem about sunshine in the order they appear in the poem
A list of numbers from smallest to largest
68
What should replace <missing condition> so that the program below display TRUE 10% of the time?
x <= 9
x < 9
x < 1
x <= 1
69
What will the following code segment display?
6
3
11
Nothing will be displayed due to an error
70
Which of the following can be represented by a single binary digit?
Time
Date
Light on / light off
Geographic location
71
Which of the following can be represented by a single binary digit?
Geographic location
Light on / light off
Date
Time
72
What does the following algorithm display?
It always displays “True.”
It always displays “False.”
When B is false, the algorithm displays “False.”
When A is false, the algorithm displays “False.”
73
What will the following program display?
The program is an infinite loop.
OOOXX
OXXOXXOXX
OXXOO
74
What is the value of sum displayed after this algorithm is run?
6
0
4
error
75
An algorithm has n number of steps. Which of the following would be considered a reasonable number of steps?
4^n+8n^2
3^n
100n^4
n!
76
What is the purpose of a "loop" in programming?
To repeatedly execute a block of code
To define a new data type
To create a new program file
To store data in memory
77
When program run, the first element in list is counted twice, resulting in an incorrect total value. What type of error?
Logical error
Runtime error
Syntax error
No error. The program works as intended.
78
What is displayed because of executing the code segment?
3 9
1 3 5 7 9
1 5 7
9
79
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]
80
Which of the following is NOT metadata for the picture?
The location where the picture was taken
The memory space taken up by the picture
The picture of the dog
The time the picture was taken
81
What is the minimum number of lines that must be cut to isolate F completely?
8
4
6
0
82
What should replace <missing condition> so that the program below displays TRUE 60% of the time?
x>=6
x>=9
x>10
x<6
83
What is displayed after running the algorithm below?
43
133
12
135
84
What does the following algorithm display?
When B is false, the algorithm displays “False.”
When A is false, the algorithm displays “False.”
It always displays “False.”
It always displays “True.”
85
What is the minimum number of binary digits needed to store the number 56?
6
3
5
1
86
What will the following code segment display?
10
22
1
30
87
What will the following algorithm display after running the code below?
1
2
4
3
88
What is the 4-bit number for the decimal number ten (10)?
1010
0101
0010
0110
89
What is displayed as a result of executing the code segment?
Dot Cat Fish
Dog Cat Fish Golden Bandicoot
Golden Bandicoot Cat Fish
Dog Golden Bandicoot Cat Fish
90
Which of the following can be represented by a single binary number?
two answers
What is the speed of a puppy chasing a squirrel?
Is your puppy named “Waffles”?
Do you have a puppy?
What position of object in grid of squares representing position a 2D array
91
When sending a pic to your friend’s phone using a mobile application, what is true about the packets of information sent
Packets are received in the order that they are sent.
packets sent in multiple paths, and can be received out of order
All of the above
Packets are sent by the quickest path possible in the correct order.
92
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
93
Which of the following is
LEAST
likely to be included with the game?
Location of high-crime areas that should be avoided
What protocols the mobile device uses to connect to the internet
Information about what types of mobile devices can be used
location of highly trafficked roads and bridges
94
What replaces <missing code> to make the program return True when the first element of the array = last element
( list1[1] = list1[LENGTH(list1)] )
( list1 = list1 )
( list1[0] = list1[1] )
( list1[0] = list1[LENGTH(list1) – 1] )
95
Which best describes the role of TCP?
The set of rules for the path packets taken on the fault-tolerant internet
A common protocol for encrypting/decrypting data transferring via internet
Setting rules for numerical label to each device connected via internet
The foundation of data communication for the World Wide Web
96
What is the following program returning?
25
37
27
20
97
Convert 88DEC to a binary number.
1010101
1000001
1111000
1011000
98
Which of the following protocols is used to transfer files over the internet?
UDP
HTTP
SMTP
TCP
99
What is the best term for "data about the data"
metadata
superdata
predata
megadata
100
What type of data structure would be best suited for storing the names of students in a class?
A hash table
a stack
A queue
An array