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
FrozenT [24]
4 years ago
15

Given a one dimensional array arr, what is the correct way ofgetting the number of elements in arr

Computers and Technology
1 answer:
SVETLANKA909090 [29]4 years ago
3 0

Answer:

The answer is option 1 arr.length.

Explanation:

In java arr.length gives the correct number of elements in the array.The length is function is only applicable for arrays.

The length() method is applicable for strings.

arr.length-1 will give 1 element less.

There is no .size for arrays in java.

So we conclude that arr.length is correct way of getting the number of elements in one dimensional array arr.

You might be interested in
Plsss help anyone PLSSSSS ​
Katena32 [7]

Answer:

The answer to this question is given below in the explanation section.

Explanation:

This question is about to write HTML code for the given sub-questions. In each sub-question different scenario is given. So, the answer to these questions is given below in the order they asked.

1. In this question it is asked to write a code of 5 students' name in a paragraph with a different color that make them unique.

<html>

<body>

<p style="color:red;">Student A</p>

<p style="color:blue;">Student B</p>

<p style="color:black;">Student C</p>

<p style="color:orange;">Student D</p>

<p style="color:green;">Student E</p>

</body>

</html>

2. In it, the below is given code show an ordered list of subjects that you're offering.

<html>

<body>

<h2>An ordered HTML list</h2>

<ol>

 <li>Introduction to Computing</li>

 <li>Communication Skills</li>

 <li>Software Designing</li>

</ol>  

</body>

</html>

3. The below-given HTML code shows the unordered list of parts that make up the computer.  

<html>

<body>

<h2>An unordered HTML list</h2>

<ul>

 <li>CPU</li>

 <li>RAM</li>

 <li>Motherboard</li>

 <li>Mouse</li>

 <li>Keyboard</li>

 <li>Monitor</li>

</ul>  

</body>

</html>

3 0
3 years ago
Which of the statements is most likely true about the differences between the basic version and premium version of StreamPal
romanna [79]

Answer:

I

Explanation:

8 0
3 years ago
Read 2 more answers
The diagram shows the positions of the Sun, Earth, and Moon during each moon phase. When viewed from Earth, at what point does t
goldfiish [28.3K]

Answer:

B

Explanation:

when it is on the same side of Earth as the Sun because it appears all black because of the shadow

7 0
2 years ago
a user reports that her computer monitor will not allow her to switch back and forth between Microsoft word and internet explore
san4es73 [151]

Answer: B. Interrupts

Explanation:

Interrupts is a feature of digital computers that enables the interruption of the process the computer is currently engaged in so that the computer can process the new command. Interrupts is the reason I am able to type this answer because interrupts is interrupting my browser to process my typing.

If a user reports that their computer monitor will not allow her or him to switch back and forth between Microsoft Word and Internet Explorer, it is possible that the interrupts function is not working effectively to enable the switch. by interrupting one of the programs.

7 0
3 years ago
Which of the following scenarios demonstrates leadership?
bulgar [2K]
I can’t see the scenarios bro
8 0
3 years ago
Read 2 more answers
Other questions:
  • What would make this comparison statement False? Complete with the appropriate relational operator. "G" _____= "G"
    10·1 answer
  • A field that will always have a unique value is
    15·2 answers
  • Tom is required to present the activities of his Nature club each month to the school committee. Which presentation element can
    12·2 answers
  • Maggie is preparing a document.she wants to open the help menu to sort out a formatting problem.which key should she press to op
    15·2 answers
  • Open Comments.java and write a class that uses the command window to display the following statement about comments:
    8·1 answer
  • Making an analogy between Freudian theory and the brain networks described in an earlier chapter in the text, primary process th
    10·1 answer
  • A celebrity blogger you have followed for years advises readers to try a new beauty product. Before purchasing the product, a sa
    10·1 answer
  • Write a python program to find factorial, use exception handling and display an appropriate message if the user inputs alphabets
    7·1 answer
  • Declare a struct of your choice (Employee, Student etc). Delcare a node for singly link list. Declare an ADT of this linklist. T
    7·1 answer
  • A _____ is a specially formatted file that, once mounted, or connected to a virtual machine appear and operate pretty much ident
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!