Question: i ) How many times printf statement will be executed if the following code snippet is executed successfully. int x = 3 ;while ( x

i) How many times "printf" statement will be executed if the following code snippet is executed successfully. int x=3;while (x>0){fork 0;printf("hello");wait (NULL) ;X--;}(ii) Consider the execution of the following commands in a shell on a Linux operating system.bash$ cat alphaMathematicsbash$ In alpha betabash$ rm alphabash$ cat >> beta << SAMEInformation TechnologySAMEbash$ cat betaWhat will be the output of last command? Give the complete output along with the execution flow.iti) A student wishes to create symbolic links in a computer system running Unix. Three text files named filel file2 file 3 that exists in her current working directory. Assume that filel contains information about her hobbies, file2 contains information about her friends and file3 contains information about her courses. The studentexecutes sequence of file linking commands such that the student lost her data on friends and hobbies. Give the command sequence with proper justification.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!