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
miskamm [114]
4 years ago
7

Suppose you have the following declaration.char[] nameList = new char[100];Which of the following range is valid for the index o

f the array nameList.(i) 1 through 100(ii) 0 through 1001. Both are invalid2. Only (i)3. None of these4. Only (ii)
Computers and Technology
1 answer:
VMariaS [17]4 years ago
4 0

4. Only (ii)

<u>Explanation:</u>

The declaration of the array can be of two types:

1. int a[100];

2. int[] a = new int[100];

The general thing about an array is that whenever we want to undergo traversal in an array, we always have to start from the 0th position as the size of the array may be a whole number (let us say 10). So, to undergo traversal in an array, we start from 0 to n-1 (in this case 9) such that it covers the size of the array.

The size of an array can be finite or infinite. The general rule is it starts from 0 to n-1 where n is the size of the array. In the above example, the range of the index of the array will be 0 through 100 and not 1 through 100.

You might be interested in
Spam is _____.
DiKsa [7]

Answer:

any kind of unwanted, unsolicited digital communication that gets sent out in bulk

3 0
2 years ago
To complete this quest, answer the following questions in the submission box below. Make x an array going from 0 to 100 by steps
Law Incorporation [45]

Answer:

C++.

Explanation:

#include <iostream.h>

void main(int argc,char* arg[])  {

   // Arrays

   int x[100];

   int y[50];

   int z[50];

////////////////////////////////////////////////////////////////////////////

   int count = 0;

   for (int i = 0; i < 100; i+=2) {

       z[count] = x[i] * y[count];

       count++;

   }

for (int i =0; i < 5; i++) {

   cout<<z[i]<<endl;

}

getche();

}

5 0
3 years ago
Which item best describes fiber optic transmission?
sveticcg [70]

Answer:

a

Explanation:

analog signal sent through tiny glass strands

6 0
3 years ago
6.6 lesson practice edhesive quiz
Artyom0805 [142]

Answer:

1. 50

2. canvas.draw_circle((100,100), 50, 50, “Gray”, “Black”

3. X , Y , Radius, Line Width , Color

4. String

Explanation:

8 0
3 years ago
What happens when your computer is in hibernate mode??
Alina [70]
I think hibernate is sort of like sleep mode. It puts your computer on low battery, but it's not turn off. And some unsaved information doesn't get erase.
6 0
3 years ago
Read 2 more answers
Other questions:
  • Consider the following list.
    5·1 answer
  • The medium format camera uses ___ film
    7·1 answer
  • Windows installer cannot install .exe files. to distribute a software package that installs with an .exe file, what must you do
    14·1 answer
  • Windows uses a memory-management technique known as ________ to monitor which applications you use most frequently and then prel
    8·1 answer
  • Help!!!!!!!!!!!!!!!!!!!
    12·1 answer
  • C programming:
    13·1 answer
  • How do you guys feel about the coronavirus and being Homeschooled
    10·1 answer
  • 8. Cloud Storage is
    5·2 answers
  • This isn't academic, but what do I do if HI-REZ won't let me sign into an existing account. “Something went wrong” keeps popping
    5·1 answer
  • with a ____ the traffic of a given enterprise or group passes transparently through an internet in a way that effectively segreg
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!