1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
emmainna [20.7K]
4 years ago
6

An array is stored in contiguous memory locations. You access the individual array value by using the array name followed by the

index location. In other words, here is the array:
42 27 36 94 12 44 18
1. If you want to access the third value (36), you would use numbers[2]
O True
O False
Computers and Technology
1 answer:
allochka39001 [22]4 years ago
8 0

Answer:

True

Explanation:

Indexing in arrays start at zero, so the last element of an array with n number of elements will have the index n-1.

Lets create a simple java application that will print the elements at different indexes of this given array

<em>public class ANot {</em>

<em>    public static void main(String[] args) {</em>

<em>        int [] numbers = {42,27,36,94,12,44,18};</em>

<em>        System.out.println("Element at index 0 is "+numbers[0]);</em>

<em>        System.out.println("Element at index 1 is "+numbers[1]);</em>

<em>        System.out.println("Element at index 2 is "+numbers[2]);</em>

<em>    }</em>

<em>}</em>

The output of this code is:

Element at index 0 is 42

Element at index 1 is 27

Element at index 2 is 36

You might be interested in
_____ drives are storage drives that contain both solid-state storage and hard disks in an attempt to gain the speed and power o
kolbaska11 [484]

Answer:

Hybrid drives are storage drives that contain both solid-state storage and hard disks in an attempt to gain the speed and power of ssds while still having the low cost and storage capacity of hard drives.

5 0
2 years ago
How to check if serial interface is dte ot DCE?
Anna11 [10]

If you can see the DTE/DCE cable, you can tell by looking which router has the DCE interface connected to it - the letters "DTE" or "DCE" will either be molded into the connector itself, or if it's an older cable there should be a little piece of tape on the cable that tells you what the interface type is.

5 0
3 years ago
If your computer won't connect to the internet, which of these is most likely to be the problem?
Setler79 [48]

Answer: just like rtyguj said, RAM, ROM, and O USB are all built into your computer so it would be onic

8 0
3 years ago
Which question best addresses the issue of risk with a new job?
jolli1 [7]
The last answer seems most appropriate
5 0
4 years ago
Read 2 more answers
Come up with a system, using only
masha68 [24]

Explanation:

material

3 balões de erlenmeyer. .balanca

funil. . carbonato de

. rolha

. tubo abdutor

. seringa

8 0
3 years ago
Other questions:
  • Using a text editor, create a file that contains a list of at least 15 six-digit account numbers. Read in each account number an
    12·1 answer
  • Look at the following array definition:
    11·1 answer
  • Write an application program that creates and prints a random phone number of the form XXX-XXX-XXXX. Include the dashes in the o
    5·1 answer
  • Which of the following techniques has to do with how the people who make the commercial manipulate the way it looks?
    8·1 answer
  • The two key elements of any computer system are the ________ and the ________.
    12·1 answer
  • Write a SELECT statement that returns the same result set as this SELECT statement, but don’t use a join. Instead, use a subquer
    12·1 answer
  • What will happen when you run this program?
    12·2 answers
  • Used for monitoring web activity by users to make sure that sensitive information won't leave the building.
    7·1 answer
  • Write this multiplacation statement as repeated addition 5/6 x 3​
    6·1 answer
  • POINT BOOST:
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!