|
27 | 27 | { |
28 | 28 | "query": "What is testing?", |
29 | 29 | "response": "Testing is the process of evaluating a program for bugs. It cannot be used to determine correctness of a program. It is used in conjuction with debugging to resolve bugs.", |
| 30 | + "resource": "https://therenegadecoder.com/code/junit-testing-in-java/", |
30 | 31 | "credit": ["Jeremy Grifski"], |
31 | 32 | "tags": ["Exam 2"] |
32 | 33 | }, |
|
52 | 53 | { |
53 | 54 | "query": "What is unit testing?", |
54 | 55 | "response": "Unit testing is a specific form of program testing where the focus is on a small unit of the program, usually a single method. A common unit testing framework in Java is JUnit.", |
| 56 | + "resource": "https://therenegadecoder.com/code/junit-testing-in-java/", |
55 | 57 | "credit": ["Jeremy Grifski"], |
56 | 58 | "tags": ["Exam 2"] |
57 | 59 | }, |
|
63 | 65 | { |
64 | 66 | "query": "What is confidence building?", |
65 | 67 | "response": "Confidence building is an approach to reasoning about a recursive algorithm. Confidence building begins by testing the recursive algorithm with the smallest problem. It then tests the recursive algorithm with the next smallest problem, and so on. By subbing in correct answers to smaller problems, we can build confidence in the recursive algorithm.", |
| 68 | + "resource": "https://therenegadecoder.com/code/5-tips-for-making-sense-of-recursion/", |
66 | 69 | "credit": ["Jeremy Grifski"], |
67 | 70 | "tags": ["Exam 2"] |
68 | 71 | }, |
|
72 | 75 | "credit": ["Jeremy Grifski"], |
73 | 76 | "tags": ["Exam 2"] |
74 | 77 | }, |
| 78 | + { |
| 79 | + "query": "What is the static type of a variable?", |
| 80 | + "response": "Sometimes called the declared type or the compile-time type, the static type is the type of a variable that the compiler uses to perform type checking. The static type is often called the declared type because it is the type of the variable when it is declared.", |
| 81 | + "credit": ["Jeremy Grifski"], |
| 82 | + "tags": ["Exam 2"] |
| 83 | + }, |
75 | 84 | { |
76 | 85 | "query": "What is method overriding?", |
77 | 86 | "response": "Method overriding occurs when a method from a parent class is reimplemented in the child class. An overridden method can appear in multiple classes, each with the same name and parameters.", |
|
81 | 90 | { |
82 | 91 | "query": "What is method overloading?", |
83 | 92 | "response": "Method overloading occurs when multiple methods with the same name have different parameters.", |
| 93 | + "resource": "https://therenegadecoder.com/code/explain-like-im-five-method-overloading/", |
84 | 94 | "credit": ["Jeremy Grifski"], |
85 | 95 | "tags": ["Exam 2"] |
86 | 96 | }, |
|
111 | 121 | { |
112 | 122 | "query": "What is a parameter mode?", |
113 | 123 | "response": "A parameter mode is a way to specify what will happen to a parameter when the method is called. In our course, there are four main parameter modes: restores, clears, updates, and replaces.", |
| 124 | + "resource": "https://therenegadecoder.com/code/improve-code-readability-by-using-parameter-modes/", |
114 | 125 | "credit": ["Jeremy Grifski"], |
115 | 126 | "tags": ["Exam 2"] |
116 | 127 | }, |
117 | 128 | { |
118 | 129 | "query": "What is restores mode?", |
119 | 130 | "response": "Restores mode is the default parameter mode. If a parameter is in restores mode, the method promises that the parameter will not be modified from the perspective of the client. It is okay for a method to modify the parameter, but they must always restore it before the method returns.", |
| 131 | + "resource": "https://therenegadecoder.com/code/improve-code-readability-by-using-parameter-modes/", |
120 | 132 | "credit": ["Jeremy Grifski"], |
121 | 133 | "tags": ["Exam 2"] |
122 | 134 | }, |
|
167 | 179 | { |
168 | 180 | "query": "What is replaces mode?", |
169 | 181 | "response": "Replaces mode is a parameter mode that indicates that a parameter will change regardless of its initial value. In this course, we indicate replaces mode using the JavaDoc annotation @replaces.", |
| 182 | + "resource": "https://therenegadecoder.com/code/improve-code-readability-by-using-parameter-modes/", |
170 | 183 | "credit": ["Shaan Patel"], |
171 | 184 | "tags": ["Exam 2"] |
172 | 185 | }, |
173 | 186 | { |
174 | 187 | "query": "What is updates mode?", |
175 | 188 | "response": "Updates mode is a parameter mode which describes a parameter that is to be changed to some other value. Under this mode, the initial value of the parameter matters. In this course, we indicate updates mode using the JavaDoc annotation @updates.", |
| 189 | + "resource": "https://therenegadecoder.com/code/improve-code-readability-by-using-parameter-modes/", |
176 | 190 | "credit": ["Colin Russel"], |
177 | 191 | "tags": ["Exam 2"] |
178 | 192 | }, |
|
191 | 205 | { |
192 | 206 | "query": "What is clears mode?", |
193 | 207 | "response": "Clears mode is a parameter mode where the method resets the value of the parameter to a predetermined initial value. Clears mode is indicated through the @clears JavaDoc annotation.", |
| 208 | + "resource": "https://therenegadecoder.com/code/improve-code-readability-by-using-parameter-modes/", |
194 | 209 | "credit": ["Ethan Chilton"], |
195 | 210 | "tags": ["Exam 2"] |
196 | 211 | }, |
197 | 212 | { |
198 | 213 | "query": "What is the default parameter mode when none is specified in the method contract?", |
199 | 214 | "response": "When no parameter mode is specified in the method contract, the default parameter mode is Restores. This means that the variable should be restored to its original value/state after the method is called.", |
| 215 | + "resource": "https://therenegadecoder.com/code/improve-code-readability-by-using-parameter-modes/", |
200 | 216 | "credit": ["Dan Brace"], |
201 | 217 | "tags": ["Exam 2"] |
202 | 218 | }, |
|
255 | 271 | "tags": ["Exam 2"] |
256 | 272 | }, |
257 | 273 | { |
258 | | - "query": "What is object-oriented-programming?", |
| 274 | + "query": "What is object-oriented programming (OOP)?", |
259 | 275 | "response": "Object-oriented programming is programming with objects that contain both data and methods, which we can re-use. It allows us to implement and conceptualize real-world entities such as cars, animals, and beverages. We can use techniques such as polymorphism to use the same method to perform different tasks, hence the idea of 'many form'.", |
260 | 276 | "credit": ["Felix Ji"], |
261 | 277 | "tags": ["Exam 2"] |
|
365 | 381 | { |
366 | 382 | "query": "What are the four parameter modes?", |
367 | 383 | "response": "The four parameter modes are: Restores, Clears, Replaces, and Updates.", |
| 384 | + "resource": "https://therenegadecoder.com/code/improve-code-readability-by-using-parameter-modes/", |
368 | 385 | "credit": ["Darrel Jobin"], |
369 | 386 | "tags": ["Exam 2"] |
370 | 387 | }, |
371 | 388 | { |
372 | | - "query": "What are NaturalNumberKernal's three methods?", |
373 | | - "response": "NaturalNumberKernal's three methods are multiplyBy10, divideBy10, and isZero.", |
| 389 | + "query": "What are NaturalNumberKernel's three methods?", |
| 390 | + "response": "NaturalNumberKernel's three methods are multiplyBy10, divideBy10, and isZero.", |
374 | 391 | "credit": ["Alyssa Wiegman", "Catherine Wu"], |
375 | 392 | "tags": ["Exam 2"] |
376 | 393 | }, |
377 | 394 | { |
378 | 395 | "query": "What is a procedure?", |
379 | | - "response": "A procedure (statement) is a method that has side effects and does not have a return value typically (void return type).", |
| 396 | + "response": "A procedure is a method that has side effects and does not have a return value typically (void return type).", |
380 | 397 | "credit": ["Amit Bharathan"], |
381 | 398 | "tags": ["Exam 1"] |
382 | 399 | }, |
|
401 | 418 | { |
402 | 419 | "query": "Is restores mode a default parameter mode?", |
403 | 420 | "response": "Yes, restores mode is the default parameter mode.", |
| 421 | + "resource": "https://therenegadecoder.com/code/improve-code-readability-by-using-parameter-modes/", |
404 | 422 | "credit": ["Allen Zhang"], |
405 | 423 | "tags": ["Exam 2"] |
406 | 424 | }, |
|
0 commit comments