Verified Questions, Correct Answers, and Detailed Explanations
for Computer Science Students||Already Graded A+
Which choice is true about functions?
a. Functions must be defined before they can be called.
b. Functions are reusable abstractions.
c. Functions are used to organize code, make it more readable, and
remove repeated blocks of code.
d. All of the above.
All of the above
How many bits would you need if you wanted to have the ability to
count up to 100?
7
How many different numbers can 6 bits represent?
64
If 2 bits can represent 2^2 values, and 3 bits can represent 2^3 values,
and 4 bits can represent 2^4 values, then n bits can represent:
2^n values
What are the 4 processes every computer performs?
input, output, processing, storage
In the expression 12.45 + 3.6, the values to the right and left of the +
symbol are the ________.
operands
A(n) ________ is a name that represents a value stored in the
computer's memory.
variable
The ________ statement is used to create a decision structure.
pg. 1
,selection
What is Step 1 in a Selection Sort algorithm?
1. Set MIN to index 0
The two basic operations in sorting algorithms are:
Comparison Operation, Swap Operation
One con of using linear search is:
it does not scale well to large lists
Which of the following statements are true about routers and routing
on the Internet. Choose two answers.
1. Routers act independently and route packets as they see fit.
2. Routers are hierarchical and the "root" router is responsible for
communicating to sub-routers the best paths for them to route internet
traffic.
3. Protocols ensure that a single path between two computers is
established before sending packets over it.
4. A packet traveling between two computers on the Internet may be
rerouted many times along the way or even lost or "dropped".
1 and 4
What will the following code print to the console window when
executed:
print("Python is cool!")
Python is cool!
In Python the ________ symbol is used as the equality operator.
"=="
A Boolean variable can reference one of two values which are:
True or False.
pg. 2
,When applying the .3f formatting specifier to the number 76.15854,
the result is ________.
76.159
What are the 4 processes every computer performs?
input, output, processing, storage
________ are notes of explanation that document lines or sections of
a program.
Comments
Which of the following is the correct if clause to determine whether
choice is anything other than 10?
if choice != 10:
Which of the following allows users to refer to Web sites using
names, such as example.com, rather than numbers, such as
93.184.216.34 ?
The domain name system (DNS)
A(n) ________ statement will execute one block of statements if its
condition is true or another block if its condition is false.
if-else
The % symbol is the remainder operator, also known as the ________
operator.
modulus
Which components in the list would be considered "input" devices?
keyboard, mouse, touch screen
After the execution of the following statement, the variable sold will
reference the numeric literal value as (n) ________ data type.sold =
256.752
float
pg. 3
, A(n) ________ loop usually occurs when the programmer does not
include code inside the loop that makes the test condition false.
infinite
What will be the output after the following code is executed?
(See image)Science, Computer
The ________ built-in function is used to read a number that has been
typed on the keyboard.
input()
The chart above shows the frequency of searches for the words
"pencil" and "pen" over a 5 year period. Which of the following is the
best interpretation of the chart above?
(See image)
At any point in time there are typically more people searching for the
word "pen" than "pencil"
Choose the question that CANNOT be answered using the graph
below:
What approximate percent % of dogs live fewer than 7 years.
Artificial Intelligence is a branch of computer science that allows
computers to make_________and __________
predictions, decisions
AI is an umbrella term to describe intelligence displayed by machines
and includes (choose two):
machine learning, natural language processing
You have used TextBlob to process an article, which results in a
subjectivity score of 0.78 and polarity score of -0.28. How would you
categorize the sentiment of the article?
Negative
pg. 4