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

Suppose list is a one dimensional array of size 25, where in each component is of type int. Further, suppose that sum is an int

variable. The following for loop correctly finds the sum of the elements of list.
Computers and Technology
2 answers:
Varvara68 [4.7K]3 years ago
5 0

Answer:

# include <conio.h>

# include <iostream.h>

using namespace std;

main{

int a[25], sum;

cout<<"enter the values in array a";

for (int i=0; i<= 24 ; i++)

{

cin>>a[i];

}

sum =0;

for (int j=0;  j<=24 ; j++)

{

sum= sum + a[j];

}

cout<< sum;

getch ();

}

True [87]3 years ago
3 0

Answer:

False is the correct answer to the following question.

Explanation:

In the following question there some information is missing code is missing which is 'sum = 0;

for (int i = 0; i < 25; i++)

sum = sum + list;

(T/F)'

The following code is incorrect because this is not the right way to add the elements of an array, the correct code is:

int sum=0;

for(int i = 0; i < 25; i++)

{

sum = sum + list[i];

}

In the following code block, we add each elements of an array and the addition is save into the variable "sum"

So, that's why the following code is incorrect.

You might be interested in
Consider a process that uses a user-level threading library to spawn 10 user-level threads. The library maps these 10 threads on
eduard

Answer:

2 threads of a process

Explanation:

At maximum 2 threads of a process that can be executing in parallel.

6 0
4 years ago
A _____ is defined as a malicious program that attacks a computer system directly, rather than infecting a host program, and spr
Bond [772]

Answer:

Virus

Explanation:

7 0
3 years ago
1. The future of 2D animation does not include hand-drawing. (1 point)
ella [17]

Answer:

1. False

Yes, it is true that most of the animation companies have now shifted to the CG animation, and use computers in one way or the other. However, the art of the hand drawing is never going to be extinct. Yes, demand is not going to be as much as it was in the 1980s but it is going to be available at some level even now. And hence, if you are an artist, you need not worry.

2. True

Well, that was a disaster, and everything was destroyed in the earthquake.

3. It's slow in and slows out.

It's this method that is generally used to emphasize the character's attitude and since the start of the animation making. And it is quite effective as well.

4. The Humorous Phases of Funny Faces

5. main purpose drawing

6. cel animation

7. True. This film was certainly made in 1912.

8. kinetoscope

9. False We do have the exaggeration animation, and that is being used quite extensively.

10. Korea. It was certainly Korea where the Simpsons were primarily created.

11. to draw an animated scene out

A condition like Akinetopsia is created, which is also known as the cerebral akinetopsia and we also know it as the motion blindness, is a kind of disorder during which a patient is not able to perceive the motion in the visual field, even though they can view the stationary objects, and there is no issue in that. And hence, it's done to draw an animated scene out.

12. Mortimer Mouse

13. narrator

14. exaggeration

15. true

Explanation:

Please check the answer section.

7 0
4 years ago
Which of the following factors put you at risk for injury?
Monica [59]

Answer:

Prolonged exposure to vibration

Long periods of localized pressure

Explanation:

Repetitive motion is certainly not harmful, but prolonged repetitive motion can be a cause for injury. This is because if you are in repetitive motion for a long time, you exert a lot of force on your body, and that is certainly going to effect your body. And after a certain limit, even death can be a case. Hence, one should be very concerned about the time limit while their body goes through the repetitive motion.

However, neutral position we are always safe, as it’s an ideal position, as in this position, the work done is zero. Work done= force x displacement. And displacement in neutral position is zero. Hence, zero energy is lost. Hence, we are safe in this position.

Hence the above answer.

4 0
3 years ago
Read 2 more answers
Given an int variable n that has been initialized to a positive value and, in addition, int variables k and total that have alre
Fudgin [204]

Answer:

The c++ program to implement the while loop is given below.

#include <iostream>

using namespace std;

int main() {

  // declaration of integer variables

   int k, n, total;

   // initialization of integer variables

   k=1, n=4, total=0;

//  loop executed till value of k becomes equal to value of n

   while( k <= n ){

       // cube of every integer is added to the variable total

       total = total + ( k * k * k );

       // value of k is incremented to go to the next number

k = k + 1 ;

   }  

   return 0;

}  

Explanation:

The program begins with the declaration of integer variables.  

int k, n, total;

This is followed by initialization of these variables.

k=1, n=4, total=0;

The while loop runs over the variable k which is initialized to 1. The loop runs till value of k reaches the value of integer n.

First, cube of k is computed and added to the variable total.

After first execution of the loop, total is initialized to the cube of 1.

Next, value of variable k is incremented by 1 so that k is initialized to next integer.

After first execution of the loop, k is incremented from 1 to 2.

while( k <= n )

{

total = total + ( k * k * k );

k = k + 1 ;

   }

When the value of k reaches the value of integer n, the cube of n is calculated and added to the variable, total.

When k is incremented, it becomes more than n and hence, loop gets terminated.

As the return type of main is int, the program terminates with the statement shown below.

return 0;

No output is displayed as it is not mentioned in the question.

No user input is taken as it is mentioned that integer variables are already initialized.

4 0
3 years ago
Other questions:
  • A data structure used to bind an authenticated individual to a public key is the definition of ________.
    14·1 answer
  • Which of the following courses would an aspiring film composer most likely take?
    12·2 answers
  • k- Add the code to define a variable of type 'double', with the name 'cuboidVolume'. Calculate the volume of the cuboid and set
    11·1 answer
  • Francis has designed a picture book appropriate for third graders. He wants teachers across the world to freely download use, an
    9·1 answer
  • What is the framing guideline for photography?
    8·1 answer
  • Name the different tools used byMMDB.
    14·1 answer
  • The purpose of the align phase is to align your team with ______.
    9·1 answer
  • A __________ is a repository of data gathered from operational data and other sources that is designed to serve a particular com
    7·1 answer
  • You found an image on the Creative Commons that you would like to use. How do you give credit to the author? *
    7·2 answers
  • Is it possible to see who logged in in youre Microsoft teams account
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!