generated from nighthawkcoders/student_2025
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
5 missed questions, 5 main points of learning:
- Q9 is E not D because you need 2 independent random numbers for 2 dice, cannot just randomize 1-13 for 2 dice. This is a logic error on my part.
- Q12 is B not C. When x and y are both trie, (x && y) is true and (x||y) true but !(x||y) will be false so the expression is always false. Need to study more on logic gates, review the lesson from tri 1.
- Q16 is E not C. The code uses a for-each loop so row is not being stored, only column. Logic error on my part again.
- Q22 is A not D. r is used as row index and error will be thrown if code tries accessing a row that doesn't exist. Review the code segments more closely when they are answer choices and work it out on paper.
- Q27 is B not C. Code swaps smallest number with the new one at position j. Again need to review the code closer and work it out on paper.
Summary:
Review logic gates, I missed 2 of those
Need to use paper on more of the code segment problems, this caused 4 of my 5 missed problems because I tried doing the full logic of a loop in my head instead of making it easy by doing it on paper.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels