• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/36

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

36 Cards in this Set

  • Front
  • Back

1. The ____ of a processcontains temporary data such as function parameters, return addresses, andlocal variables.


A) text section


B) data section


C) program counter


D) stack


Ans: D


Feedback: 3.1.1 Difficulty: Easy

Import Settings:2. A process control block ____.A) includes information on theprocess's state


B) stores the address of thenext instruction to be processed by a different process


C) determines which process isto be executed next


D) is an example of a processqueue


Ans: A


Feedback: 3.1.3 Difficulty: Easy

3. The list of processeswaiting for a particular I/O device is called a(n) ____.


A) standby queue


B) device queue


C) ready queue


D) interrupt queue


Ans: B


Feedback: 3.2.1 Difficulty: Easy

4. The _____________ refers tothe number of processes in memory.


A) process count


B) long-term scheduler


C) degree of multiprogramming


D) CPU scheduler

Ans: C


Feedback: 3.2.2 Difficulty: Easy

5. When a child process iscreated, which of the following is a possibility in terms of the execution oraddress space of the child process?


A) The child process runsconcurrently with the parent.


B) The child process has a newprogram loaded into it.


C) The child is a duplicate ofthe parent.


D) All of the above


Ans: D


Feedback: 3.3.1 Difficulty: Easy

6. A _________________ savesthe state of the currently running process and restores the state of the nextprocess to run.


A) save-and-restore


B) state switch


C) context switch


D) none of the above


Ans: C


Feedback: 3.2.3 Difficulty: Easy

7. A process may transition tothe Ready state by which of the following actions?


A) Completion of an I/O event


B)Awaiting its turn on the CPU


C) Newly-admitted process


D) All of the above

Ans: D


Feedback: 3.1.2 Difficulty: Easy

8. In a(n) ____ temporaryqueue, the sender must always block until the recipient receives the message.


A) zero capacity


B) variable capacity


C) bounded capacity


D) unbounded capacity


Ans: A


Feedback: 3.4.2 Difficulty:Easy 9. A blocking send

9. A blocking send()and blocking receive()is known as a(n) _________________


A) synchronized message


B) rendezvous


C) blocked message


D) asynchronous message


Ans: B


Feedback: 3.4.2.2 Difficulty:Easy

10 . Which of the following istrue in a Mach operating system?


A) All messages have the samepriority.


B) Multiple messages from thesame sender are guaranteed an absolute ordering.


C) The sending thread mustreturn immediately if a mailbox is full.


D) It is not designed fordistributed systems.


Ans: A


Feedback: 3.5.2 Difficulty: Moderate



11.When communicating with sockets, a client process initiates a request for aconnection and is assigned a port by the host computer. Which of the followingwould be a valid port assignment for the host computer?


A) 21


B) 23


C) 80


D) 1625


Ans: D


Feedback: 3.6.1 Difficulty: Moderate

12. A(n) ______________ allowsseveral unrelated processes to use the pipe for communication.


A) named pipe


B) anonymous pipe


C) LIFO


D) ordinary pipe


Ans: B


Feedback: 3.6.3.2 Difficulty: Moderate

13. Which of the followingstatements is true?


A) Shared memory is typicallyfaster than message passing.


B) Message passing is typicallyfaster than shared memory.


C) Message passing is mostuseful for exchanging large amounts of data.


D) Shared memory is far morecommon in operating systems than message passing.


Ans:A


Feedback: 3.4 Difficulty: Moderate

14. Imagine that a host with IPaddress 150.55.66.77 wishes to download a file from the web server at IPaddress 202.28.15.123. Select a valid socket pair for a connection between thispair of hosts.


A) 150.55.66.77:80 and202.28.15.123:80


B) 150.55.66.77:150 and202.28.15.123:80


C) 150.55.66.77:2000 and202.28.15.123:80


D) 150.55.66.77:80 and202.28.15.123:3500

