OS quiz 3

Is this your test? Login to manage it. If not, you can create a test just like it.

This is a non-interactive preview of the quiz content.

1.
1 point
The correct seqeuence of procedures that a software programmer uses to create computer programs is
2.
1 point
Use the output of the following commands to answer the question below.
[student@station student]$ tail /etc/passwd
sleepy:x:507:507::/home/sleepy:/bin/bash
grumpy:x:509:509::/home/grumpy:/bin/bash
doc:x:510:510::/home/doc:/bin/bash
ventura:x:511:511::/home/ventura:/bin/bash
hogan:x:512:512::/home/hogan:/bin/bash
pataki:x:513:513::/home/pataki:/bin/bash
einstein:x:514:514::/home/einstein:/bin/bash
maxwell:x:515:515::/home/maxwell:/bin/bash
nero:x:516:516::/home/nero:/bin/bash
julius:x:517:517::/home/julius:/bin/bash
[student@station student]$ cat /etc/group
...
wrestle:x:201:ventura,hogan,elvis
physics:x:202:einstein,maxwell,elvis
emperors:x:203:nero,julius,elvis
governor:x:204:ventura,pataki
music:x:205:elvis,blondie,prince,madonna
dwarfs:x:206:sleepy,grumpy,doc
...
hogan:x:512:
pataki:x:513:
einstein:x:514:
maxwell:x:515:
nero:x:516:
julius:x:517:

Which group DOES contain the user ventura as a member?
3.
1 point
Under which of the four application scenarios below are threads not useful?
4.
1 point
Which of the following statements most accurately describes a process that is currently in the waiting (blocked) state?
5.
1 point
Which one of the following statements does not describe kernel threads in a typical operating system.
6.
1 point
Which of the statements below is not true regarding scheduling in batch systems?
7.
1 point
All the information about each process is stored in an operating system structure called the __________.
8.
1 point
The operating system has just loaded five processes, A, B, C, D, and E for execution. They have estimated running times of 1, 7, 3, 5 and 2 minutes. Their (externally determined) priorities are 3, 5, 2, 1 and 4, respectively, with 5 being the highest priority. If shortest job first (SJF) scheduling is used and a process is run until it finishes, what is the order that the scheduler will schedule the processes to run?
9.
1 point
Use the output of the following command to answer the following question.
[elvis@station elvis]$ ls -l
total 4
-rw------- 1 elvis elvis 138 May 8 16:15 diary.txt
Which of the following commands would result in diary.txt having permissions of rw-r--r--?
10.
1 point
Which of the following statements is not true about a program?
11.
1 point
Which of the following items is shared by all threads running in a process?
12.
1 point
Maximizing throughput, reducing turnaround time and increasing CPU utilization are scheduling goals for __________.
13.
1 point
Which of the following best explains why someone would want the file sample.sh to have permissions of rwxrwxr-x?
14.
1 point
Which permission represents the octal notation 701?
15.
1 point
A process that spends 80% of its time doing I/O wait is a __________ process.
16.
1 point
The input to a compiler such as Visual Basic or Visual C++ is one or more __________ files.
17.
1 point
Use the output of the following commands to answer the question below.
[student@station student]$ tail /etc/passwd
sleepy:x:507:507::/home/sleepy:/bin/bash
grumpy:x:509:509::/home/grumpy:/bin/bash
doc:x:510:510::/home/doc:/bin/bash
ventura:x:511:511::/home/ventura:/bin/bash
hogan:x:512:512::/home/hogan:/bin/bash
pataki:x:513:513::/home/pataki:/bin/bash
einstein:x:514:514::/home/einstein:/bin/bash
maxwell:x:515:515::/home/maxwell:/bin/bash
nero:x:516:516::/home/nero:/bin/bash
julius:x:517:517::/home/julius:/bin/bash
[student@station student]$ cat /etc/group
...
wrestle:x:201:ventura,hogan,elvis
physics:x:202:einstein,maxwell,elvis
emperors:x:203:nero,julius,elvis
governor:x:204:ventura,pataki
music:x:205:elvis,blondie,prince,madonna
dwarfs:x:206:sleepy,grumpy,doc
...
hogan:x:512:
pataki:x:513:
einstein:x:514:
maxwell:x:515:
nero:x:516:
julius:x:517:

