Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What is the declaration of an array in Java?
Look at how we define the array’s type.
What index does the first element of an array have?
Think about how we start counting in programming.
What is an array?
Think about the purpose of arrays.
True or False: The length of an array can change during program execution.
Consider how arrays are defined.
You have an integer array with the numbers {5, 10, 20, 30, 2}. Write a program that finds and returns the second largest number.
Consider how you would eliminate the largest number to find the next largest.
Given a two-dimensional array representing a grid of values, write a method to calculate the sum of all values.
You'll need two loops: one for rows and another for columns.
6 more questions in this section. Enroll free to practise them all.
Enroll free