exam questions

Exam 200-201 All Questions

View all questions & answers for the 200-201 exam

Exam 200-201 topic 1 question 181 discussion

Actual exam question from Cisco's 200-201
Question #: 181
Topic #: 1
[All 200-201 Questions]

A developer is working on a project using a Linux tool that enables writing processes to obtain these required results:
✑ If the process is unsuccessful, a negative value is returned.
✑ If the process is successful, 0 value is returned to the child process, and the process ID is sent to the parent process.
Which component results from this operation?

  • A. parent directory name of a file pathname
  • B. process spawn scheduled
  • C. macros for managing CPU sets
  • D. new process created by parent process
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
JohnBB
Highly Voted 2 years, 11 months ago
Probalby the correct answer is D: D. new process created by parent process
upvoted 15 times
...
drdecker100
Highly Voted 1 year, 3 months ago
Selected Answer: D
The Linux tool described in the question is most likely the fork() system call, which creates a new process by duplicating the calling process. When fork() is called, it returns a process ID (PID) to the parent process and a value of 0 to the child process. If an error occurs during the fork() call, a negative value is returned. Therefore, the operation described in the question results in a new process being created by the parent process, and the process ID being sent to the parent process. This is what the fork() system call does in Linux.
upvoted 6 times
...
Faio
Most Recent 7 months, 3 weeks ago
The answer is: D. new process created by parent process
upvoted 1 times
...
slippery31
12 months ago
Correct ANS=D
upvoted 1 times
...
Eng_ahmedyoussef
1 year, 7 months ago
Selected Answer: D
i think that D is the correct answer. ==> new process created by parent process
upvoted 1 times
...
surforlife
1 year, 10 months ago
"D" Does a child process return 0? Zero: Returned to the newly created child process. Positive value: Returned to parent or caller. The value contains process ID of newly created child process!
upvoted 1 times
...
omita
2 years, 4 months ago
Each unix process has two ID numbers assigned to it: The Process ID (pid) and the Parent process ID (ppid). Each user process in the system has a parent process. Most of the commands that you run have the shell as their parent. Check the ps -f example where this command listed both the process ID and the parent process ID.
upvoted 1 times
omita
2 years, 4 months ago
Answer D
upvoted 1 times
...
...
halamah
2 years, 6 months ago
d is correcxt
upvoted 2 times
...
alocin
2 years, 7 months ago
The spawn(8) daemon provides the Postfix equivalent of inetd. It listens on a port as specified in the Postfix master.cf file and spawns an external command whenever a connection is established. The connection can be made over local IPC (such as UNIX-domain sockets) or over non-local IPC (such as TCP sockets). The command's standard input, output and error streams are connected directly to the communication endpoint
upvoted 1 times
...
alocin
2 years, 7 months ago
There are two tasks with specially distinguished process IDs: swapper or sched has process ID 0 and is responsible for paging, and is actually part of the kernel rather than a normal user-mode process. Process ID 1 is usually the init process primarily responsible for starting and shutting down the system. Originally, process ID 1 was not specifically reserved for init by any technical measures: it simply had this ID as a natural consequence of being the first process invoked by the kernel. More recent Unix systems typically have additional kernel components visible as 'processes', in which case PID 1 is actively reserved for the init process to maintain consistency with older systems
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...