Ans:C Feedback: 3.6.1 Difficulty: Moderate

15. Child processes inheritUNIX ordinary pipes from their parent process because:


A) The pipe is part of the codeand children inherit code from their parents.


B) A pipe is treated as a filedescriptor and child processes inherit open file descriptors from theirparents.


C) The STARTUPINFO structureestablishes this sharing.


D) All IPC facilities areshared between the parent and child processes.


Ans:B Feedback: 3.6.3.1 Difficulty: Moderate

16. Which of the followingstatements is true?


A) Named pipes do not allowbi-directional communication. B) Only the parent and childprocesses can use named pipes for communication. C) Reading and writing toordinary pipes on both UNIX and Windows systems can be performed like ordinaryfile I/O. D) Named pipes can only be usedby communicating processes on the same machine.


Ans: C


Feedback: 3.6.3 Difficulty: Moderate

17. Which of the following isnot a process type in the Chrome browser?


A) Plug-in


B) Renderer


C) Sandbox


D) Browser

Ans: C


Feedback: 3.4 Difficulty: Medium

18. The ________ application isthe application appearing on the display screen of a mobile device.


A) main


B) background


C) display


D) foreground


Ans: D


Feedback: 3.2.3 Difficulty: Easy

19. A process that hasterminated, but whose parent has not yet called wait(), is known as a ________process.


A) zombie


B) orphan


C) terminated


D) init


Ans: A


Feedback: 3.3.2 Difficulty: Medium

20. The _______ process isassigned as the parent to orphan processes.


A) zombie


B) init


C) main


D) renderer


Ans: B


Feedback: Difficulty: Medium Short Answer

True/False


35. All processes in UNIX firsttranslate to a zombie process upon termination.

Ans: True


Feedback: 3.3.2 Difficulty: Hard

36. The difference between aprogram and a process is that a program is an active entity while a process isa passive entity.


Ans: False


Feedback: 3.1.1 Difficulty: Easy

37. The exec()system call creates a new process.


Ans: False


Feedback: 3.3.1 Difficulty: Easy

38. All access to POSIX sharedmemory requires a system call.


Ans: False


Feedback: 3.5.1 Difficulty: Easy

39. Local Procedure Calls inWindows XP are similar to Remote Procedure Calls.

Ans: True


Feedback: 3.5.3 Difficulty: Easy

40. For a single-processorsystem, there will never be more than one process in the Running state.

Ans: True


Feedback: 3.1.2 Difficulty: Easy

41. Shared memory is a more appropriate IPC mechanism than message passing for distributed systems.

Ans: False


Feedback: 3.4.2 Difficulty: Easy

42. Ordinary pipes in UNIX require a parent-child relationship between the communicating processes.

Ans: True


Feedback: 3.6.3.1 Difficulty: Easy

43.Ordinary pipes in Windows require a parent-child relationship between thecommunicating processes.

Ans: True


Feedback: 3.6.3.1 Difficulty: Easy

44. Using a section object to pass messages over a connection port avoids data copying.

Ans: True Feedback: 3.5.3 Difficulty: Moderate

45. A socket is identified by an IP address concatenated with a port number.

Ans: True


Feedback: 3.6.1 Difficulty: Easy

46. Sockets are considered ahigh-level communications scheme.

Ans: False


Feedback: 3.6.1 Difficulty: Moderate

47. The Mach operating system treats system calls with message passing.

Ans: True


Feedback: 3.5.2 Difficulty: Moderate

48. Named pipes continue to exist in the system after the creating process has terminated.

Ans:True


Feedback: 3.6.3.2 Difficulty: Easy

49. A new browser process is create by the Chrome browser for every new website that is visited.

Ans: False


Feedback: 3.4 Difficulty: Medium

50. The iOS mobile operating system only supports a limited form of multitasking.

Ans: True


Feedback: 3.2.3 Difficulty: Medium