CSP FINAL TEST QUESTIONS WITH ANSWERS
CSP FINAL TEST QUESTIONS WITH ANSWERS Which of the following is most likely to be a data privacy concern for StreamPal users? Users of the application may have the ability to determine information about the locations of users that are not on their contact list. - Answer-Users of the application may have the ability to determine information about the locations of users that are not on their contact list. Which of the following applications is most likely to benefit from the use of crowdsourcing? - Answer-An application that allows users to view descriptions and photographs of local landmarks The following procedure was developed to determine if a list contains a negative number. If the list contains a negative number it should return true, otherwise it should return false. An error was made in writing this function so that it does not work as intended. Which line of code would need to be fixed in order for the function to work as designed? 01 PROCEDURE checkNegative(list)02 {03 hasNegative - true04 FOR EACH number IN list05 {06 IF(number 0)07 {08 hasNegative - true09 } 10 }11 RETURN(hasNegative)12 } - Answer-line 03 Which of the following data is not obtained using data collection from the smartphone, but is necessary for GroceryGrabbr to create the total cost of groceries on the list? - Answer-cost of groceries Programs I and II below are each intended to calculate the sum of the integers from 1 to n. Assume that n is a positive integer (e.g., 1, 2, 3, ...). Which of the following best describes the behavior of the two programs? - Answer-Both program I and program II display the correct sum. Which of the following best explains how a certificate authority is used in protecting data? - Answer-A certificate authority verifies the authenticity of encryption keys used in secured communications. Which of the following data is necessary for Snappy to display "Happy Moments" for a particular city? - Answer-Photos tagged by location that are submitted by any user Which of the following is true regarding the use of public key encryption? - Answer- Public key encryption allow secure communications through an open medium, such as the Internet, in which there is a risk of someone intercepting the communication. This graph shows the efficiencies of two different algorithms that solve the same problem. Which of the following is most efficient? - Answer-The algorithms have different efficiencies depending on the input size Which code segment results in "true" being returned if a number is even? Replace "MISSING CONDITION" with the correct code segment. function isEven(num){ if(MISSING CONDITION){ return true; } else { return false; }} Question 4 options: - Answer-num % 0 == 2; is wrong What is the third step using Binary Search to look for the number 32 in this list: 1, 2, 3, 4, 10, 11, 16, 25, 32, 33, 45, 47, 51, 69, 75 - Answer-Compare the number 33 to the given number An Internet service provider (ISP) is considering an update to its servers that would save copies of the Web pages most frequently visited by each user. Which of the following is LEAST likely to occur as a result of the update? - Answer- Average response time for user requests might decrease. A certain computer has two identical processors that are able to run in parallel. The table below indicates the amount of time it takes each processor to execute each of two processes. Assume that neither process is dependent on the other. Process Execution Time on Either Processor P30 secondsQ45 seconds Which of the following best approximates the difference in execution time between running the two processes in parallel instead of running them one after the other on a single processor? - Answer-15 seconds ? wrong i think its 45 The company is considering purchasing additional computers to decrease the time the program runs even further. Which of the following best describes the impacts of running the parallel algorithm on an even larger number of computers - Answer-The algorithm will likely require less time to run though the improvements in efficiency will not be as significant as before.
Written for
- Institution
- CSP
- Course
- CSP
Document information
- Uploaded on
- April 15, 2024
- Number of pages
- 3
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
- csp
- csp final test
- csp final test questions
-
csp final test questions with answers
Also available in package deal