stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Hani,Rahaf Summative Test Project. Flashcards | StudBud
Explore
/
Hani,Rahaf Summative Test Project.
Hani,Rahaf Summative Test Project.
100 terms
·
StudBud Administration
·
5 plays
Imported from external platform
Flashcards
100 cards
F
Practice quiz
P
Host live
L
Questions
100
Answers
1
What is the binary equivalent to the decimal number of 78?
1110001
1001110
1100110
1001100
2
Which of the decimal values, when converted to binary (ignore leading zeros) have exactly 3 zeros in them? Select two
30
80
20
50
3
Which of the following illustrates an aspect of efficiency?
Execution time
Memory usage
All of these
Size of program
4
Which of the following statements is
NOT
correct:
Binary data is processed by physical layers of computing hardware
logic gates are modeled by Boolean functions.
Hardware is the lowest level of abstraction.
Logic gates are used to perform operations such as addition and subtraction
5
Pick the correct answer.
C
B
D
A
6
Which of the following is the most common data misconception?
Correlation indicates causation
Causation indicates correlation
Causation occurs without correlation
Correlation always involves a direct relationship
7
How many bits are in a byte?
3
8
4
32
8
How many times will this loop run?for i in range (1, 4):
1
3
2
4
9
Which of the following is NOT true about functions in programming?
Functions cannot make calls to other functions within the same program.
Functions help break a problem into logical chunks.
Functions help reduce the complexity of writing and maintaining programs.
Functions are reusable programming abstractions.
10
How would you create a new array of 5 integers?
new int[5] x;
int x = new int[5];
int[5] x;
int[] x = new int[5];
11
What will this code display?
21 30 40 50
10 20 30 40
21 40 30 50
21 40 30 40
12
What does it mean when we say the Internet is redundant?
If a path is down, packets can be routed a different way
If there is an error, a backup system is brought online to be used
Parts of it are unnecessary
It has a delay between the request and the response to the request
13
int nums[ ] ={2, 3, 5, 8, 9, 11};How would you access the fourth element in nums
nums[4]
nums(4)
nums(3)
nums[3]
14
What is a benefit of collaboration when writing code?
allows the work to be divided among independent programmers to create.
Collaboration makes it eastier to find errors
Collaboration makes it easier to document another person's code
15
What does the following code do?
myAge = int (myAge)
Converts the var (variable) myAge to a string
Converts the var (variable) myAge from a integer to a string
Converts the var (variable) myAge to if statement
Converts the var (variable) myAge to a integer
16
Which of the following is software intended to damage a computing system or to take partial control over it?
Decryption
Computing Innovation
Encryption
Malware
17
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.
All data traveling over the internet is in binary.
domain name system is challenged by the Digital Millennium Copyright Act
Redundancy is overseen by large companies that set the standards
18
What is the value of sum displayed after this algorithm is run?
Error
6
0
4
19
Different algorithms can be developed to solve the same problem.
True
False
20
What is the minimum number of binary digits needed to store the number 56?
2
8
1
6
21
Which of the following is NOT metadata for the picture?
The location where the picture was taken
The time the picture was taken
The memory space taken up by the picture
The picture of the dog
22
what would be displayed as a result of executing this algorithm?
0
15
10
23
If you request data from Server Alpha, which will happen if ISP X, Host 3, and Host 11 arent working
Host 1 will compensate for the outage and route the data accordingly
The Client will not receive any data due to the outage
ISP Y will receive packets indicating a failure to Host 3
24
What is the decimal equivalent of 11010011?
208
210
211
209
25
Which of the following statements are true about high-level programming languages? Select
two
answers.
high-level programming must be used to execute commands such as adding
A high-level programming language often uses natural language elements.
A high-level programming language allows for code to be re-used.
A high-level programming language does not ensure program reliability.
26
How many bits are in an IPV6 address?
256
128
32
64
27
What must you consider when determining the efficiency of an algorithm? Select two choices.
number of characters used to write the program
The length of time required to run the program
The language in which the program is written.
The amount of resources, such as storage, required
28
What is the maximum number of searches required if using a linear search on list containing 2,000 numbers?
11
1,000
2,000
0
29
What will the executed code display?Responses
All odd numbers between 3 and 12
All even numbers between 3 and 12
all odd numbers between 1 and 12
All even numbers between 1 and 12
30
Which of the following is true about data compression?
Lossy compression cannot be used when sending pictures.
Lossless data compression is the best compression under all conditions.
Data compression can be used for pictures and video only.
can be used to reduce the size of a file for storage or transmission.
31
How many different numbers can 1 byte hold?
128
255
256
8
32
What will be the result of the displayed program?
9 5 7
6 14
7 5 9
14 6
33
What would be displayed after the following code is run?
4
-4
14
2
34
Determine what is printed by the following code.
9 1 6
2 1 5
10 4 6
35
What will be displayed as a result of this code?
The result is: 31
The result is: 10
The result is: + expression
The result is 80
36
True or False: The blocks don't need to be joined, as long as they are on the script area, they will run
False
True
37
what value when entered for Y will generate a mathematical error and prevent our flowchart from being executed?
1
3
0
None of these
38
Which is true about a linear search?
Works sometimes on large data sets.
Should not be used to sort complicated data sets.
Will search any data set.
Does not work on unsorted data sets.
39
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
40
We can convert a number from decimal to octal (base 8) by repeatedly subtracting the largest possible powers of what?
10
8
9
7
41
What is NOT true of arrays?
A given array can hold both Strings and integers at the same time.
A given array can hold Strings and integers, but not both at the same time.
A given array can hold many integers.
A given array can hold many Strings.
42
Why does program code have to be run through a compiler?Responses
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.
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.
43
What is displayed as a result of running the program?
Yankee
Foxtrot
Hotel
Novemeber
44
If you wanted to check to see if two numerical values were equal, which operator would you use?
equals
=
!=
==
45
Which best describes the role of TCP?
Setting rules for a numerical label assigned to a device to the internet
common protocol for encrypting/decrypting data transferring on the internet
The set of rules for the path packets taken on the fault-tolerant internet
The foundation of data communication for the World Wide Web
46
If you wanted to set a variable equal to some value, which operator would you use?
=
equals
==
=!
47
Which of the following is the best source for finding peer-reviewed data and information?
Online scholarly database
Standard Internet search, such as Google or Yahoo
Local library
Personal contacts with professionals in the field
48
How is the bandwidth of a network measured?
Frequency of waves. Higher frequency means higher bandwidth.
Bitrate. Higher bitrate means higher bandwidth.
Voltage. Higher voltage means higher bandwidth.
Light. More light means higher bandwidth.
49
All devices that communicate on the internet are directly connected.
True
False
50
What will be displayed?
22
6
36
1 3 5
51
Which of the following can be represented by a single binary digit?
The direction of travel for an elevator
A darkness setting on a toaster
The temperature setting of a thermostat
The speed limit on a major highway
52
What is the minimum number of lines that must be cut to isolate F completely?
0
6
2
8
53
To check if some integer x was evenly divisible by another integer y, which line of code would you use?
if ( x / y = 0)
if ( x / y == 0 )
if ( x % y = 0 )
if ( x % y == 0 )
54
Efficiency of algorithms is most often analyzed based on which of the following characteristics?
The number of lines of computer code needed to implement the algorithm.
The time and memory space necessary to run the algorithm.
How easy or difficult the algorithm is to understand.
The size of the output obtained after running the algorithm
55
To display the following on screenHello World!the following command should be used:
print"(Hello World!)"
print("Hello World" + !)
print(Hello World!)
print("Hello World!")
56
Which of the following is NOT an example of using citizen science as a possible solution?
Collecting recordings using ultrasonic microphones and sonograms
Calculating PSAT scores for a school district
behavior of the mysterious and wonderful jellyfish on the beach or water
The behavior of fireflies during the summer months
57
Which of the following decimal (base-10) values is equivalent to the binary (base-2) value 101001?
22
37
82
41
58
For the array:float stats[3];What is the range of the index?
0 to 3
1 to 3
0 to 2
0 to 4
59
Computing is closely tied to ____, computing innovation have far reaching ____.
abstraction, algorithm
selection, iteration
prototype, innovation
creativity, innovation
60
What is the output of the code above?
28
29
27
3
61
What shape will this code draw?
circle
triangle
rectangle
square
62
Which of the following best describes the behavior of the two programs?
Program I displays the correct sum, but Program II does not.
Neither Program I nor Program II displays the correct sum.
Both Program I and Program II display the correct sum.
Program II displays the correct sum, but Program I does not.
63
What are two aspects of efficiency?
memory usage and length of code
execution time and memory usage
wall clock time and CPU time
64
Which of the following best categorizes algorithm II?
B
C
D
A
65
Which of the following is NOT an example of metadata for an image file?
Size of the image
Copy of each image pixel
Date the image was create
Image resolution
66
What is the value of r as a result of executing the code segment?
20
30
10
40
67
What is the following program returning?
27
20
37
25
68
Select the correct answer
j > 6
j = 6
j > 7
j = 7
69
Which would be considered metadata of a survey administered to all SHHS students asking about lunch choices?
Which lunch option the most students preferred
The average 1-5 rating of each lunch choice
The time each survey response was collected
70
An Internet attack that causes a server to crash by making repeated requests to the same IP address:
DDoS (Distributed Denial of Service)
Cache Poisoning
Phishing
DNS (Domain Name System) Hijacking
71
Which of the following is a generally acceptable data cleaning procedure?
Ignoring a row of incomprehensible responses
Using fewer significant figures
Deleting rows of data that make analysis more challenging
Rounding all data points up to the nearest 10
72
In a flowchart, a typical decision symbol has what type of output?
None of these
boolean (true/false)
numerical
text
73
Which of the following is correct?
III only
II only
II and III only
I,II,III
74
Which of the following best describes high-level computing languages
They are not very ambiguous
They are extremely difficult for humans to read and understand
They are extremely difficult for humans to read and understand
They evolve naturally over time
75
What will the following program display?
OXXOO
OXXOXXOXX
OOOXX
76
What will the following code segment display?
3
5
6
11
77
Which of the following is correct?
00100123
00123
0123
78
Which of the following protocol standardization is NOT a function of the IETF (Internet Engineering Task Force)?
Internet Protocol
JavaScript Coding Protocol
Hypertext Transfer Protocol
Simple Mail Transfer Protocol
79
What is the output of the code above?
-11
-12
-11.50
-3
80
What should replace so the program below displays TRUE 60% of the time?
x MOD 2 = 1
x MOD 5 = 0
x MOD 5 = 5
x MOD 2 = 0
81
What would be displayed after the following code is run?
14
4
-4
2
82
How are algorithms and programs related?
They can both be run on a computer
Algorithms implement programs
Programs implement algorithms
83
What will this code display
Do you want flavor1 or flavor2 pie?
Do you want pie?
Do you want flavor2 or flavor1 pie?
Do you want chocolate or cherry pie?
84
Which of the following statements about abstraction is true?
Abstraction requires users to understand the low-level details of a system.
reduces information and detail to facilitate focus on relevant concepts.
Abstraction compresses a program file to reduce file size.
Abstraction increases the run-time complexity of a program.
85
If an algorithm was written in one the following, which would typically make reading the algorithm the easiest?
natural language
scratch
C
python
86
What will be the output of the following program?
9 5 7
7 5 9
14 6
14
87
The procedure isFound(list, item) will return TRUE if an item is found in,What will the following procedure display?
[4, 6, −4]
[1, 6, −4]
[ ]
1, 35, 6, 76, 4, 98, 5, 1, 8, 96, −4]
88
What is the code segment displaying?
34
88
0
29
89
Which of the following is correct?
20102010
20101020
2010510
2010
90
Which of the following questions cannot be easily answered using a binary set of answers?
Which is the best song new song from last year?
Do you prefer Mac or PC computers?
Would you like to go to the store?
When you write with a pen or pencil, which hand do you use?
91
What is the output of the code above?
14
7
28
3
92
Which of the following lines of code would cause an error with a robot?
NOT CAN_M0VE (forward)
CAN_MOVE (right)
CAN_MOVE (north)
NOT CAN_MOVE (left)
93
Determine what is printed by the following code.
8
-12
-16
16
94
Which of the following is a reason for the importance of variables in programming?
Variables assist in making code more readable.
allow you to store values calculated by the program and view them later
All of these
allow you to change a value used in multiple places in a program easily.
95
What does the algorithm display?
4
7
9
3
96
Sort by levels of abstraction, from lowest to highest I. logic gates II operating systems III programming language IV machi
I, III, IV, II
I, IV, II, III
I, II, III, IV
I, IV, III, II
97
Select the two best answers.
C
B
A
D
98
Which of the following best explains what happens when a new device is connected to the Internet?
A packet number is assigned to the device.
An Internet Protocol (IP) address is assigned to the device.
A device driver is assigned to the device.
99
Which of the following will cause an algorithm to fall into an infinite loop?
The algorithm uses more than one loop
The input operations are missing
The output operations are missing
The condition of the loop never becomes false
100
Which is true about a binary search?
Does not work on unsorted data sets.
Should not be used to sort complicated data sets.
Will search any data set.
Does not work well on small data sets.