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
The aluminum rod (E1 = 68 GPa) is reinforced with the firmly bonded steel tube (E2 = 201 GPa). The diameter of the aluminum rod
Vsevolod [243]

Answer:

Explanation:

From the information given:

E_1 = 68 \ GPa \\ \\ E_2 = 201 \ GPa  \\ \\ d = 25 \ mm \  \\ \\ D = 45 \ mm \ \\ \\ L   = 761 \ mm  \\ \\ P = -88 kN

The total load is distributed across both the rod and tube:

P = P_1+P_2 --- (1)

Since this is a composite column; the elongation of both aluminum rod & steel tube is equal.

\delta_1=\delta_2

\dfrac{P_1L}{A_1E_1}= \dfrac{P_2L}{A_2E_2}

\dfrac{P_1 \times 0.761}{(\dfrac{\pi}{4}\times .0025^2 ) \times 68\times 10^4}= \dfrac{P_2\times 0.761}{(\dfrac{\pi}{4}\times (0.045^2-0.025^2))\times 201 \times 10^9}

P_1(2.27984775\times 10^{-8}) = P_2(3.44326686\times 10^{-9})

P_2 = \dfrac{ (2.27984775\times 10^{-8}) P_1}{(3.44326686\times 10^{-9})}

P_2 = 6.6212 \ P_1

Replace P_2 into equation (1)

P= P_1 + 6.6212 \ P_1\\ \\ P= 7.6212\ P_1 \\ \\  -88 = 7.6212 \ P_1  \\ \\ P_1 = \dfrac{-88}{7.6212} \\ \\  P_1 = -11.547 \ kN

Finally, to determine the normal stress in aluminum rod:

\sigma _1 = \dfrac{P_1}{A_1} \\ \\  \sigma _1 = \dfrac{-11.547 \times 10^3}{\dfrac{\pi}{4} \times 25^2}

\sigma_1 = - 23.523 \ MPa}

Thus, the normal stress = 23.523 MPa in compression.

8 0
3 years ago
Bore = 3"
Grace [21]
I need help my self lol XD
5 0
3 years ago
Read 2 more answers
What are some quality assurance systems
Aloiza [94]
Examples of quality assurance activities include process checklists, process standards, process documentation and project audit. Examples of quality control activities include inspection, deliverable peer reviews and the software testing process. You may like to read more about the quality assurance vs quality control.
7 0
3 years ago
Which of the following requirement statements is an example of a breakdown of the accuracy standard?
const2013 [10]

Answer:

<u>The automobile rental prices shall show all taxes (including a 6% state tax).</u>

Explanation:

Im pretty sure

4 0
3 years ago
Fibonacci sequence has many applications in Computer Science. Write a program to generate Fibonacci numbers as many as desired.
VikaD [51]

Answer:

The Python Code for Fibonacci Sequence is :

# Function for nth Fibonacci number  

def Fibonacci(n):  

if n<0:  

 print("Incorrect input")  

# First Fibonacci number is 0  

elif n==0:  

 return 0

# Second Fibonacci number is 1  

elif n==1:  

 return 1

else:  

 return Fibonacci(n-1)+Fibonacci(n-2)  

# Driver Program  

print(Fibonacci(9))  

Explanation:

The Fibonacci numbers are the numbers in the following integer sequence.

0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, ……..

In mathematical terms, the sequence Fn of Fibonacci numbers is defined by the recurrence relation

Fn = Fn-1 + Fn-2

with seed values

F0 = 0 and F1 = 1.

8 0
3 years ago
Read 2 more answers
Other questions:
  • A cast-iron tube is used to support a compressive load. Knowing that E 5 10 3 106 psi and that the maximum allowable change in l
    11·1 answer
  • In your opinion, what is the external opportunity cost of a successful biking company in a community
    7·1 answer
  • The iron-blade plow allowed humans to increase food production during<br> what age?
    8·1 answer
  • Consider the cascade of the three LTI systems having impulse responses: h-1(t) = e^-tu(t + 3) h_2(t) = rect((1 -1)/2) h_3(t) = d
    8·1 answer
  • What is the difference between a Datum and a Datum Feature? a) A Datum and Datum Feature are synonymous. b) A Datum is theoretic
    14·1 answer
  • james wants to qualify for icp are and licensure. Which degree would be required in order to qualify for a two year master of ar
    15·1 answer
  • Using your knowledge of how an ATM is used, develop a set of use cases that could serve as a basis for understanding the require
    15·1 answer
  • Explain how you would solve for total resistance in a parallel circuit versus a series circuit. How would you apply and solve fo
    10·1 answer
  • At the beginning of last year, tarind corporation budgeted $1,000,000 of fixed manufacturing overhead and chose a denominator le
    7·1 answer
  • (i) what assumptions about the relationship between the inputs and output are inherent in this specification? do scatter plots s
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!