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
When Russ opened a website on his browser, he saw an error that the site was not compatible with the browser version he was runn
Bond [772]

Answer:

Patch finders.

Explanation:

Once Russ accessed a webpage on his computer, he had seen an issue that the page was not associated with the browser variant on which he was executing it, although it was important to use patch finders tool to fix the following problems because patch finder is only the software that can resolve the following issues.

3 0
3 years ago
What is the 10/20/30 rule?
Sophie [7]
This represents Guy <span>Kawasaki Rule for PowerPoint Presentations. Here is what it stands for: 

</span><span>10 slides are the optimal number to use in a  presentation.
20 minutes is the longest amount of time that you should speak.
<span>30 point font is the smallest font that you should use on slides.


</span></span>
3 0
3 years ago
You manage a windows system. you want to view information about all of the programs running on your system and sort each program
viva [34]
You'd use the Resource Monitor, or as it's called on an iMac, the Activity Monitor. This built in utility shows you the program's name, the memory it is consuming and the CPU as a percentage of your desktop machine's ability. 
6 0
3 years ago
To find the area, Andrea tiled a rectangle and sketched her answer. Sketch Andrea's rectangle, and find the area. Show your mult
seraphim [82]

Answer:

Area = 6.25

Explanation:

Given

Length = 2.5

Width = 2.5

See attachment for rectangle

Required

Determine the area of the rectangle

Area is calculated as:

Area = Length * Width

This gives:

Area = 2.5 * 2.5

Area = 6.25

<em>The area of Andrea's sketch is 6.25</em>

8 0
3 years ago
Which Windows Server 2008 R2 version has a smaller footprint, reduces the number of security vulnerabilities, and does not inclu
stira [4]

Answer:

Server core

Explanation:

Server core is miniature Microsoft Windows server installation option with limited features, that mimic the features of an actual core server, with little servicing and management requirement, disk and memory, and attack vulnerability.

5 0
3 years ago
Other questions:
  • If Maya wants to access a view that would control multiple slides within a presentation, which view should she utilize? Master v
    9·1 answer
  • Which is the most important reason you should properly cite information that you obtain from an Internet search? Question 2 opti
    8·1 answer
  • Write a sentinel-controlled while loop that accumulates a set of integer test scores input by the user until negative 99 is ente
    8·1 answer
  • 4. A friend knows you are taking a technology class in college and asks you how a hard drive works. In your own words, describe
    6·1 answer
  • _____ was just a sophomore when he began building computers in his dorm room at the University of Texas. His firm would one day
    14·1 answer
  • Explain how devices on a lan access resources in a small to medium-sized business network.
    15·1 answer
  • Size of a MAN can range from ​
    5·1 answer
  • Retail products are identified by their Universal Product Codes (UPCs). The most commonform of a UPC has 12 decimal digits: The
    8·1 answer
  • Ứng dụng 1 số phần mềm cho quá trình kiểm tra đánh giá
    7·1 answer
  • Verizon's implementation of a web-based digital dashboard to provide managers with real-time information such as customer compla
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!