answered to pass (verified)
What would be the final value of the variable third once the following program is
complete? - correct answer ✔✔48
Consider the block of code below:
What would be the most appropriate substitute for the [missing Boolean
Operator] if the intention is to display ["True"] for only values of [x] between, but
not equal to values of [0] and [10]? - correct answer ✔✔AND
Which of the following CollegeBoard AP Computer Science Principles Pseudocode
commands is used to record something typed by a user of the program so that it
can be used in the program? - correct answer ✔✔INPUT ( )
Given the following code segment, what would be displayed if [age] were
initialized with a value of [18]? - correct answer ✔✔group 2
The volume of a rectangular prism is calculated by multiplying its length (l), width
(w) and height (h). What could be substituted into the section of the code below
marked [< missing code >] that would accurately calculate the volume based on
the user input of l, w and h? - correct answer ✔✔[ l*w*h ]
Moore's Law describes the rate at which the number of transistors on a single chip
doubles over time. Which of the following assumptions CANNOT be inferred as a
, direct consequence of this rate of doubling? - correct answer ✔✔Five years from
now, web pages will require less memory (RAM) than today's web pages.
Consider the following code segment that allows a customer to request their
preferred beverage and size of beverage (ounces).
What is displayed if the user enters "16" and then "coffee" when the program
runs? - correct answer ✔✔[ Short Coffee ]
Consider the following code segment:
If the variables onTime and absent both have the value false, what is displayed as
a result of running the code segment? - correct answer ✔✔Better late than never.
A large office building has an elevator that carries occupants between any of the
building's 10 floors. The basement is referred to as "Level 0" while the topmost
floor is "Level 9." The software for the elevator uses a variable, called level, to
track the floor number of the elevator's current position. When a person presses a
button requesting the elevator to rise to a higher floor, the following is invoked:
What is displayed if the elevator is currently on the 7th floor (level = 7) and the
person on the elevator presses a button labeled "up 3 floors" which causes the
variable floors to be set to 3. What will be displayed when the code above runs? -
correct answer ✔✔Level 8 Level 9 Cannot go up. Level 9
A particular problem is currently not able to be practically solved by using an
algorithm. Which of the following statements about the problem could possibly
be true?
No algorithm has yet been developed which would solve this problem, but it is
possible one may be developed in the future.