Which of the following best explains why the group einstein has no members listed in the /etc/group file?
18.
1 point
A __________ scheduling algorithm picks a process and lets it run for a maximum of some fixed time. If it is still running at the end of time interval, it is suspended and the scheduler picks another process to run (if one is available).
19.
1 point
The operating system has just loaded five processes, A, B, C, D, and E for execution. The first process in the queue is A, followed by B, C, D and finally with E at the end of the queue. The processes have estimated running times of 1, 7, 3, 5 and 2 minutes. If non-preemptive first-come, first-served (FCFS) scheduling is used, what is the order that the scheduler will schedule the processes to run?
20.
1 point
Which file(s) must be consulted to determine the group name of a user's primary group?
21.
1 point
Which of the following statements is not true about a process?
22.
1 point
Which of the following commands could be used to start a new shell with the primary group music?
23.
1 point
If a process had a umask of 077, what would be the default permissions for newly created directories?
24.
1 point
Which of the following commands, along with root's password, would allow a user to start a shell as root?
25.
1 point
The specific technique or method which an operating system uses to decide which process gets to use the CPU is called the __________.
26.
1 point
Which of the following statements below is not true about a thread?
27.
1 point
Which of the following statements below is not true about a thread?
28.
1 point
Which of the following commands is used to change the group owner of a file?
29.
1 point
Which of the following best describes why the /etc/passwd file is inappropriately named?
30.
1 point
Use the output from the following command to answer the following question.
[student@station grps]$ ls -l
total 16
-rw-rw---- 1 ventura wrestle 2027 May 9 07:38 antics
-rw------- 1 ventura ventura 126 May 9 07:40 donors
-rw-rw-r-- 1 madonna madonna 138 May 9 07:38 playlist
-rw-rw-r-- 1 ventura wrestle 29 May 9 07:38 slogans
The user ventura wants members of the group wrestle to be able to read his slogans, and everyone else to have no access to the file. What steps must he perform?
31.
1 point
Use the output of the following commands to answer the question below.
[student@station student]$ tail /etc/passwd
sleepy:x:507:507::/home/sleepy:/bin/bash
grumpy:x:509:509::/home/grumpy:/bin/bash
doc:x:510:510::/home/doc:/bin/bash
ventura:x:511:511::/home/ventura:/bin/bash
hogan:x:512:512::/home/hogan:/bin/bash
pataki:x:513:513::/home/pataki:/bin/bash
einstein:x:514:514::/home/einstein:/bin/bash
maxwell:x:515:515::/home/maxwell:/bin/bash
nero:x:516:516::/home/nero:/bin/bash
julius:x:517:517::/home/julius:/bin/bash
[student@station student]$ cat /etc/group
...
wrestle:x:201:ventura,hogan,elvis
physics:x:202:einstein,maxwell,elvis
emperors:x:203:nero,julius,elvis
governor:x:204:ventura,pataki
music:x:205:elvis,blondie,prince,madonna
dwarfs:x:206:sleepy,grumpy,doc
...
hogan:x:512:
pataki:x:513:
einstein:x:514:
maxwell:x:515:
nero:x:516:
julius:x:517:

What is the name of the user ventura's primary group?
32.
1 point
Use the output from the following command to answer the following question.
[student@station grps]$ ls -l
total 16
-rw-rw---- 1 ventura wrestle 2027 May 9 07:38 antics
-rw------- 1 ventura ventura 126 May 9 07:40 donors
-rw-rw-r-- 1 madonna madonna 138 May 9 07:38 playlist
-rw-rw-r-- 1 ventura wrestle 29 May 9 07:38 slogans
Which users on the system can modify the permissions on the file slogans?
33.
1 point
Meeting deadlines and having predictable performance are scheduling goals for __________.
34.
1 point
Which of the following would be the most reasonable permissions for a directory that members of only a particularly group should have access to?
35.
1 point
Which of the following information is not associated with a uid in the user information database?
36.
1 point
Which of the following would be the most reasonable permissions for a file that all users can read, but only the owner can write?
37.
1 point
Which of the following is true about the file /etc/shadow?
38.
1 point
Use the output from the following command to answer the following question.
[student@station grps]$ ls -l
total 16
-rw-rw---- 1 ventura wrestle 2027 May 9 07:38 antics
-rw------- 1 ventura ventura 126 May 9 07:40 donors
-rw-rw-r-- 1 madonna madonna 138 May 9 07:38 playlist
-rw-rw-r-- 1 ventura wrestle 29 May 9 07:38 slogans
The user madonna wants members of the group music to be able to read and modify her playlist, and everyone else to only be able to read it. What steps must she perform?
39.
1 point
Which of the following items is shared by all threads running in a process?