Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The original Unix operating system was created at Question 1 options: MIT AT&T B

ID: 3819737 • Letter: T

Question

The original Unix operating system was created at

Question 1 options:

MIT

AT&T Bell Labs

University of California, Berkeley

Google

Linux operating system source code is mostly written in

Question 2 options:

C

Python

Java

Machine code

A C program begins execution in the ___ function

Question 3 options:

init

start

begin

main

Library functions in Linux systems

Question 4 options:

are part of the virtual file system

act as an interface between user programs and the operating system to enable system calls

are part of interrupt handling routines

are part of process scheduling code within the operating system

When one function in a C program calls another function,

Question 5 options:

the process stack grows in size

the process stack reduces in size

the process stack size remains unchanged

the text segment of the process is updated

In Linux, when a process P1 issues the fork system call,

Question 6 options:

a child process of P1 is created and the child and the parent share nothing

a child process of P1 is created and the child is almost a clone of the parent

a child process of P1 is created and the child is the image of some utility program the user wants to execute

the process terminates immediately

Question 7: If a user enters the command

sort <myfile

at the bash shell prompt,

Question 7 options:

the shell replaces itself with the code of the sort program

the shell fetches the code of the sort program from disk and runs it

the shell forks a child process and the child process replaces itself with the code of the sort program

the shell terminates and the sort program takes over as the new shell

Which of the following commands redirects the input of an imaginary utility named newutil in Linux?

Question 8 options:

newutil

newutil >myfile

newutil <myfile

newutil 2>myfile

In Linux, which of the following commands runs a process p1 in the background?

Question 9 options:

p1 &

p1

p1 !

None of the above

The first three entries (0, 1, and 2) of the file descriptor table for any Linux process point to

Question 10 options:

standard error, standard output, and standard input, respectively

standard input, standard output, and standard error, respectively

standard error, standard input, and standard output, respectively

standard output, standard error, and standard input, respectively

1)

MIT

2)

AT&T Bell Labs

3)

University of California, Berkeley

4)

Google

Explanation / Answer

1. The original Unix operating system was created at

ans: AT and T bell labs

2. Linux operating system source code is mostly written in

opt: d. machine code

3. A C program begins execution in the ___ function

opt:4) main

4. library functions in linux system

opt : act as an interface between user programs and the operating system to enable system calls

5. When one function in a C program calls another function,

opt c: The process stack remains unchanged

6. In Linux, when a process P1 issues the fork system call,

option : b a child process of P1 is created and the child is almost a clone of the parent

7. If a user enters the command

sort <myfile

at the bash shell prompt,

c. the shell forks a child process and the child process replaces itself with the code of the sort program

8. Which of the following commands redirects the input of an imaginary utility named newutil in Linux?

ans: option 4: newutil 2>myfile

9. In Linux, which of the following commands runs a process p1 in the background?

ans: p1

10. The first three entries (0, 1, and 2) of the file descriptor table for any Linux process point to

ans: option 2. standard input, standard output, and standard error, respectively