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
2. What is the original length of the rectangular bar if the deformation is 0.005 in with a force of 1000 lbs and an area of 0.7
Ugo [173]

Answer:

18.75in

Explanation:

Modulus of elasticity = Stress/Strain

Since stress = Force/Area

Given

Force = 1000lb

Area = 0.75sqin

Stress = 1000/0.75

Stress = 1333.33lbsqin

Strain

Strain = Stress/Modulus of elasticity

Strain = 1333.33/5,000,000

Strain = 0.0002667

Also

Strain = extension/original length

extension = 0.005in

Original length = extension/strain

Original length = 0.005/0.0002667

Original length = 18.75in

Hence the original length of the rectangular bar is 18.75in

6 0
3 years ago
Supercharging is the process of (a) Supplying the intake of an engine with air at a density greater than the density of the surr
iVinArrow [24]

Answer:

a)supplying the  intake of an engine  with air at a  density greater  than the density  of the surrounding  atmosphere

Explanation:

Supercharging  is the process of  supplying the  intake of an engine  with air at a  density greater  than the density  of the surrounding  atmosphere.

By doing this , it increases  the power out put  and increases the  brake thermal  efficiency of the  engine.It also  increases the  volumetric efficiency of the  engine.

So the our  option a is  right.

4 0
3 years ago
A ball bearing has been selected with the bore size specified in the catolog as 35.000 mm to 35.020 mm. Specify appropriate mini
Fofino [41]

Answer:

the minimum shaft diameter is 35.026 mm

the maximum shaft diameter is 35.042mm

Explanation:

Given data;

D-maximum = 35.020mm and d-minimum = 35.000mm

we have to go through Tables "Descriptions of preferred Fits using the Basic Hole System" so from the table, locational interference fits H7/p6

so From table, Selection of International Trade Grades metric series

the grade tolerance are;

ΔD = IT7(0.025 mm)

Δd = IT6(0.016 mm)

Also from Table "Fundamental Deviations for Shafts" metric series

Sf = 0.026

so  

D-maximum

Dmax = d + Sf + Δd

we substitute

Dmax = 35 + 0.026 + 0.016

Dmax = 35.042 mm

therefore the maximum diameter of shaft is 35.042mm

d-minimum

Dmin = d + Sf

Dmin = 35 + 0.026

Dmin = 35.026 mm

therefore the minimum diameter of shaft is 35.026 mm

8 0
3 years ago
Air enters an adiabatic turbine at 900 K and 1000 kPa. The air exits at 400 K and 100 kPa with a velocity of 30 m/s. Kinetic and
Ivanshal [37]

hooooooooooooooooooooooooooooooooooooooooooooooooooooooe    

3 0
3 years ago
Q5
Klio2033 [76]

The C++ code that would draw all the iterations in the selection sort process on the array is given below:

<h3>C++ Code</h3>

#include <stdio.h>

#include <stdlib.h>

int main() {

   int i, temp1, temp2;

   int string2[16] = { 0, 4, 2, 5, 1, 5, 6, 2, 6, 89, 21, 32, 31, 5, 32, 12 };

   _Bool check = 1;

   while (check) {

       temp1 = string2[i];

       temp2 = string2[i + 1];

       if (temp1 < temp2) {

           string2[i + 1] = temp1;

           string2[i] = temp2;

           i = 0;

       } else {

           i++;

           if (i = 15) {

               check = !check;

           }

       }

   }

   

   return 0;

}

Read more about C++ programming here:

brainly.com/question/20339175

#SPJ1

5 0
1 year ago
Other questions:
  • A roller-coaster car is traveling at a speed of 23 m/s when it passes through point B. At that point, it enters a concave down c
    8·1 answer
  • What is the difference between tension and compression?
    9·1 answer
  • The outer surface of a spacecraft in space has an emissivity of 0.6 and an absorptivity of 0.2 for solar radiation. If solar rad
    12·1 answer
  • An insulated tank having a total volume of 0.6 m3 is divided into two compartments. Initially one compartment contains 0.4 m3 of
    8·1 answer
  • A square power screw has a mean diameter of 30 mm and a pitch of 4 mm with single thread. The collar diameter can be assumed to
    14·1 answer
  • When welding stick (SMAW) what is the distance between top of bare end of electrode and base metal?
    7·1 answer
  • Argon is compressed in a polytropic process with n = 1.2 from 100 kPa and 30°C to 1200 kPa in a piston–cylinder device. Determin
    14·1 answer
  • Given two alphabet strings str1 and str2. You can change the characters in str1 to any alphabet characters in order to transform
    8·1 answer
  • An article gave a scatter plot along with the least squares line of x = rainfall volume (m3) and y = runoff volume (m3) for a pa
    6·1 answer
  • Which type of Artificial Intelligence (AI) can repeatedly perform tasks of limited scope?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!