2018 MCQ online AP Classroom Reflection
Reflection on AP Classroom MCQ, missed questions with correct answers
2018 MCQ online AP Classroom Reflection
What I Need to Review | What I Know |
---|---|
2.2: Data Compression | 5.6: Safe Computing |
3.12: Calling Procedures | 5.1: Beneficial and Harmful Effects |
3.6: Conditionals | 4.1: The Internet |
3.9: Developing Algorithms | 3.8: Iteration |
Q5 Movie theater ticket prices based on age
Answer: C ; Incorrect Answer: D
Answer D is incorrect. The code segment “ticket price <- 12 ; IF age ≤ 12 OR age ≥ 60 ; ticketPrice <- 9 ; ELSE ticketPrice <- ticketPrice + 5” is incorrect because this code segment will set “ticketPrice” to 17 for all purchasers between the ages of 12 and 60, regardless of whether or not the movie is 3-D.
Answer C is correct. The code segment “ticket price <- 12 ; IF age ≤ 12 OR age ≥ 60 ; ticketPrice <- 9 ; IF is 3D ; ticketPrice <- ticketPrice + 5” initially sets ticketPrice to 12, and then changes the price to 9 only for children and seniors. The code segment then increases ticketPrice by 5 for 3-D movies.
Q14 Comparing loop algorithms
Answer: C ; Incorrect Answer: B
Answer B is incorrect because the programs will display different values.
Answer C is correct becuase the programs each display ten values, but each value displayed by program B is one greater than the corresponding value from the program A. Program A displays 1 2 3 4 5 6 7 8 9 10 and program B displays 2 3 4 5 6 7 8 9 10 11.
Q21 Comparing robot algorithms
Answer: B ; Incorrect Answer: A
Answer A is incorrect because “MoveXTimes 2 ; RightXTimes 1 ; MoveXTimes 3” moves the robot forawrd two squares, rotates it right one time so that the robot faces the bottom of the grid, and then moves the robot forward three squares.
Answer B is correct because “MoveXTimes 2 ; RightXTimes 3 ; MoveXTimes 3” moves the robot forward two squares, rotates it right three times so that the robot faces the top of the grid, and then moves the robot forward three squares to the gray square.
Q25 Shortening strings by replacing TH and IS
Answer: B ; Incorrect Answer: D
Answer D is incorrect because “NEITHER_HERE_NOR_THERE” can be shortened using byte pair encoding. For example, “NEIT* ER_* &_NOR_T* &” by replacing each instance of “HE” with “* “ and each instance of “RE” with “&”
Answer B is correct because it is not possible to use byte pair encoding in the string “LEVEL_UP” because no pair of characters appears in the string more than once.