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
Write an article for publication on why every student should be computer literate​
Zigmanuir [339]

Answer:bankrupt

Explanation: no money on your card lol i hope you haveing a great day and i want you to know that you got this babe like is life is good then great but if not then it will get better beause you will make it get better

6 0
3 years ago
Write a C program to perform simple C arithmetic calculations. The user is to enter a simple expression (integer operator intege
Ilya [14]

Answer:

Input example:

select the funcion: 1                                                                                                                  

write the 1sd number2                                                                                                                  

write the 2nd number1                                                                                                                  

value is 2.000000                                                                                                                      

Explanation:

#include <stdio.h>

main()

{

//define the variables as float

float a, b, c, e;

char d;

while (1)  

{      

//input values

printf("select the function: ");

scanf("%c",&d);

printf("write the 1sd number");

scanf("%f",&a);

getchar();

printf("write the 2nd number");

scanf("%f",&b);

getchar();

if (d=='%')

{

    a=a*b/100;

}

if (d=='*')

{

    a=a*b;

}

if (d=='+')

{

    a=a+b;

}

if (d=='/')

{

    a=a/b;

}

if (d=='-')

{

    a=a-b;

}

printf("value is %f \n",a);

}

printf("final value is %f",a);

getchar();

}

8 0
4 years ago
How many types of string types does python support?​
Andru [333]

Answer:

47

Explanation:

they support all of them,more their babies and offspring

7 0
4 years ago
In chapter 3, we discussed syntax and semantics, in general there are two types of grammars for programming languages, regular a
WARRIOR [948]

Answer:

Lexical rules that are defined in case of regular grammar are simple and the notation is quite easy to understand.

Regular expression are useful for defining constructs of identifiers or constants. e.g. a|b etc.

In the case of context-free, grammar is not simple and deals with the productions.

Context-free are useful in describing the nested constructs like if-else etc which are not defined by regular expressions.

These produce a higher level of reliability as it provides a medium for generating syntactical as well as semantic data. The grammar is context-free is a little complex.

Explanation:

8 0
3 years ago
Which view is most often used to reorder slides in a presentation that has already been created?
riadik2000 [5.3K]

Answer:

Normal view

Explanation:

The normal view is best used because it is just to drag and drop

4 0
3 years ago
Read 2 more answers
Other questions:
  • If memory accesses take 100 times more than register accesses, then a LOAD instruction will take ___ machine cycles than an ADD
    7·1 answer
  • Which of the following is NOT one of the responsibilities of the Federal Reserve?
    10·1 answer
  • What’s the most popular operating system
    9·2 answers
  • All of the following statements about logistics information systems (LIS) are true except ________.
    14·1 answer
  • When entering a formula into a cell, you begin with are calculations a spreadsheet program applies to data. are preset calculati
    9·1 answer
  • The entress Effie cooks as a chef never vary by taste, quantity or quality
    6·1 answer
  • What do you understand by Multiprotocol Label Switching, how it works and is helpful in today's network scenario.
    15·1 answer
  • What do we call a statement that displays the result of computations on the screen
    12·2 answers
  • In a complex formula, how does excel determine which calculation to perform first?.
    10·1 answer
  • Question 8 of 25
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!