CS 3377 TEST 2 QUESTIONS WITH ANSWERS
100% CORRECT
[APUE01] The only two characters that cannot appear in a filename are the slash character (/)
and the ___ character.
escape
back-slash
slash
null
special - ANSWER null
[APUE01] Consider the following user-information entry when the system looks up and checks
at the time of log-in with the following user entry there. Which one of the choices is
correct?sar:x:205:105:Stephen.Rago:/home/sar:/bin/ksh
User ID is 105
User ID is 205
User ID is x
User ID is not shown here
User ID is encrypted and shown as x - ANSWER User ID is 205
[APUE01] Which of the following statements is not correct?
-Many conditions generate signals.
,-The interrupt key is generated with the DELETE key or Control-C
-The quit key, is often generate with Control-backslash, used to interrupt the currently
running process.
-One way to generate a signal is by calling the getpid function.
-One can call the kill function from a process to send a signal to another process. - ANSWER
-One way to generate a signal is by calling the getpid function.
[APUE01] When one logs in, the default directory is set to be one's ___ directory which is
obtained from our entry in the password file.
absolute
home
relative
root
working - ANSWER home
[APUE01] _____ is an enhanced version of the C shell. It borrows several features, such as
command completion, from the TENEX operating system (developed in 1972 at Bolt Beranek
and Newman). The TENEX C shell adds many features to the C shell and is often used as a
replacement for the C shell.
The Bourne shell
The C shell
The Korn shell
The Bourne-again shell
,The TENEX C shell - ANSWER The TENEX C shell
[APUE01] Consider the following user-information entry when the system looks up and checks
at the time of log-in with the following user entry there. Which one of the choices is
correct?sar:x:205:105:Stephen.Rago:/home/sar:/bin/ksh
Login user name is sar.
Login user name is x.
Login user name is Steven.Rago.
Login user name is /home/sar
Login user name is ksh - ANSWER Login user name is sar
[APUE01] Which of the following statements is not correct?
-The fork returns the non-negative process ID of the new child process to the parent process
-The fork returns 0 to the child process.
-Because fork creates a new process, we say that it is called once—by the parent—but returns
twice—in the parent and in the child.
-In the child process, one may call execlp to execute Unix or Linux command.
-The fork call replaces the child process with the new program file.
-The combination of fork followed by exec is called spawning a new process on some
operating systems. - ANSWER The fork call replaces the child process with the new program
file.
, [APUE01] Which of the following statements is not correct?
-In addition to the group ID specified in the password file for a login name, most versions of
the UNIX System restricts a user to belong to one group only.
-The practice of supplementary groups started with 4.2BSD to let a user to belong to many
other groups.
-The number of supplementary groups of a user ID is usually up to 16 additional groups.
-The supplementary group IDs are obtained at login time by reading the file /etc/group.
-POSIX requires that a system support at least 8 supplementary groups per process, but most
systems support at least 16. - ANSWER In addition to the group ID specified in the password
file for a login name, most versions of the UNIX System restricts a user to belong to one
group only.
[APUE01] In Unix, it is easy to measure the clock time, user time, and system time of any
process: simply execute the ___ command, with the argument for what we want to measure.
date
time
cputime
ps
pstime - ANSWER time
[APUE01] Which of the following statements is not correct?
-One entry in the password file specifies our numeric group ID.
-The group ID of each User ID is assigned by the system administrator when our login name is
100% CORRECT
[APUE01] The only two characters that cannot appear in a filename are the slash character (/)
and the ___ character.
escape
back-slash
slash
null
special - ANSWER null
[APUE01] Consider the following user-information entry when the system looks up and checks
at the time of log-in with the following user entry there. Which one of the choices is
correct?sar:x:205:105:Stephen.Rago:/home/sar:/bin/ksh
User ID is 105
User ID is 205
User ID is x
User ID is not shown here
User ID is encrypted and shown as x - ANSWER User ID is 205
[APUE01] Which of the following statements is not correct?
-Many conditions generate signals.
,-The interrupt key is generated with the DELETE key or Control-C
-The quit key, is often generate with Control-backslash, used to interrupt the currently
running process.
-One way to generate a signal is by calling the getpid function.
-One can call the kill function from a process to send a signal to another process. - ANSWER
-One way to generate a signal is by calling the getpid function.
[APUE01] When one logs in, the default directory is set to be one's ___ directory which is
obtained from our entry in the password file.
absolute
home
relative
root
working - ANSWER home
[APUE01] _____ is an enhanced version of the C shell. It borrows several features, such as
command completion, from the TENEX operating system (developed in 1972 at Bolt Beranek
and Newman). The TENEX C shell adds many features to the C shell and is often used as a
replacement for the C shell.
The Bourne shell
The C shell
The Korn shell
The Bourne-again shell
,The TENEX C shell - ANSWER The TENEX C shell
[APUE01] Consider the following user-information entry when the system looks up and checks
at the time of log-in with the following user entry there. Which one of the choices is
correct?sar:x:205:105:Stephen.Rago:/home/sar:/bin/ksh
Login user name is sar.
Login user name is x.
Login user name is Steven.Rago.
Login user name is /home/sar
Login user name is ksh - ANSWER Login user name is sar
[APUE01] Which of the following statements is not correct?
-The fork returns the non-negative process ID of the new child process to the parent process
-The fork returns 0 to the child process.
-Because fork creates a new process, we say that it is called once—by the parent—but returns
twice—in the parent and in the child.
-In the child process, one may call execlp to execute Unix or Linux command.
-The fork call replaces the child process with the new program file.
-The combination of fork followed by exec is called spawning a new process on some
operating systems. - ANSWER The fork call replaces the child process with the new program
file.
, [APUE01] Which of the following statements is not correct?
-In addition to the group ID specified in the password file for a login name, most versions of
the UNIX System restricts a user to belong to one group only.
-The practice of supplementary groups started with 4.2BSD to let a user to belong to many
other groups.
-The number of supplementary groups of a user ID is usually up to 16 additional groups.
-The supplementary group IDs are obtained at login time by reading the file /etc/group.
-POSIX requires that a system support at least 8 supplementary groups per process, but most
systems support at least 16. - ANSWER In addition to the group ID specified in the password
file for a login name, most versions of the UNIX System restricts a user to belong to one
group only.
[APUE01] In Unix, it is easy to measure the clock time, user time, and system time of any
process: simply execute the ___ command, with the argument for what we want to measure.
date
time
cputime
ps
pstime - ANSWER time
[APUE01] Which of the following statements is not correct?
-One entry in the password file specifies our numeric group ID.
-The group ID of each User ID is assigned by the system administrator when our login name is