1D Arrays

How much do you know about 1D arrays?

Forced Order Answers have to be entered in order
Declaration of an array called nums that contains int elements:
Initialize nums to have 10 elements
How do you find how many elements are in nums?
Make the first element in nums equal to 5
Use an initializer list to make a new array of the first 5 positive even integers called evens.
What is each position in an array called?
System.out.println(nums[7]); returns
System.out.println(nums[10]); returns
nums = evens; creates a __ to evens
System.out.println(nums[0]); returns
Arrays length is said to be
For an array of objects, calling an index without an element in it will return the exception
Write an for each header to traverse through nums, using variable d
Arrays must store data of the ___ type
An array is stored as a __ reference to represent multiple objects
If I have an array called cage of Dog objects, how can I make cage[0] reference the object at cage[2]?
Quiz Playlist
More Info:
  • Type the answer into the box! Good luck!
Classic: Type in answers that appear in a list
Forced Order: Answers have to be entered in order
Last Updated: Feb 16, 2017

Quiz Scoreboard


May contain spoilers

More to Explore

You Might Also Like...


Today's Top Quizzes in Just For Fun

Browse Just For Fun

Today's Top Quizzes in much

Browse much

More By:

Quiz Plays Rating Category Featured Created
6 Just For Fun May 16, 2016

Go to Creator's Profile

Your Account Isn't Verified!

In order to create a playlist on Sporcle, you need to verify the email address you used during registration. Go to your Sporcle Settings to finish the process.

Report this User

Report this user for behavior that violates our Community Guidelines.