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
A piston-cylinder assembly has initially a volume of 0.3 m3 of air at 25 °C. Mass of the air is 1 kg. Weights are put on the pis
kogti [31]

Answer:

n=2.32

w= -213.9 KW

Explanation:

V_1=0.3m^3,T_1=298 K

V_2=0.1m^3,T_1=1273 K

Mass of air=1 kg

For polytropic process  pv^n=C ,n is the polytropic constant.

  Tv^{n-1}=C

  T_1v^{n-1}_1=T_2v^{n-1}_2

298\times .3^{n-1}_1=1273\times .1^{n-1}_2

n=2.32

Work in polytropic process given as

       w=\dfrac{P_1V_1-P_2V_2}{n-1}

      w=mR\dfrac{T_1-T_2}{n-1}

Now by putting the values

w=1\times 0.287\dfrac{289-1273}{2.32-1}

w= -213.9 KW

Negative sign indicates that work is given to the system or work is done on the system.

For T_V diagram

  We can easily observe that when piston cylinder reach on new position then volume reduces and temperature increases,so we can say that this is compression process.

5 0
3 years ago
Determine the output logic-levels(boolean-levels) for XNOR if the two-inputs are inverted?​
stiv31 [10]

Answer:

<em><u>1</u></em>

<em><u>1What is the output of 2 Input XNOR gate if both the inputs are same? Explanation: The output of 2 Input XNOR gate is 1 if both the inputs are same. The output of the XNOR gate is 1 if both the inputs are logic 0 or logic 1. This is why they are called as equality detector.</u></em>

4 0
2 years ago
I logged on today to work on my makeup work. <br> A: True<br> B: False
Lelu [443]
True I don’t really know.
7 0
3 years ago
Read 2 more answers
A particle moving on a straight line has acceleration a = 5-3t, and its velocity is 7 at time t = 2. If s(t) is the distance fro
Vikki [24]

Given acceleration a = 5-3t, and its velocity is 7 at time t = 2, the value of s2 - s1 = 7

<h3>How to solve for the value of s2 - s1</h3>

We have

= \frac{dv}{dt} =v't = 5-3t\\\\\int\limits^a_b {v'(t)} \, dt

= \int\limits^a_b {(5-3t)} \, dt

5t - \frac{3t^2}{2} +c

v2 = 5x2 -  3x2 + c

= 10-6+c

= 4+c

s(t) = \frac{5t^2}{2} -\frac{t^3}{2} +3t + c

S2 - S1

=(5*\frac{4}{2} -\frac{8}{2} +3*2*c)-(\frac{5}{2} *1^2-\frac{1^2}{2} +3*1*c)

= 6 + 6+c - 2+3+c

12+c-5+c = 0

7 = c

Read more on acceleration here: brainly.com/question/605631

5 0
2 years ago
The greater the force applied to an object, the _____ the change in speed or direction of the object.
storchak [24]

Answer:

b

Explanation:

8 0
3 years ago
Other questions:
  • The following C program asks the user for two input null-terminated strings, each stored in uninitialized 100-byte buffer, and c
    6·1 answer
  • Technician A says that a magnetic field can be created by current flow. Technician B says that current can be induced by moving
    5·1 answer
  • An analog baseband audio signal with a bandwidth of 4kHz is transmitted through a transmission channel with additive white noise
    14·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
  • Depreciation is.... *
    7·2 answers
  • Following lockout/tagout (LOTO) procedures is important but not required when working with dangerous
    10·1 answer
  • For laminar flow of air over a flat plate that has a uniform surface temperature, the curve that most closely describes the vari
    15·1 answer
  • Sun of first 1 nayural numbers​
    7·2 answers
  • A system samples a sinusoid of frequency 230 Hz at a rate of 175 Hz and writes the sampled signal to its output without further
    9·1 answer
  • Describe the first case where the power of synthesis was used to solve design problems.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!