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
Bas_tet [7]
3 years ago
12

Consider the following declaration.int[] alpha = new int[3];Which of the following input statements correctly input values into

alpha?(i)alpha = cin.nextInt();alpha = cin.nextInt();alpha = cin.nextInt();(ii)alpha[0] = cin.nextInt();alpha[1] = cin.nextInt();alpha[2] = cin.nextInt();1. Only (i)2. Only (ii)3. None of these4. Both (i) and (ii)
Computers and Technology
1 answer:
stepladder [879]3 years ago
5 0

Answer:

Option (2) i.e., Only (ii) is the correct option to the following question.

Explanation:

Here, in the following code that is written in the Java Programming Language in which they set integer data type array variable "alpha" and set its index to 3 through "new" keyword then, we get input from the user in the index 0 then, we get input from the user in the index 1 then, again we repeat this step for index 2. So, that's why the following option is correct.

Option 1 is wrong because in this option the user input only in the index 0 and this is also the wrong way to insert value in the array variable.

You might be interested in
It takes an older computer twice as long to send out a company's email as it does a newer computer. Working together, it takes t
bulgar [2K]

Answer:

13,33  MIN.

Explanation:

1. Time with Older Computer (OC) = 2 time with New Computer (NC)

2. OC+ NC = 10 MIN.

replacing 1. in 2.    OC + OC/2 = 10 min.  

1.5 OC =10min

OC=6.66 MIN

NC = 3,33 MIN.

If we replace NC with OC , 3,33 min will take 2 times (6,66 min)

Total Time = 6,66 + 6,66= 13,33 min

4 0
3 years ago
Micro sleep is when you ____.
Levart [38]

Microsleep refers to periods of sleep that last from a few to several seconds.

8 0
3 years ago
Read 2 more answers
Halp Computer Science
AleksandrR [38]

1st one: is memory

2nd one: is 8

8 0
3 years ago
Read 2 more answers
Who is the first computer programmer​
enot [183]

Answer:

Ada Lovelace was the first computer programmer

8 0
2 years ago
Read 2 more answers
How is communication within healthcare different than communication within other industries ?
vfiekz [6]

Answer:

It has to be more specific and easier to understand because of its importance.

Explanation:

7 0
3 years ago
Other questions:
  • Jack wants to store a large amount of data on his computer. He chooses to use a database for this purpose. What is a database? A
    8·1 answer
  • What is the difference between primary storage,secondary storage and offline storage what type of storage can be
    6·2 answers
  • What is a directory server?
    5·1 answer
  • A virus is a self-replicating program that produces its own code by attaching copies of it into other executable codes.
    7·1 answer
  • When your hands are on home row, your left hand rests lightly on _____. J K L ; A S D F Z X C V Q W E R'
    11·1 answer
  • A firm offers virtual local area networks and firewalls as an on-demand cloud service. Which service does the firm offer?
    11·2 answers
  • How ssd is better than normal sata and pata HDD​
    11·1 answer
  • What is "mob of the dead"?
    7·1 answer
  • WHAT ARE SOME PROS AND CONS OF HYDROGEN FUELL CELLS
    11·1 answer
  • What is the difference between a status bar, title bar, and tabs?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!