
Spring 2023 CSE121 Lesson 16: Exam Details and Traversal Patterns
Get ready for the Spring 2023 CSE121 lesson 16 with announcements, reminders, final exam details, and PCM array concepts. Focus on arrays and prepare for the upcoming exam. Learn about array traversal patterns and test your knowledge with interactive polls. Stay informed about important dates and activities in the course.
Download Presentation

Please find below an Image/Link to download the presentation.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.
You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.
E N D
Presentation Transcript
CSE 121 Lesson 16 Miya Natsuhara Spring 2023 Music: 121 23sp Lecture Vibes TAs: Jasmine Shananda Vidhi Larry Jacqueline Afifah Atharva Julia Anju Lydia Jonus Hugh Mia Archit Grace Kailye Joshua James Justin Aishah Claire Lydia Kai sli.do #cse121
Announcements, Reminders P3 will be released later today last assignment! Focus on arrays! No resubmissions due to the timing at the end of the quarter Gumball Visit on Monday, June 5 1:00pm-3:00pm Final Exam: Thursday, June 8 2:30pm-4:20pm Left-Handed Seating Request form posted on Ed and closes Mon 5/29 EOD Lesson 16 - Spring 2023 2
Final Exam Details Final Exam: Thursday, June 8 2:30pm-4:20pm In-person, on paper, with assigned seating No collaboration should be completed individually You may bring in one 8.5x11-inchinch sheet of notes, handwritten or typed, double-sided Focused on behavior (not style) You should make every attempt to write correct Java syntax Final Exam Review Session Tuesday, June 6 4:30pm-7:00pm in GUG220 Lesson 16 - Spring 2023 3
(PCM) Arrays Elements (must all be the same type) Indices (starting at 0) Must decide size when created arr.length to get arr's length Arrays.toString(arr) to get a nice String version Lesson 16 - Spring 2023 4
(PCM) Array Traversal Pattern for (int i = 0; i < arr.length; i++) { // do something with arr[i] } Lesson 16 - Spring 2023 5
Poll in with your answer! How can we get the last element of an array arr? A.arr[arr.length()] B.arr[length()] C.arr[arr.length] D.arr[arr.length() -1] E.arr[arr.length - 1] Lesson 16 - Spring 2023 6
Poll in with your answer! What would the array a store at the end of this arrayMystery method if {-20, 20, 26, 32, 50, 3} was passed in? A.{-20, 20, 26, 32, 50, 3} B.{-15, 25, 31, 37, 55, 8} C.{-15, 25, 31, 37, 50, 3} D.{-15, 20, 26, 37, 50, 3} Lesson 16 - Spring 2023 7