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

What is the output of the code snippet given below? string s = "aeiou"; int i = 0; do { system.out.print(s.substring(i, i + 1));

i++; if (i >= 3) { i = 5; } } while (i < 5);?
Computers and Technology
1 answer:
Fofino [41]3 years ago
8 0
This prints aei

The loop progresses for i equal to 0, 1 and 2. But then i gets increased to 3, it gets set to 5, effectively terminating the loop. So only 3 characters get printed.
You might be interested in
6.67
kari74 [83]

Answer:

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

Explanation:

The question is:

If you wanted to know how many instructions a computer executes per second, which of the following numbers would  you want?

  1. clock speed
  2. binary digitization
  3. processor rating
  4. CPU power differential

The correct answer is clock speed. Because you can measure the performance of speed of the computer by its clock speed that how many instructions it can execute per second.

It also depends on clock time, instruction count, clock per instruction

5 0
3 years ago
What specific record type is found in every zone and contains information that identifies the server primarily responsible for t
ValentinkaMS [17]

The SOA is the specific record type found in every zone and contains information that identifies the sever primarily responsible for the zone as well as some operational properties for the zone.

Explanation:

The Start of Authority Records (SOA) has the following information they are

Serial Number: This number is used to find when zonal information should be replicated.

Responsible person: The Email address of a person is responsible for managing the zone.

Refresh Interval: It specifies how often a secondary DNS server tries to renew its zone information.

Retry Interval: It specifies the amount of time a secondary server waits before retrying the zone information has failed.

Expires After: IT specifies the amount of time before a secondary server considers its zone data if it can't contact with the primary server.

Minimum TTL: It specifies the default TTL value for a zone data when a TTL is not supplied.

4 0
3 years ago
A solid weighs 20gf in air and 18gf in water .find the specific gravity of the solid​
swat32
<h2>Answer:</h2>

10

<h2>Explanation:</h2>

Specific gravity (also called relative density) is the ratio of the density of an object (or substance) to the density of a reference substance (mostly water). It has no unit and is given by the following;

Specific gravity = \frac{density-of-object}{density-of-water}

Specific gravity is also given by the ratio of the weight of the object in air to the loss of weight of the object in water. i.e

Specific gravity = \frac{weight-of-object-in-air}{loss-of-weight-in-water}            --------------(* * *)

In this case;

i. The object is the solid which has a weight of 20gf in air.

ii. The loss of weight of the solid in water is the difference between the weight in air (20gf) and the weight in water (18gf).

Therefore the loss of weight is

20gf - 18gf = 2gf

Now substitute these values from (i) and (ii) into equation (* * *) as follows;

Specific gravity = \frac{20gf}{2gf}

Specific gravity = 10

Therefore the specific gravity of the solid is 10

7 0
3 years ago
We piped the results of the Get-Process cmdlet to the Sort-Object cmdlet to sort them in descending order. Which property was us
Basile [38]
The answer is yes hope this helps did before
5 0
3 years ago
You can move to the previous or next sheet by pressing the ____ keys.
Paladinen [302]
<span>ctrl+pg up (or ctrl) + pg down</span>
8 0
3 years ago
Other questions:
  • Which of the following is true regarding Moore’s Law? A.) explained the growth in computing capabilities between 1965 and 1995 B
    14·1 answer
  • Using the drop-down menu, complete the following questions based on your knowledge of variables. is a value that can be used onl
    7·1 answer
  • Name two common methods for performing dependency injection.
    15·1 answer
  • Please help.
    6·1 answer
  • Jamie is preparing a presentation on his laptop for his college annual event. He inserts audio and video files into the presenta
    11·2 answers
  • Which of the following scan only works if operating system’s TCP/IP implementation is based on RFC 793?
    12·1 answer
  • Create the following new exceptions: PokemonException, which extends the Exception class. It must have a no-parameter constructo
    13·1 answer
  • As a project manager, why is analysis an important aspect of the job?
    10·1 answer
  • Focusing on a target market makes it harder to develop products and services that specific groups of customers want.
    10·1 answer
  • What will be the code in CSS, to set
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!