stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Alkutel.Khalid summative test project Flashcards | StudBud
Explore
/
Alkutel.Khalid summative test project
Alkutel.Khalid 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 will the following algorithm display after running the code below?
3
2
1
4
2
What will the above program display?
Responses
2 8 14
3 8 0
Nothing due to an infinite loop
4 8 8
3
.
Brute force algorithm
Optimization algorithm
Heuristic algorithm
Searching algorithm
4
Which of the following can be represented by a single binary number?
Select two answers
Do you have a puppy?
is your puppy named “Waffles”?
What is the speed of a puppy chasing a squirrel?
What the position of an object in grid squares representing the position
5
In what order will the numbers appear after running the algorithm below?
5, 6, 3, 3
5, 7, −6, 7
5, 6, −5, 6
5, 7, 4, 3.5
6
.
The 34th 0 should be a 1.
too difficult To determine errors would be considerably
The 17th 1 needs to be changed to a 0
The 84th digit should be a 1.
7
What would be a good use of constants when initializing variables at the beginning of a program?
I and II only
I and III only
II and III only
I, II, and III
8
by levels of abstraction, from lowest to highest:I. logic gatesII. operating systemsIII. programming languageIV.
I, III, IV, II
I, II, III, IV
I, IV, III, II
I, IV, II, III
9
Which of the following input data is needed by the upgraded game that was
NOT
needed by the original game?Responses
Event sensing; an event would be the user pushing a button or screen
Picture of the player
Age of the player
GPS location
10
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
All of the above
Lack of access to the technology due to affordability
11
which of the following is correct
I, IV, II, III
I, III, IV, II
I, Il, III, IV
I, IV, II, III
12
Which of the following is
NOT
metadata?
The geographic location where the picture was taken
The filename
The Red, Green, and Blue values of the top left pixel
The date the photo was taken
13
Why are internet protocols used?
Select two answers.
set of rules ensure the internet can work and transmit information across
Internet protocols are specific to the hardware attached to the internet
Internet protocols make the internet scalable and encourage growth.
Internet protocols are needed to slow the growth of the internet.
14
<missing code> order to make the following program return True when the first element the array is equal to the last
( list1[1] = list1[LENGTH(list1)] )
( list1 = list1 )
( list1[0] = list1[LENGTH(list1) – 1] )
( list1[0] = list1[1] )
15
Which of the following is
NOT
indicative of a phishing attack?
email asks the user call phone number on the back of credit card to verify
A professional organization that the user is a member of asks in an email
A virus pops up on your computer asking the user to call a phone number
An email with the user’s personal information
16
Which of the following test cases will NOT find the maximum number in the list?
list1[−23, −67, −3, −7]
list1[0, 0, 0, 0]
list1[23, 67, 3]
list1[4]
17
.
Runtime error
No error. The program works as intended.
Syntax error
Logical error
18
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
19
Which of the following is true
A card dealer deals one card face-up to each of five players.
A card dealer deals a five-card hand to one player.
card dealer turns over one card returns it to the deck shuffles
card dealer give one card each to five players repeating a total five time
20
Which of the following statements are true about undecidable problems in computer science?
I, II, and III
I only
II and III
I and II
21
What command can replace <Missing condition> to get the results shown in the fourth column of the table?
NOT(a AND b)
NOT(a OR a)
NOT b
a OR b
22
What could a single binary value represent?
If a light is on or off
Volume on a radio
Time
Temperature in degrees Celsius
23
Which of the following is
LEAST
likely to be included with the game?
Information about what types of mobile devices can be used
Location of high-crime areas that should be avoided
Location of highly trafficked roads and bridges
What protocols the mobile device uses to connect to the internet
24
Which of the following is the
MOST
likely data privacy concern of the upgraded game?
Recording whether the player was speeding when driving to a location.
How many locations the player visited
The player’s score
How much time a person spent playing the game
25
What is displayed after running the algorithm below?
43
12
145
133
26
Which of the following best approximates the minimum possible time to run all five processes in parallel?
9 seconds
15 seconds
11 second
13 seconds
27
Which of the following lines of code would cause an error with a robot?Responses
NOT CAN_MOVE (left)
CAN_MOVE (right)
CAN_MOVE (north)
NOT CAN_M0VE (forward)
28
What is stored in arr[2] after int[] arr = {3, 5, 7, 9};?
7
9
3
5
29
What is displayed after the following algorithm is run?
50
32
100
132
30
Which of the following statements are true about high-level programming languages? Select
two
answers.
high-level programming language must be used to execute commands
A high-level programming language does not ensure program reliability.
high-level programming language often uses natural language elements.
A high-level programming language allows for code to be re-used.
31
What is an example of a way that a “smart grid” could assist with human capabilities?
distribute power in the most efficient manner possible, ensuring that power
The grid could control the temperature of an A/C
The grid could prevent blackouts altogether.
The grid could ensure that all computers on it are properly updated.
32
Which of the following protocol standardization is NOT a function of the IETF (Internet Engineering Task Force)?
Hypertext Transfer Protocol
JavaScript Coding Protocol
Simple Mail Transfer Protocol
Internet Protocol
33
For the following data structure, which search algorithm would work as intended to find the value 35?
Bubble sort
Linear search
Binary search
Insertion sort
34
Which of the following is not true
Antler size
Population size
Food supply
Prevalence of illness in herd
35
What are two aspects of efficiency?
memory usage and length of code
execution time and memory usage
wall clock time and CPU time
execution time and length of code
36
What role does a compiler have in processing a high-level language?
The compiler speeds up the run time of a program.
The compiler checks for updates and installs programs onto the computer.
The compiler ensures that the program has no runtime errors.
cannot directly understand highlevel languages intermediate program
37
.
Lossy transformation
Lossless transformation
Addition transformation
Frequency transformation
38
What is the result of 7 % 4?
0
2
3
1
39
A economist wants to understand changes in supply and demand affect the inflation rate of a country.
Simulations can be run only once, so they are guaranteed
A simulation would be able to account for every variable that would affect
Simulations have much of an effect on the real world as a actual experiment
simulation would be more cost effective,easier to create than an
40
.
Players play the game in their spare time.
Players are becoming more cultured by visiting artworks.
People are exercising
People are not watching where they are walking and are getting injured.
41
What is the minimum number of binary digits needed to store the number 56?
6
5
1
3
42
.
Runtime error
No error. The program works as intended
Syntax error
Logical error
43
Which of the following can be represented by a single binary digit?Responses
Geographic location
Light on / light off
Date
Time
44
How many lines need to be cut to completely isolate computer E from computer C?
6
0
8
3
45
.
item ≠ 13
list1 ≠ 13
item = 13
list1 = 13
46
The following program is intended to display the string 789. What type of error will the following procedure cause?
Logic error
Syntax error
No error
Runtime error
47
Which of the following is correct
All of the above
I, II, and IV only
I, II, III, and IV only
II, IV, and V only
48
W
hat 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.”
49
.
If(num / 3 = 0)DISPLAY(3)
If(novack = 3)DISPLAY(3)
if(num MOD 10 = 3)DISPLAY(num MOD 10)
if(num / 10 = 3)DISPLAY(3)
50
Which of the following is true about redundancy on the internet?
II and III only
I, II, and III
I and II only
I only
51
.
not have considered the human preference for ordering food
Wait time and sales are directly proportional; therefore
The simulation had considered all variables.
The simulation worked as intended.
52
What is the output of System.out.println(3 + 4 * 2);?
11
10
14
7
53
Why do computing innovations tend to lead to legal concerns?
Laws about the internet concerning copyrights have been passed
There is no way to hide your IP address on the internet, so laws are easily
Laws involved in these concerns were often created
Lawyers are unfamiliar with the laws governing computing innovations
54
which of the following is correct
people from various disciplines increases the complexity of the analysis
Effectively analyzing the large, complex datasets requires abilities
Scientists using large data sets are more effective in their research
costs associated with medical advancements are reduced due to large scale
55
When should a heuristic algorithm be used?
determining which files could been exposed to a virus before actual
When finding the lifetime batting average of Mookie Wilson
When calculating the average score for the national SAT test
When finding the quickest way to drive from Orlando, Florida to alaska
56
What will the program segment display?
34
99
3
2
57
What will the following code segment display?
10
30
22
1
58
hat does System.out.println("hello".length()); print?
0
6
4
5
59
What should replace <missing condition> so that the program below display TRUE 10% of the time?
x <= 1
x < 1
x < 9
x <= 9
60
What is the minimum number of searches for a binary search using an ordered list of 100 numbers?
8
100
1
0
61
We can convert a number from decimal to octal (base 8) by repeatedly subtracting the largest possible powers of what?
8
9
7
2
62
A theme park wants to create a simulation to determine how long it should expect the wait time
Walking preference—denotes how far a patron is willing to walk in between
food preference—denotes the type of food that a patron prefers to eat
Ticket type—denotes whether the patron has a single-day pass,
Ride preference—denotes whether a patron prefers roller coasters
63
Which value does Math.abs(-10 + 4) return?
-10
-6
6
10
64
Which loop will execute exactly 5 times?
for(int i = 1; i <= 5; i++)
for(int i = 0; i < 5; i++)
for(int i = 1; i < 6; i++)
for(int i = 0; i <= 5; i++)
65
.
IF(number = true OR randomNumber = true)
IF(number = randomNumber)
IF(number = true AND randomNumber = drawing)
IF(number ≠ randomNumber)
66
What is the purpose of a digital certificate in secured communications?
A digital certificate ensures that the communication system
A digital certificate ensures that the communication system
digital certificate ensures that the website’s code has been created
digital certificate ensures server’s own security features
67
How many times does this loop run: for(int i = 10; i > 0; i -= 2)?
5
9
10
4
68
Consider the following code segment, which uses the variables x, y, and z. What will the following program display?
6 12 24
24 24 24
12 24 24
12 12 12
69
What is displayed as a result of executing the following code segment
Dog Waffle Moose Noodles Novack Benji
Dog Waffle Noodles Moose Novack Benji
Moose Benji Novack Waffle Noodles
Waffle Moose Noodles Novack Benji
70
What does if(x == 5 || y == 10) check?
x is 5 or y is 10
x is 5 and y is not 10
x is 5 and y is 10
x is 10 or y is 5
71
.
picture files were compressed using lossless compression so the file
The picture files were compressed using lossy compression
emailing the pictures, the file was broken down into packets
Every time you email a picture, some of the picture data will be lost
72
Why is it more effective to put procedures in a program than to repeat code?
Select two answers.
procedures takes up less space than repeating code, which makes the program
Procedures simplify editing by requiring one edit to the abstract
Procedures are guaranteed to work in every instance
Procedures make a program harder to edit
73
Which of the following does NOT need to be considered when determining the credibility of a source?
Publisher’s reputation and credentials
Author’s reputation and credentials
Sponsorship of the article or publisher
Use of persuasive techniques within the source
74
Which of the following data not provided directly by the user ortheir device but is necessary
GPS location of user
Speed traveling
Location of landmarks used in the game.
User name
75
Data traveling broken down into small chunks data called packets What protocol below guides
FTP
TCP
HTTP
DNS
76
What will y display?
x ← 7y ← 8temp ← x + yx ← yy ← xtemp ← x + yy ← temp + 4 DISPLAY (y)
16
0
20
15
77
Which of the following lists is
NOT
a candidate for a binary search
A list of numbers from smallest to largest
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 words in a dictionary
78
What is a major disadvantage of the internet’s model of trust?Responses
A trusted website cannot have encrypted communications,
A trusted website can still download malicious code even if it is blocked
trusted website can have a large amount of power over a computer
A trusted website has power over the computer’s ROM
79
which of the following is correct
I only
Both I & II
II only
Neither
80
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.
Program code must be translated into a language the computer understands.
It doesn’t, as the new program could be run directly from the code.
81
What does the following code print? System.out.println("2" + 3 + 4);
7
234
10
9
82
Which of the following is true about data compression?
Data compression can be used for pictures and video only.
Data compression can be used to reduce the size of a file
Lossy compression cannot be used when sending pictures.
Lossless data compression is the best compression under all conditions.
83
If a does not equal b, what error has occurred?
Hexadecimal conversion error
Overflow error
Roundoff error
a will equal b on all computers
84
Researchers have developed a simulation of packets traveling between computers in a network ly
Better understanding of how binary is used to represent data in packets
Better understanding of how access to the Internet affects developing
Better understanding of how defend against phishing attacks
Better understanding of how a failed router in a network affects packets
85
What is the length of the array new int[8]?
5
8
9
0
86
When sending a picture from your phone to your friend’s phone using a mobile application
Packets are received in the order that they are sent.
Packets are sent by the quickest path possible in the correct order.
All of the above.
Packets are sent in multiple paths and can be received out of order.
87
A simulation for a color chooser should result in 25% BLUE. Which of the following could replace <missing condition>
RANDOM(1, 4) < 2
RANDOM(1, 2) > 1
RANDOM(250, 1000) < 251
RANDOM(5, 8) > 7
88
.
Hello Karel
What is your name?HelloKarel
What is your name?Hello Karel
What is your name? Hello Karel
89
What is the maximum number of searches required if using a linear search on list containing 2,000 numbers?
11
1
2000
1000
90
Which of the following statements is
NOT
correct:
Logic gates are modeled by Boolean functions.
Binary data is processed by physical layers of computing hardware.
Hardware is the lowest level of abstraction.
Logic gates are used to perform operations such as addition and subtraction
91
What will the following code segment display?
11
3
6
Nothing will be displayed due to an error.
92
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 and decrypting data transferring
Setting the rules for a numerical label assigned to each device
The foundation of data communication for the World Wide Web
93
Which of the following are benefits to having information be easily accessible and changeable?
I and II only
I, II, and III
I only
II and III only
94
Which of the following best approximates the minimum possible time to run all three processes in series?
20 seconds
38 seconds
8 seconds
10 seconds
95
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.
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.
The number and size of pixels will be less.
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.
For a large list, binary searches are always faster.
A binary search is always faster with a sorted list.
No, the first pass of a linear search has a chance of finding the correct
97
.
Cryptography secures internet communication preventing third party from 0
secures internet communications ensuring that the files cannot be read
Cryptography does not allow data on a server to be edited by anyone
Cryptography is used to prevent publicly accessible files on a server0
98
Which command can replace <Missing Condition> to result in the last column of the table shown below?
a AND (a AND b)
NOT (a AND b)
b AND (a AND b)
a OR b
99
Which of the following is NOT an example of using citizen science as a possible solution?
The behavior of fireflies during the summer months
The behavior of the mysterious and wonderful jellyfish on the beach
Collecting recordings using ultrasonic microphones and sonograms
Calculating PSAT scores for a school district
100
Why is it important to find an efficient solution to a problem?
An efficient solution makes it harder to copy an algorithm.
An efficient solution uses more computer resources
An efficient solution can make it easier to analyze larger data sets.
An efficient solution can always be solved in a reasonable amount of time.