AP CSP Test 1 and Chapter 1 Test
In which decade was the first generation of computers developed?
1950s
println(8 + 12);
20
Who designed the first mechanical machine that included memory?
Babbage
Which of the following terms best describes circuit boards, keyboards, and disk drives?
Computer hardware
Which of the following is false about computers?
Computers can solve any problem.
In 1973, what did Robert Metcalfe and David Boggs invent that uses a cheap coaxial cable to connect computers into a network?
Ethernet
A computer is a device that can perform actions on data. The actions are specified by a program, which is a sequence of instructions. The name used to define the sequence of instructions is: a computer recipe.
False
A computer with a parallel architecture uses multiple transistors to solve a problem.
False
The most prestigious award given in computer science is called the Fields Medal.
False
The topic areas in the 1989 computer science curriculum model are the same as those in the 2001 model.
False
Which way does y pixel count value increase on any pixel image shown on any display?
From top to bottom
Which of the following is false about Alan Turing the inventor of the what would become the modern computer?
He went to school in Oxford, England.
Which of the following are ways that data is collected about you: I - Websites store data that tracks how you use the website II - Websites store cookies in your browser so that the next time you visit the website things like your profile login and recent activity are saved III - Some apps store geolocation information from your phone to track your location IV - Transaction data is stored by credit card companies when you purchase things with a credit card
I, II, III, and IV
Which of the following statements are true about the Internet? I - The Internet connects devices and networks all over the world II - There are no negative consequences of the Internet, it is purely positive III - The Internet helps people communicate IV - The Internet helps people collaborate to solve problems
I, III, and IV
Which of the following is a technique for isolating program pieces by eliminating the ability for one piece to access information in another?
Information hiding
What is the name of a solid piece of silicon that contains transistors, other components, and their connections?
Integrated circuit
Laura will go to her friend's house if she has less than two hours of homework or if it is the weekend. Otherwise, she will stay home and study. In which of the following cases will Laura stay home to study?
Laura has 2.5 hours of homework on Thursday
Which of the following are tiny doughnut-shaped devices that could each store one bit of information in second-generation computer memory?
Magnetic cores
What is data abstraction?
The process of simplifying complicated data into manageable chunks
var i = 1; var sum = 0; while(i < 5) { sum += i; } println(sum);
The program results in an infinite loop
Which of the following is an example of metadata about a webpage?
The title of the webpage
Ada Augusta, Countess of Lovelace, is credited with being the first programmer.
True
An abstraction is a mental model that removes or hides complex details.
True
An algorithm allows us to develop and express solutions to problems.
True
Computer software is a collection of programs that provides the instructions that a computer carries out.
True
Which of the following is an application package?
Word processor
What is the value of var3 after the following code executes? var1 = "cat" var2 = "dog" var3 = "bird" var1 = var2 var3 = var1 var2 = "fish"
dog
Which of the following successfully switches the values of the variables x and y? temp may be used as a temporary variable if necessary.
temp = x; x = y; y = temp;
Karel the Dog is instructed to move forward two spaces. Then, if Karel is standing on a ball, Karel will turn right and move forward two spaces. Otherwise, Karel will turn 180 degrees around and move forward two spaces. Given the starting point below, where will Karel end up?
upside down facing opposite direction
What will be the values in x, y, and z after the following lines of code execute? x = 7; y = 5; z = 0; z = x; x = y; y = z;
x = 5, y = 7, z = 7
If x represents the area of the number line colored yellow, which inequality accurately reflects the value of x?
x > 5