Advertisement
kdanglz88

Untitled

Nov 10th, 2018
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.29 KB | None | 0 0
  1. --- CHAPTER 1 ----
  2. Multiple Choice:
  3. "When Python evaluates an expression, it follows an order of __________ just like you do when you do math."
  4. A DEMANDS
  5. B. OPERATIONS
  6. C. INGREDIENTS
  7. CORRECT ANSWER = B
  8.  
  9.  
  10. True or False:
  11. "The Math Problem 2 + 2 is an exmaple of an Expression"
  12. CORRECT ANSWER = TRUE
  13.  
  14.  
  15. --- CHAPTER 2 ---
  16.  
  17. Multiple Choice:
  18. "A value between the parentheses in a function call is an _________."
  19. A ARGUEMENT
  20. B. FUNCTION
  21. C. INPUT
  22. CORRECT ANSWER = A
  23.  
  24.  
  25. True or False:
  26. "A comment, is an instruction that tells Python to run the code inside a function."
  27. CORRECT ANSWER = FALSE
  28.  
  29.  
  30. --- CHAPTER 3 ---
  31.  
  32. Multiple Choice:
  33. "While Python includes many built-in functions, some functions are written in separate programs called ______"
  34. A MODULES
  35. B. EXPRESSIONS
  36. C. APPLICATIONS
  37. CORRECT ANSWER = A
  38.  
  39.  
  40. True or False:
  41. "A function is like a mini-program inside your program."
  42. CORRECT ANSWER = TRUE
  43.  
  44.  
  45. --- CHAPTER 4 ---
  46.  
  47. Multiple Choice:
  48. "What is the second optional parameter for the PRINT() Function?"
  49. A END=
  50. B. START=
  51. C. BLANK=
  52. CORRECT ANSWER = B
  53.  
  54.  
  55. True or False:
  56. "Escape characters are used for characters that are difficult to type into the code with the keyboard.
  57. CORRECT ANSWER = TRUE
  58.  
  59.  
  60. --- CHAPTER 5 ---
  61.  
  62. Multiple Choice:
  63. "It often helps to write down everything you want your game or program to do before you start writing code. When you do this, you are _____________."
  64. A EVALUATING EXPRESSIONS
  65. B. EXECUTING THE CODE
  66. C. DESIGNING THE PROGRAM
  67. CORRECT ANSWER = C
  68.  
  69.  
  70. True or False:
  71. "If you use FOUR quotes at the start and end of a string, then it can go across several lines"
  72. CORRECT ANSWER = FALSE
  73.  
  74.  
  75. --- CHAPTER 6 ---
  76.  
  77. Multiple Choice:
  78. "You can set a _______ on a line when you want the debugger to take control once the execution reaches that line."
  79. A BREAKPOINT
  80. B. WAYPOINT
  81. C. STRING
  82. CORRECT ANSWER = A
  83.  
  84.  
  85. True or False:
  86. "THERE ARE THREE TYPES OF BUGS THAT CAN HAPPEN IN YUOR PROGRAM; SYNTAX, RUNTIME, AND SEMANTIC ERRORS.
  87. CORRECT ANSWER = TRUE
  88.  
  89.  
  90. --- CHAPTER 7 ---
  91.  
  92. Multiple Choice:
  93. "Keyborad characters printed on the screen to make a graphic/image is called:"
  94. A BITMOJI
  95. B. EMOJI
  96. C. ASCII ART
  97. CORRECT ANSWER = C
  98.  
  99.  
  100. True or False:
  101. "It is much easier to make changes and identify problems by thinking about how the program works after writing the code for it"
  102. CORRECT ANSWER = FALSE
  103.  
  104.  
  105. --- CHAPTER 8 ---
  106.  
  107. Multiple Choice:
  108. "_______ are variables meant to have values that never change from their first assignment statement"
  109. A CONSTANTS
  110. B. NON-CONSTANTS
  111. C. EXPRESSIONS
  112. CORRECT ANSWER = A
  113.  
  114.  
  115. True or False:
  116. "A method is a function attached to a value"
  117. CORRECT ANSWER = TRUE
  118.  
  119. ---CHAPTER 9 ---
  120.  
  121. True or False
  122.  
  123. "Dictionaries" use curly brackets instead of square brackets.
  124. CORRECT ANSWER = TRUE
  125.  
  126. Multiple Choice:
  127.  
  128. The index's in dictionaries are called
  129.  
  130. A. VALUES
  131. B. KEYS
  132. C. SHORTCUTS
  133.  
  134. ---CHAPTER 10----
  135.  
  136. True or False:
  137.  
  138. Artifical Intelligence is a computer program that can intelligently respond to the player's move.
  139. CORRECT ANSWER = TRUE
  140.  
  141. Multiple Choice
  142.  
  143. Tic Tac Toe is an example of a simple AI game because there are not as many possible ___________ available.
  144.  
  145. A: SPACES
  146. B: MOVES
  147. C: GAMES
  148.  
  149.  
  150. ---CHAPTER 11---
  151.  
  152. TRUE OR FALSE
  153.  
  154. String interpolation also known as string formatting is a coding shortcut.
  155.  
  156. A: TRUE
  157. B: FALSE
  158. CORRECT ANSWER = TRUE
  159.  
  160.  
  161. Multiple Choice
  162.  
  163. Augmented Assignment operators are :
  164.  
  165. A: Functions that contain a string
  166. B: Shortcuts that free you from having to retype the variable name
  167. C: Methods to arrange lists
  168.  
  169. CORRECT ANSWER B:
  170.  
  171.  
  172.  
  173. ---CHAPTER 12---
  174.  
  175. Cartesian coordinate systms are needed to describe where a certain position is located in a two dimensional area.
  176.  
  177. A: True
  178. B: False
  179.  
  180. CORRECT ANSWER A:
  181.  
  182. Multiple Choice
  183. The Random.shuffle function is used for
  184.  
  185. A: Changing the order of a list's items
  186. B: Giving the player multiple clues
  187. C: Determining the ending of the game
  188.  
  189. ---CHAPTER 13---
  190.  
  191. Data structures are list values that contain other lists and other complex variables.
  192.  
  193. A: TRUE
  194. B: FALSE
  195.  
  196. Correct answer A
  197.  
  198. To find the distance between two sets of coordinates use
  199.  
  200. A: integers
  201. B: negative numbers
  202. C: The Pythagorean theorem
  203.  
  204. Correct answer = C
  205.  
  206. ---Chapter 14---
  207.  
  208. Caeser Cipher encrypts each letter with a shifted letter
  209.  
  210. A; True
  211. B: False
  212.  
  213. Correct answer= A
  214.  
  215. The science of writing secret code is called
  216.  
  217. A; Cryptography
  218. B: Encryption
  219. C: Ciphertext
  220.  
  221. Correct Answer = A
  222.  
  223. ---Chapter 15---
  224.  
  225. The whoGoesFirst() functon randomly selects the starting player
  226.  
  227. A: True
  228. B: False
  229.  
  230. Correct Answer = A
  231.  
  232. Boolean function is written as
  233.  
  234. A: int()
  235. B: bool()
  236. C: str ()
  237.  
  238. Correct answer=B
  239.  
  240. ---Chapter 16---
  241.  
  242. You can determine a best strategy by running different simulations.
  243.  
  244. A: True
  245. B: False
  246.  
  247. Programming can be utilized to determine which_______________ works best in a computer vs computer game.
  248.  
  249. A: statistics
  250. B: game strategy
  251. C: simulation
  252.  
  253. ---Chapter 17---
  254.  
  255. Pygame programs can have shapes and colors in addition to text
  256.  
  257. A: True
  258. B: False
  259.  
  260. Correct answer = A
  261.  
  262. Pygame module helps developers create games with
  263.  
  264. A: Graphics and Music
  265. B: text
  266. C: different features
  267.  
  268. Correct answer =A
  269.  
  270. ---Chapter 18---
  271.  
  272. In an animation program the program constantly updates the data structures without waiting for player input.
  273.  
  274. A: True
  275. B: False
  276.  
  277. Correct answer is A
  278.  
  279. The game loop handles animating
  280.  
  281. A: pictures
  282. B: moving boxes
  283. C: pixels
  284.  
  285. Correct answer is B
  286.  
  287. ---Chapter 19---
  288.  
  289. Detecting collisions is so common in graphical games that pygame provides its own collision detection method named colliderect ()
  290.  
  291. A: True
  292. B: False
  293.  
  294. Correct answer = A
  295.  
  296. The Pygame module can generate events in response to user input from
  297.  
  298. A: Mouse
  299. B: Keyboard
  300. C: Both A and B
  301.  
  302. Correct answer C
  303.  
  304. ---Chapter 20---
  305.  
  306. A sprite is a two dimensional image ised as part of the graphics on a screen.
  307.  
  308. A: True
  309. B: False
  310.  
  311. Correct answer is A
  312.  
  313. The M key
  314.  
  315. A: Turns music on or off
  316. B: adds a sound file
  317. C: turns on the mixer module
  318.  
  319. Correct answer is A
  320.  
  321. ---Chapter 21---
  322.  
  323. Pygame.surface is one of the basic pygame data types.
  324.  
  325. A: True
  326. B: False
  327.  
  328. Correct answer is A
  329.  
  330.  
  331. Cheat codes can be implemented by
  332.  
  333. A: holding down the x and z key
  334. B: Typing in special code
  335. C: adding baddies to the game
  336.  
  337. Correct answer is A
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement