2018 Practice Exam MCQ Corrections

Total score: 56/66

Q2:

Directions: The question or incomplete statement below is followed by four suggested answers or completions. Select the one that is best in each case.

A bank customer receives an e-mail from a sender claiming to be a bank employee. The e-mail asks the customer to provide personal information and to call a phone number if he or she has any questions. The customer suspects the e-mail might be a phishing attempt. Which of the following responses is most likely to be a privacy risk for the bank customer?

(A) Calling the bank at its official phone number to ask whether the request for personal information is legitimate

(B) Calling the phone number given in the e-mail and providing the personal information over the phone

(C) Checking that the domain name of the sender’s e-mail address is associated with the bank

(D) Conducting aWeb search to see if other people have received similar requests for personal information

My answer: A

Correct answer: C

The correct answer is C becuse calling the bank oficial phone number allows us to validate wether or not the request for personal information is legitimate. I got this question wrong because I read the answer choice wrong, I thought the answer choice was saying to call the phone number in the email.

Q9:

Directions: The question or incomplete statement below is followed by four suggested answers or completions. Select the one that is best in each case.

Which of the following best describes one of the benefits of using an iterative and incremental process of program development?

(A) It allows programmers to implement algorithmic solutions to otherwise unsolvable problems.

(B) It eliminates the need for programmers to test completed programs.

(C) It enables programmers to create programs that use the lowest-level abstractions available.

(D) It helps programmers identify errors as components are added to a working program.

My answer: C

Correct answer: D

The correct answer is D because incrementally adding code segments to correct, working programs can help programmers identify new errors that are introduced.

Q16:

Directions: The question or incomplete statement below is followed by four suggested answers or completions. Select the one that is best in each case.

A user reads reviews of a popular artist’s new album and then downloads the album from the Web site of a licensed online music seller. Which of the following is LEAST likely to be a consequence of this action?

(A) Advertisements for the artist’s other albums will be displayed when the user visits a different Web site.

(B) Album reviews from other people who live nearby will be displayed to the user.

(C) Similar artists will be recommended to the user based on the user’s download selection.

(D) The user will be in violation of the Digital Millennium Copyright Act (DMCA).

My answer: B

Correct answer: D

The answer is D because the least likely thing to happen when a user downloads a music album from a liscensed online seller is that the user will be in violation of the DMCA. This is because the music seller has official liscense to distribute the album.

Q21:

Directions: The question or incomplete statement below is followed by four suggested answers or completions. Select the one that is best in each case.

The following question uses a robot in a grid of squares. The robot is represented by a triangle, which is initially facing right.

Which of the following code segments will move the robot to the gray square?

(A) MoveXTimes(2); RightXTimes(1); MoveXTimes(3);

(B) MoveXTimes(2); RightXTimes(3); MoveXTimes(3);

(C) MoveXTimes(3); RightXTimes(1); MoveXTimes(3);

(D) MoveXTimes(3); RightXTimes(3); MoveXTimes(3);

My answer: A

Correct answer: B

The answer B is correct because the code segment moves the robot forward two squares, rotates it right three times so that the robot faces the top of the grid, and then moves the robot forward three squares to the gray square. I got this question wrong because of reading the choices wrong.

Q32:

Directions: The question or incomplete statement below is followed by four suggested answers or completions. Select the one that is best in each case.

Participants in a survey were asked how many hours per day they spend reading, how many hours per day they spend using a smartphone, and whether or not they would be interested in a smartphone application that lets users share book reviews.

The data from the survey are represented in the graph below. Each X represents a survey participant who said he or she was interested in the application, and each O represents a participant who said he or she was not interested.

Which of the following hypotheses is most consistent with the data in the graph?

(A) Participants who read more were generally more likely to say they are interested in the application.

(B) Participants who read more were generally less likely to say they are interested in the application.

(C) Participants who use a smartphone more were generally more likely to say they read more.

(D) Participants who use a smartphone more were generally less likely to say they read more.

My answer: B

Correct answer: A

The correct answer is A, because the Xs, indicating participants who are interested in the application, are clustered toward the top of the graph. This indicates that participants who read more were generally more likely to say they are interested in the application.

Q38:

Directions: The question or incomplete statement below is followed by four suggested answers or completions. Select the one that is best in each case.

A snack bar has a frequent customer program in which every 10th purchase is free. Customers are enrolled in the program when they make their first purchase. A programmer is writing a program to implement the frequent customer program. In one code segment, cost is set to 0 for every 10th purchase by a given customer. The programmer will use the procedure One word, Get Count, open parenthesis, one word, customer I D, close parenthesis , which returns the total number of purchases a customer has made since enrolling in the frequent customer program, including his or her first purchase.

Which of the following code segments will set cost to 0 for every 10th purchase a customer makes after enrolling in the frequent customer program?

(A)

(B)

(C)

(D)

My answer: A

Correct answer: C

The correct answer is C because the expression count, MOD, 10 equals 0 evaluates to true when count is a multiple of 1 0, so this code segment sets cost to 0 under the appropriate conditions.

Q43:

Directions: The question or incomplete statement below is followed by four suggested answers or completions. Select the one that is best in each case.

An online retailer uses an algorithm to sort a list of n items by price. The table below shows the approximate number of steps the algorithm takes to sort lists of different sizes.

Based on the values in the table, which of the following best characterizes the algorithm for very large values of n ?

(A) The algorithm runs in reasonable time.

(B) The algorithm runs, but not in reasonable time.

(C) The algorithm attempts to solve an undecidable problem.

(D) The algorithm attempts to find an approximate solution whenever it fails to find an exact solution.

My answer: B

Correct answer: A

The correct answer is A because the pattern in the table appears to indicate that there are n squared steps for a list containing n items. This number of steps is a polynomial and therefore the algorithm runs in reasonable time.

Q46:

Directions: The question or incomplete statement below is followed by four suggested answers or completions. Select the one that is best in each case.

A student wants to create an algorithm that can determine, given any program and program input, whether or not the program will go into an infinite loop for that input.

The problem the student is attempting to solve is considered an undecidable problem. Which of the following is true?

(A) It is possible to create an algorithm that will solve the problem for all programs and inputs, but the algorithm can only be implemented in a low-level programming language.

(B) It is possible to create an algorithm that will solve the problem for all programs and inputs, but the algorithm requires simultaneous execution on multiple CPUs.

(C) It is possible to create an algorithm that will solve the problem for all programs and inputs, but the algorithm will not run in reasonable time.

(D) It is not possible to create an algorithm that will solve the problem for all programs and inputs.

My answer: C

Correct answer: D

The correct answer is D because an undecidable problem is one in which no algorithm can be constructed that always leads to a correct yes-or-no answer.

Q58:

Directions: The question or incomplete statement below is followed by four suggested answers or completions. Select the one that is best in each case.

Which of the following are true statements about how the Internet enables crowdsourcing?

I. The Internet can provide crowdsourcing participants access to useful tools, information, and professional knowledge.

II. The speed and reach of the Internet can lower geographic barriers, allowing individuals from different locations to contribute to projects.

III. Using the Internet to distribute solutions across many users allows all computational problems to be solved in reasonable time, even for very large input sizes.

(A) I and II only

(B) I and III only

(C) II and III only

(D) I, II, and III

My answer: C

Correct answer: A

The correct answer is A because the Internet can provide tools, information, and knowledge to crowdsourcing participants and can lower geographic barriers to potential participants. However, there exist problems that cannot be solved in reasonable time, even with a distributed approach.