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
Arada [10]
3 years ago
11

Consider the following declaration: double[] sales = new double[50]; int j; Which of the following correctly initializes all the

components of the array sales to 10.
(i) for (j = 0; j < 49; j++) sales[j] = 10;
(ii) for (j = 1; j <= 50; j++) sales[j] = 10;
Computers and Technology
1 answer:
vlada-n [284]3 years ago
3 0

Answer:

The answer is "None of these".

Explanation:

In the given question an array "sales[]" is declared, which contains 50 double type elements, and in the next line, an integer variable j is defined, which uses a for loop. In this question two options is given, in which both are not correct, that can be described as follows:

  • In option (i), A loop is defined that, uses variable j which starts with 0 and ends with 48, So total elements are 48 that's why it is not correct.
  • In option (ii), A loop will use variable j that, starts with 1 and ends with 49, That's why it is not correct.
You might be interested in
_______ is a process that insures that operations meet data validity standards. For instance, information systems that process c
lutik1710 [3]

Answer:

The answer is consistency

Explanation:

Information systems deal with the retrieval, storage, manipulation and sharing of data for organisational needs. It is important that there are measures in place that corresponds to data validity standards. The process that ensures that operations meet these standards is known as consistency.

This is very necessary for information systems.

5 0
3 years ago
Help ME! Will Mark BRAINLIEST! Its Engineering!
Anettt [7]
What is it about ? And what you need help on
5 0
3 years ago
A computer mouse is an example of a(n)
Komok [63]
Input device

A cpu processes all your programs
An input device is something like a keyboard or mouse, when you use it it inputs data to the computer
An output device is something like your headphones
Software is a program that you run like microsoft word
8 0
3 years ago
What is ""quality""?
Naddik [55]

Answer: Quality is the parameter which describes about the distinctive trait  presented by something.The measurement of the quality is based on whether or not the substance is able to fulfill the requirement of the client.

In respect with the computing field ,quality is the characteristic that is supposed to be good if there is presence of no defects or damage and is able to meet the requirement of the user or client. This parameter can be for devices, programming languages, software etc.

7 0
3 years ago
Did it go from a sail boat to a row boat or vise versea
Bingel [31]
A sail boat went to a row boat.
8 0
3 years ago
Other questions:
  • Dialogue is not a characteristic of functional text because...
    12·1 answer
  • 3. You are a network administrator responsible for all network platforms and services. The Teta Company currently has only one b
    13·2 answers
  • Page orientation can be either landscape or _____.
    13·1 answer
  • Web browsers are used to browse the world wide web.
    5·2 answers
  • Which of the following is an object-oriented prototype-based language? Java Pike REBOL MATLAB
    9·1 answer
  • Write a Java program that prints out a 4x4 square (like the one below)
    11·1 answer
  • Bye guys imma k.ill myself for real this time.
    11·2 answers
  • I wish we could visit Paris for the holidays into exclamatory​
    12·2 answers
  • In the Business world people are often measured by their???
    14·1 answer
  • URGENTT 2 SIMPLE EASY QUESTIONS PLZZ HELP ION UNDERSTAND COMPUTERR ILL GIVE U BRAINLEST
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!