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
Which statement about cathode ray tubes (CRTs) is true?
yuradex [85]

Answer:

CRTs consume less power than LCDs.

hope it helps (^^)

# Cary on learning

6 0
2 years ago
Engineers are designing a cylindrical air tank and are trying to determine the dimensions of the tank. The proposed material for
lana66690 [7]

Answer:

The length of tank is found to be 0.6 m or 600 mm

Explanation:

In order to determine the length, we need to find a volume for the tank.

For this purpose, we use ideal gas equation:

PV  = nRT

n = no. of moles = m/M

Therefore,

PV = (m/M)(RT)

V = (mRT)/(MP)

where,

V = volume of air = volume of container

m = mass of air = 4.64 kg

R = General Gas Constant = 8.314 J/mol.k

T = temperature of air = 10°C + 273 = 283 K

M = molecular mass of air = 0.02897 kg/mol

P = Pressure of Air = 20 MPa = 20 x 10^6 N/m²

V = (4.64 kg)(8.314 J/mol.k)(283 k)/(0.02897 kg/mol)(20 x 10^6 N/m²)

V = 0.01884 m³

Now, the volume of cylindrical tank is given as:

V = 0.01884 m³ = π(Diameter/2)²(Length)

Length = (0.01884 m³)(4)/π(0.2 m)²

<u>Length = 0.6 m = 600 mm</u>

4 0
3 years ago
All of these are true about GMA (MIG) welding EXCEPT that:
Hatshy [7]

Answer:

the welding gun liner regulates the shielding gas.

Explanation:

The purpose of the welding gun liner is to properly position the welding wire from the wire feeder till it gets to the nozzle or contact tip of the gun. <em>Regulation of the shielding gas depends on factors such as the speed, current, and type of gas being used. </em>In gas metal arc welding, an electric arc is used to generate heat which melts both the electrode and the workpiece or base metal.

The electric arc produced is shielded from contamination by the shielding gas. The heat generated by the short electric arc is low.

3 0
2 years ago
Affect the amount and rate the alcohol reaches the<br> bloodstream.
just olya [345]

Answer:

Answer to the following question is as follows;

Explanation:

The amount of alcohol consumption can be influenced by a variety of things, including food.

The proportion and pace at which alcohol reaches the circulation is affected by drinking rate, body mass, and the size of the beverage. Alcohol enters your system as soon as it reaches that first sip, as per the National Institute on Drug Abuse and Alcoholism. After 10 minutes, the results are noticeable.

6 0
3 years ago
Design a sequential circuit DETECTOR that has one input X and one input Y. The DETECTOR detects the sequence 110. If an input X
Novosadov [1.4K]

Answer:

See explaination

Explanation:

This is going to require diagrams, please kindly see attachment for the detailed step by step solution of the given problem.

5 0
3 years ago
Other questions:
  • You have designed a treatment system for contaminant Z. The treatment system consists of a pipe that feeds into a CSTR. The pipe
    8·1 answer
  • Since the passing of the Utah GDL laws in 1999:
    10·1 answer
  • 5) Initially, the pressure and temperature of steam inside a solid capsule is at 100-pound force per square inch absolute (psia)
    6·1 answer
  • 3.24 Program: Drawing a half arrow (Java) This program outputs a downwards facing arrow composed of a rectangle and a right tria
    12·1 answer
  • What are the important factors needed to be considered while selecting a brake or clutch?
    9·1 answer
  • Sarah and Raj take/takes me to a baseball game every year.
    11·1 answer
  • if stall speed in ktas for an aircraft us 100 ktas at sea level, what is the stall speed in ktas of the aircraft at 5000 ft dens
    7·1 answer
  • A cross beam in a highway bridge experiences a stress of 14 ksi due to the dead weight of the bridge structure. When a fully loa
    14·1 answer
  • True or false for the 4 questions?
    8·1 answer
  • Along with refining craft skills another way to increase the odds for career advancement is to
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!