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
Masteriza [31]
4 years ago
8

What would be the results of the following code? int[] array1 = new int[25]; … // Code that will put values in array1 int value

= array1[0]; for (int a = 1; a < array1.length; a++) { if (array1[a] < value) value = array1[a]; }
Computers and Technology
2 answers:
Marina CMI [18]4 years ago
5 0

Answer:

'value' contains the minimum value in the array, array1.

Explanation:

In the code:

int[] array1 = new int[25];

…

// Code that will put values in array1

int value = array1[0];

for (int a = 1; a < array1.length; a++) {

   if (array1[a] < value) value = array1[a];

}

We declare an integer array array1 of size 25.

We initialize the variable 'value' to the first element of the array , array1[0].

Then we iterate through the array to update the value whenever the array element is less than the current 'value'.

So eventually value will contain the minima in the original array.

Elden [556K]4 years ago
3 0

Answer:

value = 0

and every element of array1 is 0.

Explanation:

int[] array1 = new int[25];

Since it is initialized using new keyword.Elements of the array initialized using new are always initialized with 0.So value will become 0 since value of array1[0] is 0 and in the the loop if condition will never gets executed because array1[a] is always 0 that is equal to value.

You might be interested in
Please help!!!! will mark brainliest!!
fgiga [73]

Answer:

1. Speaking or texting on the cell phone while driving.

= It cause an accident.

2. Using technology for bullying others.

Hope this answer will help you.

7 0
3 years ago
Read 2 more answers
The _______ command was developed by nicholas harbour of the defense computer forensics laboratory.
Lena [83]
Hi! The answer is dcfldd
3 0
3 years ago
Which type of classroom enables students to attend lectures without being physically present with the teacher?
Kisachek [45]
An online class? I think lol
5 0
4 years ago
Which of the following is not a characteristic of Web 2.0?
Dmitry [639]

Answer:

c. mentorship programs taking place via the internet

Explanation:

The World Wide Web (WWW) was created by Tim Berners-Lee in 1990, which eventually gave rise to the development of Web 2.0 in 1999.

Web 2.0 can be defined as a collection of internet software programs or applications which avails the end users the ability or opportunity to share files and resources, as well as enhance collaboration over the internet.

Basically, it's an evolution from a static worldwide web to a dynamic web that enhanced social media. Some of the examples of social media platforms (web 2.0) are You-Tube, Flickr, Go-ogle maps, Go-ogle docs, Face-book, Twit-ter, Insta-gram etc.

Some of the main characteristics of Web 2.0 are;

I. Social networking.

II. Blogging.

III. Interactive comments being available on many websites.

Also, most software applications developed for Web 2.0 avails its users the ability to synchronize with handheld or mobile devices such as smartphones.

However, mentorship programs taking place via the internet is not a characteristic of Web 2.0 but that of Web 3.0 (e-mentoring).

7 0
3 years ago
This is a bit confusing to me. Could someone please help me! I have to use CSS to Design a Web Page. I will mark Brainliest!
GrogVix [38]

Answer:

CSS is easy

Explanation:

CSS is like the color or your sylte for a webpage.

6 0
3 years ago
Other questions:
  • What is the name of the computer through which e-mail messages are sent and received?
    12·1 answer
  • A check of dorms revealed that 38% had refrigerators, 52% had TV’s and 21% had both a TV and a refrigerator. What’s the probabil
    14·1 answer
  • WILL GIVE BRAINLIEST!!!
    15·2 answers
  • Which disc store compacity for full lenght movie? dvd or cd
    14·1 answer
  • What would be the state of the following list after each of the first four passes in a Bubble sort, sorting into ascending seque
    15·2 answers
  • Describe the three essential characteristics of an object fromthe perspective of object oriented paradigm.
    7·1 answer
  • What is the main purpose of dtp software?
    10·1 answer
  • Hey yall wanna send me some just ask for my phone #
    13·1 answer
  • A(n) _____ is a flexible tool used to analyze data using reports that do not have a predetermined format.
    9·1 answer
  • Int r=6;<br> int v=20;<br> System.out.println( r % v );
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!