Questions I Struggled With
#3: Which of the following would be the best use of citizen science?
A. An experiment that requires all participants to be working in the same laboratory B. An experiment that requires expensive equipment to conduct C. An experiment that requires data measurements to be taken in many different locations D. An experiment that requires specialized knowledge and training to conduct
Correct Answer: C Explanation: Citizen science is the collection of data relating to the general public. Option C is the only option collecting and measuring data from the general public.
#5: The ticket prices at a movie theater are given below.
A table is shown with 2 columns and 4 rows. The first row of the table contains the column headers, from left to right, Type of Ticket and Price in dollars. The table is as follows: Regular, 12 Child ages 12 and below, 9 Senior ages 60 and above, 9 Below the table is the text: Additional 5 dollar fee for 3 D movies
A programmer is creating an algorithm to set the value of One word, ticket Price based on the information in the table. The programmer uses the integer variable age for the age of the moviegoer. The Boolean variable One word, is 3 D is true when the movie is 3-D and false otherwise.
Which of the following code segments correctly sets the value of One word, ticket Price ?
Correct Answer: D Answer D: ticket price <–12 if age<=12 or age>=60 ticket price <–9 else ticket price <–ticket price + 5
Question I Missed
Consider the following program.
count <- 1 sum <- 0 REPEAT 10 TIMES sum <- sum + count count <- count + 2 DISPLAY sum
Explanation: The value of count starts at 1 and increases by twos, so it counts odd integers. The loop iterates 10 times, adding each intermediate value of count each time. Therefore, the program displays the sum of the odd integers starting at 1 and ending at 19.
Side Lesson on Copyright
copyright - the exclusive legal right to print, publish, perform, film, or record literary, artistic, or musical material, and to authorize others to do the same
Creative Commons
The Creative Commons license helps content creators explain what other people can do with their work. The Creative Commons license has different parts that you choose from to say exactly what is and is not allowed.
BY - Attribution: Others who use this work must give credit to the original author. NC - Non-Commercial: Others may not use this work for advertising or to make money. SA - Share-Alike: Users of this work must share any new versions under the exact same license. ND - No Derivative Works: Users may only use this work as is and may make no changes.