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