100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

ap csp final Exam Questions and Answers Solved Correct

Rating
-
Sold
-
Pages
6
Grade
A+
Uploaded on
23-12-2022
Written in
2022/2023

#30. A student wrote the following code for a guessing game. While debugging the code, the student realizes that the loop never terminates. The student plans to insert the instruction win←true somewhere in the code. Where could win←true be inserted so that the code segment works as intended? - ANSWER-between line 9 and 10 #31. A text-editing application uses binary sequences to represent each of 200 different characters. What is the minimum number of bits needed to assign a unique bit sequence to each of the possible characters? - ANSWER-8 #32. The diagram below shows a circuit composed of three logic gates. Each gate takes two inputs and produces a single output. For which of the following input values will the circuit have an output of false? - ANSWER-A = true, B = false, C = false, D = false #33. A video-streaming service maintains a database of information about its customers and the videos they have watched. The program below analyzes the data in the database and compares the number of viewers of science fiction videos to the number of viewers of videos of other genres. It uses the procedure Analysis (category), which returns the number of unique users who viewed videos of a given category in the past year. The Analysis procedure takes approximately 1 hour to return a result, regardless of the number of videos of the given genre. All other operations happen nearly instantaneously. Which of the following best approximates the amount of time it takes the program to execute? - ANSWER-5 hours #34. The question below uses a robot in a grid of squares. The robot is represented as a triangle, which is initially in the bottom right square of the grid and facing toward the top of the grid. Which of the statements is true? - ANSWER-Both program I and program II correctly move the robot to the gray square. #35. A color is often represented by a 6-digit hexadecimal number that describes how the colors red, green, and blue are mixed to create the desired color. From left to right, the first two digits represent the amount of red, the second two digits represent the amount of green, and the last two digits represent the amount of blue. Which of the following hexadecimal numbers represents the color with the greatest amount of blue in it? - ANSWER-A100B0 #36. 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 × 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? - ANSWER-Participants who read more were generally more likely to say they are interested in the application. #37. A flowchart is a way to visually represent an algorithm. The flowchart below is used by an apartment rentalWeb site to set the variable include to true for apartments that meet certain criteria. Which of the following statements is equivalent to the algorithm in the flowchart? - ANSWER-include ← (floor > 10) OR (bedrooms = 3) #38. A researcher wrote a program to simulate the number of mice in an environment that contains predators. The program uses the following procedures. Based on the code, which of the following assumptions is made in the simulation? - ANSWER-The number of predators does not change from day to day. #39. The latency of a network connection is most appropriately measured with which of the following units? - ANSWER-milliseconds #40. A musician is creating a song using audio samples. Which of the following actions will minimize the risk of a copyright violation when creating sample-based music? - ANSWER-Using samples published with a no-rights-reserved Creative Commons license #41. A computer program performs the operation 2 ÷ 3 and represents the result as the value 0.. Which of the following best explains this result? - ANSWER-The precision of the result is limited due to the constraints of using a floating-point representation. #42. The two code segments below are each intended to display the average of the numbers in the list numList. Assume that numList contains more than one value. Which of the following best describes the two code segments? - ANSWER-Both code segments display the correct average, but code segment I requires more arithmetic operations than code segment II. #43. 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 GetCount (customerID), 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? - ANSWER-count ← GetCount (customerID) IF (count Mod 10 = 0) { cost ← 0 } #44. Which of the following explains a benefit of using open standards and protocols for Internet communication? - ANSWER-Open standards and protocols allow different manufacturers and developers to build hardware and software that can communicate with hardware and software on the rest of the network. #45. Q. The teacher has data representing the scores of thousands of students. For each student, the data contain the student name, the midterm exam score, the final exam score, and the result of the total points calculation. Which of the following could be determined from the data? I. The average total points earned per student II. The average increase in total points per student as a result of the score replacement policy III. The proportion of students who improved their total points as a result of the score replacement policy - ANSWER-I, II, and II #46. A programmer is writing a procedure to calculate a student's final grade in the course using the score replacement policy described. The student's exam scores are stored in the variables midtermExam and finalExam. The procedure Max (a, b) returns the larger of a and b. 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 adjustedTotal? - ANSWER-adjustedTotal ← Max (midtermExam, finalExam) #47. Internet protocol version 4 (IPv4) represents each IP address as a 32-bit binary number. Internet protocol version 6 (IPv6) represents each IP address as a 128-bit binary number. Which of the following best describes the result of using 128-bit addresses instead of 32-bit addresses? - ANSWER-2^96 times as many addresses are available. #48. 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 ? - ANSWER-The algorithm runs in reasonable time.

Show more Read less
Institution
Ap Csp
Module
Ap csp









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Ap csp
Module
Ap csp

Document information

Uploaded on
December 23, 2022
Number of pages
6
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
LUCKYSTAR2022 West Virginia University
View profile
Follow You need to be logged in order to follow users or courses
Sold
904
Member since
3 year
Number of followers
724
Documents
9621
Last sold
5 days ago
LUCKYSTAR2022

Hi there well come to luckystar2022. Here you will find guaranteed quality solution for Nursing and any other Accademic related notes, exams, study guides, cases and many more. 100% value for your time and money. GOOD LUCK

3.5

155 reviews

5
62
4
25
3
25
2
8
1
35

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions