Question

1.arrayList[9] accesses the 10th object of an array of length 10 true false 2. Arrays are...

1.arrayList[9] accesses the 10th object of an array of length 10

true

false

2. Arrays are the only data structure that can be accessed with [ ]; for example: orderedData[0]

true

false

3. In a maximum of three steps: how do you swap the contents between two variables of the same type? Pick the absolute best answer

A temp = x; x = y; y = temp

B x = x + y; y = x - y; x = x + y

C x = x + y; y = x - y; x = x - y

4. Placing a [-1] makes the array access its data in reverse

true

false

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1.arrayList[9] accesses the 10th object of an array of length 10

true

since the array of zise n,the array indices starts from 0 to n-1

2. Arrays are the only data structure that can be accessed with [ ]; for example: orderedData[0]

true

we use this kind of notationn for array data structure

3. In a maximum of three steps: how do you swap the contents between two variables of the same type? Pick the absolute best answer

A temp = x; x = y; y = temp

Suppose we have two values x and y , and we need to swap them.So, first take a temporary variable temp. Store the value of x in temp.and then store the y value in x and finally the temp value in x. This will swap the contents of two varaibles

4. Placing a [-1] makes the array access its data in reverse

true

we can access the last element when we use a[-1]

Add a comment
Know the answer?
Add Answer to:
1.arrayList[9] accesses the 10th object of an array of length 10 true false 2. Arrays are...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT