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
3241004551 [841]
2 years ago
15

Consider the following program:

Engineering
1 answer:
EleoNora [17]2 years ago
5 0

Answer:

The solution of this question is given below in explanation section.

Explanation:

The correct answer to this question is A i.e. 112002 .

the correct code of this question is given below

#include  <stdio.h>

#include  <string.h>

#include  <sys/types.h>

//#include "csapp.h"

void end(void)

{

printf("2");

}

int main()

{

if (fork() == 0)

atexit(end);

if (fork() == 0)

printf("0");

else

printf("1");

exit(0);

}

/* $end forkprob2 */

when you run this program, fork function print different values.

However, it is noted that when you run the program repeatedly, it will show you different values. But the most possible value that this program will show is A.

The picture is attached of the running program to get the idea of code.

You might be interested in
11. Which of these is NOT true when dealing with refrigerants?
Alexus [3.1K]
Answer is an increase in pressure will cause an decrease in the pressure
4 0
3 years ago
I’m doing a project on renewable energy. There are 6 energy sources. Solar, wind, geothermal, hydroelectric, tidal, and biomass.
nalin [4]

Answer:

"Biofuels"

Explanation:

I don't know if this counts but I guess it's not one of those.

6 0
2 years ago
Read 2 more answers
What does an aeronautical engineer design
Colt1911 [192]

Answer:

they work with aircraft, designing aircrafts.

Explanation:

3 0
3 years ago
Two substances, A and B, initially at different temperatures, come into contact and reach thermal equilibrium. The mass of subst
Kaylis [27]

Answer:

The specific heat capacity of substance A is 1.16 J/g

Explanation:

The substances A and B come to a thermal equilibrium, therefore, the heat given by the hotter substance B is absorbed by the colder substance A.

The equation becomes:

Heat release by Substance B = Heat Gained by Substance A

The heat can be calculated by the formula:

Heat = mCΔT

where,

m = mass of substance

C = specific heat capacity of substance

ΔT = difference in temperature of substance

Therefore, the equation becomes:

(mCΔT) of A = (mCΔT) of B

<u>FOR SUBSTANCE A:</u>

m = 6.01 g

ΔT = Final Temperature - Initial Temperature

ΔT = 46.1°C - 20°C = 26.1°C

C = ?

<u>FOR SUBSTANCE B:</u>

m = 25.6 g

ΔT = Initial Temperature - Final Temperature

ΔT = 52.2°C - 46.1°C = 6.1°C

C = 1.17 J/g

Therefore, eqn becomes:

(6.01 g)(C)(26.1°C) = (25.6 g)(1.17 J/g)(6.1°C)

C = (182.7072 J °C)/(156.861 g °C)

<u>C = 1.16 J/g</u>

5 0
3 years ago
If 5000 N of thrust is acting to the left, and 4300 N of drag is acting to the right, what is the magnitude and direction of the
Kipish [7]

Answer:

700 N acting to the left.

8 0
3 years ago
Other questions:
  • A liquid-liquid extraction process consists of two units, a mixer and a separator. One inlet stream to the mixer consists of two
    7·1 answer
  • The mechanical properties of a metal may be improved by incorporating fine particles of its oxide. Given that the moduli of elas
    11·1 answer
  • Windmills slow the air and cause it to fill a larger channel as it passes through the blades. Consider a circular windmill with
    10·1 answer
  • When we utilize a visualization on paper/screen, that visualization is limited to exploring: Group of answer choices Relationshi
    9·1 answer
  • A friend would like you to build an "electronic eye" for use as a fake security device. The device consists of three lights line
    12·2 answers
  • Fix the code so the program will run correctly for MAXCHEESE values of 0 to 20 (inclusive). Note that the value of MAXCHEESE is
    8·1 answer
  • Ten dollars per hour is about how much income per year
    5·2 answers
  • Which of the following describes a product concept?
    15·1 answer
  • You are using a Jupyter Notebook to explore data in a DataFrame named productDF. You want to write some inline SQL by using the
    8·1 answer
  • Technician A says reducing spark advance can cause spark knock. Technician B says excessive carbon deposits can cause spark knoc
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!