2018 MCQ Practice Test 5

1

Question: The code segment below is intended to swap the values of the variables first and second using a temporary variable, temp. Which of the following can be used to replace missing code so that the code segment works as intended?

14

Question: Which of the following best compares the values displayed by programs A and B?

41

Question: Which of the following could be used in the procedure to calculate a student’s total points earned in the course and store the result in the variable One word, adjusted Total ?

43

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

47

Question: In public key cryptography, the sender uses the recipient’s public key to encrypt a message. Which of the following is needed to decrypt the message?

59

Question: A media librarian at a movie studio is planning to save digital video files for archival purposes. The movie studio would like to be able to access full-quality videos if they are needed for future projects. Which of the following actions is LEAST likely to support the studio’s goal?

Additional Searches

What is citizen science?

A float is a floating-point number, which means it is a number that has a decimal place.