APCS EXAM REVEIW

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

convert the number 12 to binary a. 1100 b. 0110 c.0010 d.0111

A. 1100

Consider the following code segment. x ← 25 y ← 50 z ← 75 x ← y y ← z z ← x Which of the variables have the value 50 after executing the code segment? A x only B y only C x and z only D x, y, and z

B

Which of the following are benefits of procedural abstraction? Procedural abstraction prevents programmers from accidentally using the intellectual property of other programmers. B Procedural abstraction eliminates the need for programmers to document their code. C Procedural abstraction makes it easier for people to read computer programs. D Procedural abstraction provides an opportunity to give a name to a block of code that describes the purpose of the code block.

C, D

What is lossy compression?

Compression in which some of the information is permanently eliminated

A teacher is writing a code segment that will use variables to represent a student's name and whether or not the student is currently absent. Which of the following variables are most appropriate for the code segment? A A string variable named s and a Boolean variable named a B A string variable named s and a numeric variable named n C A string variable named studentName and a Boolean variable named isAbsent D A string variable named studentName and a numeric variable named numAbsences

D

Three different numbers need to be placed in order from least to greatest. For example, if the numbers are ordered 9, 16, 4, they should be reordered as 4, 9, 16. Which of the following algorithms can be used to place any three numbers in the correct order? A If the first number is greater than the last number, swap them. Then, if the first number is greater than the middle number, swap them. B If the first number is greater than the middle number, swap them. Then, if the middle number is greater than the last number, swap them. C If the first number is greater than the middle number, swap them. Then, if the middle number is greater than the last number, swap them. Then, if the first number is greater than the last number, swap them. D If the first number is greater than the middle number, swap them. Then, if the middle number is greater than the last number, swap them. Then, if the first number is greater than the middle number, swap them.

D

Which of the following best describes the ability of parallel computing solutions to improve efficiency? A Any problem that can be solved sequentially can be solved using a parallel solution in approximately half the time. B Any solution can be broken down into smaller and smaller parallel portions, making the improvement in efficiency theoretically limitless as long as there are enough processors available. C The efficiency of parallel computing solutions is rarely improved over the efficiency of sequential computing solutions. D The efficiency of a solution that can be broken down into parallel portions is still limited by a sequential portion.

D

what is a example of lossy compression?

JPEG images

what is a rouge access point

a wireless backdoor channel into the private network for outsiders.

what is redundancy

either strand of the double helix can specify the sequence of the other strand

what is a consequence of creative commons

no legal protection

What is crowdsourcing?

outsourcing a task to a large number of users

what do iteration statements allow us to do?

repeatedly executes a statement

what is science simulation

technique that reproduces actual events and processes under test conditions.

What is phishing?

when an e-mail request for confidential information that appears to originate from a bank or other trusted institution is received


Ensembles d'études connexes

Clin Med Exam 3 (1) Upper Respiratory Infections (URI)

View Set

AP Macroeconomics Remote Learning Week 5

View Set

Organizational Behavior Chapter 1 35-67

View Set

Algebraic and Verbal expressions

View Set

Chapter 40: Nursing Care of a Family when a Child has a Respiratory Disorder

View Set