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]
3 years ago
15

Consider the following program:

Engineering
1 answer:
EleoNora [17]3 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
According to OSHA standards, the air in the building that John works in is unsafe. The type of regulation that OSHA engages in i
ioda

Answer:

social regulation.

Explanation:

Social regulation are rules set aside to protect the environment or restrain activities that poses threat to public health and safety, examples includes environment pollution which includes lands, air, water etc, unhealthy work environment, etc. This rules identify activities that are allowed or under sanction for individuals, firms and government, breaking this rules most times comes with heavy fines or sanctions.

Social regulation help to see to the safety and well being of our environment, it serves as a guide for human activities.

7 0
3 years ago
Read 2 more answers
500 flights land each day at San Jose’s airport. Assume that each flight has a 5% chance of being late, independently of whether
BARSIC [14]

Answer:

a.0.0199

b.0.1765

c.0.0785

d.0.1268

e.Yes

Explanation:

It is given that   X follows a  Binomial distribution with (n= 500, p = 0.05)

The  probabilities  are computed using the EXCEL .

a) The required probability here is:

P(X less of equal to  15)

= binom.dist(15,500,0.05,TRUE)

=0.0199

Therefore the probability is 0.0199 .

b) The required probability here is:

P(X greater or equal to 30) = 1 - P(X less or equal to  29)  

=1 - binom.dist(29,500,0.05,TRUE)

=0.1765

Therefore the probability is 0.1765

c) P(X = 26 )

= binom.dist(26,500,0.05,FALSE)  

=0.0785

Therefore the probability is 0.0785

d) The required probability here is computed as:

P(10 less or equal to X less or equal to 20 ) = P(X less or equal to 19) - P(X less or equal to 10)

= binom.dist(19,500,0.05,TRUE) - binom.dist(10,500,0.05,TRUE)

=0.1268

Therefore the probability 0.1268

e) Yes . Therefore the probability because that is the assumption used to apply binomial distribution .

6 0
3 years ago
A farmer has 12 hectares of land on which he grows corn, wheat, and soybeans. It costs $4500 per hectare to grow corn, $6000 to
maw [93]

The number of hectares of each crop he should plant are; 250 hectares of Corn, 500 hectares of Wheat and 450 hectares of soybeans

<h3>How to solve algebra word problem?</h3>

He grows corn, wheat and soya beans on the farm of 1200 hectares. Thus;

C + W + S = 12   ----(1)

It costs $45 per hectare to grow corn, $60 to grow wheat, and $50 to grow soybeans. Thus;

45C + 60W + 50S = 63750  -----(2)

He will grow twice as many hectares of wheat as corn. Thus;

W = 2C    ------(3)

Put 2C for W in eq 1 and eq 2 to get;

C + 2C + S = 1200

3C + S = 1200     -----(4)

45C + 60(2C) + 50S = 63750

45C + 120C + 50S = 63750

165C + 50S = 63750    ------(5)

Solving eq 4 and 5 simultaneosly gives;

C = 250 and W = 500

Thus; S = 1200 - 3(250)

S = 450

Read more about algebra word problems at; brainly.com/question/13818690

5 0
2 years ago
Which best describes the body in terms of simple machines?
alex41 [277]

Answer:B

Explanation:

5 0
3 years ago
Construction support involves mostly what kind of work?
Paraphin [41]

Answer:

Outdoors

Explanation:

Construction workers perform outdoors.

6 0
2 years ago
Other questions:
  • A device is needed to accelerate a 3000 lb vehicle into a barrier with constant velocity to test its 5 mph bumpers. The vehicle
    12·2 answers
  • Students are expected to respond to one of the two questions described below. Students should provide examples to clarify their
    12·1 answer
  • In unguided medium (free space), the electromagnetic (EM) signal wave spreads as it leaves the transmit antenna. Since the power
    10·1 answer
  • A driver on a leveltwo-lane highway observes a
    6·1 answer
  • There are two questions about SolidWorks.
    9·1 answer
  • In sleep, what does REM stand for?
    10·1 answer
  • True or false <br> 19. Closed systems rely on feedback from outside of the system to operate.
    12·1 answer
  • ¿Cuál es el objetivo de la participación del gobierno en la economía?
    6·1 answer
  • Help me with this for brainiest:)
    8·1 answer
  • A continuously variable transmission:
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!