In the IPv4 Header format following information is given in decimal number system, with
respect to the given information calculate the header checksum value. (10)
VER=4
HLEN =6
Service type=9
Total length=26
Identification=2
Flag=3
Fragmentation offset=0
Time to live=5
Protocol=12
Source IP Address=11.13.12.6
Destination IP Address=10.6.8.11
The lifetimes of light bulbs produced by a particular manufacturer have a mean of 1,200 hours and a standard deviation of 400 hours. The population distribution is normal. Suppose that you purchase nine bulbs, which can be regarded as a random sample from the manufacturer’s output
a. What is the mean of the sample mean life? (2 marks)
b. What is the variance of the sample mean? (2 marks)
c. What is the standard error of the sample mean? (2 marks)
d. What is the probability that, on average, those nine light bulbs have lives of fewer than 1,050 hours? (4 marks)
Write a program that receives one command-line argument: the name
of a text file. Your program will work as follows:
Start out by creating a child process.
The child process calls exec to run cat command with command-line argument that
the parent received.
The parent process calls wait so that it blocks until the child terminates and passes
back its termination status.
If the child process terminates without error, the parent spawns another child and,
again, calls wait so that it can block until the child terminates.
The new child calls exec again, but this it runs wc command on the same
the argument that the parent received from the command line.
Once the parent learns that the child has been terminated, it goes on to terminate also. If
the parent gets to this point, it’s because all has gone well.
verify stoke’s theorem when f = x ^ 2 i + y ^2 j + z ^ 2k ,s is the upper hemisphere
z =√( a ^2 − x ^2 − y ^2)
How many number of processes will be created in the following
program? Prove your answer by making a replica code that will count no
of processes created.
int main()
{
fork()
fork()
fork()
fork()
}
Develop a stopwatch with a lap counter and a total time calculator. The
program will create two processes and they will start calculating time.
One process will be used to calculate total time and the other will calculate
lap time. The total time calculator process will keep on calculating time.
In the lap time, the calculator process when it reaches lap time limit, the
process will display lap number and set its counter to zero and start
calculating again. Take input of lap time and the number of laps from the user
and start the program. In the end, display the total time from the total time
calculator process.
Determine whether 𝐹 is conservative vector field. If so, find a potential
function for it is
f(x,y,z)=x^yi+5xy^2j
Write a program that takes a string from the user and you have to do
following tasks with the string:
1. Reverse
2. Find Length
3. Sort
You have to create a child of child’s as given below process tree for each task and
each child exec with the image of the program of a particular task. Print the string after
each operation.
P->C->C->C->C->C
Explain the reasons an investor would prefer investing in equity securities as opposed to fixed income securities. [10 marks]
Consider the following equation:
Ca(OH)2(s) + 2 HCl(aq) —> CaCl2(aq) + 2 H2O(l)
a) How many liters of 0.100 M HCl is required to completely react with 5.00 grams of calcium hydroxide?
b) If 15.0 grams of calcium hydroxide is combined with 75.0 mL of 0.500 M HCl, how many grams of calcium chloride
would be formed?