APCS Semester 1 Exam Review

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

What is recursion?

Calling a procedure from inside itself.

If Lypdette wants to implement abstraction in her program which is about creating a contacts list, which of the following could be a way to do this?

Create a datatype for contacts and use selectors to select specific information from contacts

Copyright protection is available for I. Literary work II. Musical work III. Artistic work Group of answer choices

I, II, and III

Which of the following is not an advantage of storing data using cloud computing?

Improved security and privacy over storing data on a personal computer.

Bryan is trying to clear his contact list without deleting any of his previous code in the scripting area. How can he clear the contact list in the simplest way possible?

Make a clear list block that sets the "contact list" variable to just an empty list.

Ada is on a public discord chat, and she wants to play Among Us only with APCSP Students (no strangers!!) so she sends an encrypted game code using her private key along with each of the APCSP students' public keys. The APCSP students use their private keys along with Ada's public key to decrypt and join the game. What method of encryption was used?

Public key encryption

Which of the following does lossless data compression NOT do?

Reduce the amount of information

Which of the following describes a situation that could raise ethical concerns in gathering and applying user data?

Search engines implementing user history to suggest specific search results to them.

Which choice is NOT an example of a company in the on-demand economy?

USP

Halima is making a multiple choice quiz to practice for the UIL Mathematics competition. For each question the player answers correctly (a), they earn 6 points. They lose 2 points for each question they answer incorrectly (b). She also adds 1 bonus point for every minute left before the 15-minute timer runs out (c). Which answer choice correctly shows how to calculate the player's final score?

( ( (6*a) - (2*b) ) + c)

PROCEDURE Mystery(numberList, targetNumber) { counter ← 0 FOR EACH number IN numberList { IF(number > targetNumber) { counter ← counter + 1 } } RETURN(counter) } What would be the result of running the following lines of code? myMathGrades ← [100, 80, 90, 80, 60, 100, 50, 100] Mystery(myMathGrades, 60)

6

What does procedural abstraction accomplish? Choose the best answer.

It allows the solution for a larger problem to be based on the solutions for a few smaller sub-problems.

Suzie wants to begin working from home. Which of the following is NOT a true benefit of her working remotely and telecommuting?

It increases connectivity in the workplace between Suzie and her colleagues

Which of the following is a benefit of using a list as a data abstraction in a program?

Lists often allow their size to be easily updated to hold as many data values as needed.

A program that runs 4 bits to represent whole numbers runs a program that adds the numbers 10 and 6. Although this is added the result of the number gives back 0. Why is this occurring?

Overflow error

Which of the following is an example of event-driven programming?

The space key is pressed, triggering a script that causes the sprite to move forward 50 steps.

Mary wants to create a game with a background that will make strobe lights that change her background from white to black or vice versa every second. Will the following achieve this? Forever Wait (1) secs Change (seconds) by 1 If ((seconds mod 2)=0) set background color to (white) else set background color to (black)

Yes, the script will set the background color to white on every even second and black on every odd.


Set pelajaran terkait

section 3 practice questions form fires of change test blank

View Set

Honan Ch.43 & 46 - Neurologic Function

View Set

Respiratory System Ch. 22 Review

View Set

Pain Management II (weekly quizzes and study guide)

View Set

Economics Chapter 34 Untimed Quiz

View Set

Vocabulary: DNA, Chromosome, DNA Replication, DNA Translation, DNA Transcription, Nucleotide, Sugar Phosphate group, Nitrogen Bases (cytosine, guanine, thymine, adenine, uracil), Hydrogen Bond, Polymerase Enzyme, Helicase Enzyme, Base Pair, RNA.

View Set