2021 Practice Exam Mcq
Question: An online gaming company is introducing several new initiatives to encourage respectful communication between players of online games. Which of the following best describes a solution that uses crowdsourcing?
Answer: The company allows individual players to endorse fellow players based on courteous interactions. Once a player receives enough endorsements, the player is given free rewards that can be used during gameplay.
Question: What is the average number of customer deliveries made by each truck on a particular day?
Answer:
Question: What is the average number of customer deliveries made by each truck on a particular day?
Answer: When the solution to the problem requires real-world data inputs that are continually measured at regular intervals.
Question: A sorted list of numbers contains 128 elements. Which of the following is closest to the maximum number of list elements that can be examined when performing a binary search for a value in the list?
Answer: 8
Question: A store uses binary numbers to assign a unique binary sequence to each item in its inventory. What is the minimum number of bits required for each binary sequence if the store has between 75 and 100 items in its inventory?
Answer: 7
Question: The following table shows the value of expression based on the values of input1 and input2.
Which of the following expressions are equivalent to the value of expression as shown in the table?
Answer: (NOT input1) OR (NOT input2)
NOT (input1 AND input2)
Question: The following spinner is used in a game. The region labeled “blue” represents 1/4 of the spinner. The regions labeled “orange” and “purple” are equal in size.
Which of the following code segments can be used to simulate the behavior of the spinner?
Select two answers.
Answer: If random 1,4 = 1
Display “blue
Else
if random 1,2 = 1
display “orange”
else
display “purple”
spin <== random 1,4
if spin = 1
display “blue”
else
spin <—- random 1,2
if spin =2
display “orange”
else
display “purple”
Question:
Answer: len ←← LENGTH(utensils)
temp ←← utensils[len]
REMOVE(utensils, len)
INSERT(utensils, 1, temp)
Question: Assume that the Boolean variable hot is assigned the value true and the Boolean variable humid is assigned the value false. Which of the following will display the value true ?
Select two answers.
Answer: if not humid
display (hot or humid)
if hot or humid
display hot
Question:
Answer: Individuals who sign up for a premium account