CSCE 3600 EXAM 1 REVIEW QUESTIONS & ANSWERS
The directory is a type of file? TRUE/FALSE? - Answers - TRUE
_________ Linux command is used to count the total number of lines, words, and
characters contained in a file. - Answers - wc
Which Linux command is used to go back from a directory to the directory before that?
A) chdir
B) cd
C) cd/
D) cd.. - Answers - D) cd..
How many types of basic permissions are available in Linux to grant a user? - Answers
- 3. Read(r), Write(w), Execute(x)
In a multiuser multitasking Linux operating system, what does "multitasking" refer to?
A) The ability of the operating system to support multiple users accessing the system
simultaneously.
B) The practice of allowing users to customize their desktop environments and
appearance.
C) The process of managing and allocating hardware resources to different users.
D) The capability of the operating system to run multiple programs concurrently on a
single processor. - Answers - D) The capability of the operating system to run multiple
programs concurrently on a single processor.
What is the output shown for a type echo command?
A) echo: command not found
B) Type: /usr/bin/echo
C) echo is a shell built-in
D) /bin/echo
E) /usr/bin/echo - Answers - C) echo is a shell built-in
After issuing the command (chmod go+rx apple.c), which of the following file
permissions is possible for the ordinary file apple.c?
Hint: g stands for group and o stands for others
A) -rw-r--r--
B) -rwxr-xr-x
C) -rw-r-xr--
D) -rwxr--r--
E) -rwxr-xr-- - Answers - B) -rwxr-xr-x
In a system call, the user has super-privileges whereas the kernel has no privilege.
TRUE/FALSE? - Answers - FALSE
, When a process running in user mode makes a system call to ( open() ) to access a file,
what accurately represents the role of kernel and user mode?
A) The open() system call is executed entirely in user mode; the kernel is not involved.
B)The open() system call switches the process to kernel mode, which accesses the file
on behalf of the process
C) The open() system call switches the process to kernel mode, and the kernel then
switches the process back to user mode
D) The open() system call remains in user mode but cooperates with the kernel to
access the file. - Answers - B) The open() system call switches the process to kernel
mode, which accesses the file on behalf of the process
_____________ primarily provides a text-based interface through which users can
execute commands, manage files, and perform various system tasks in the Linux OS. It
allows users to control and manage the system using text-based commands and
scripting.
A) shell
B) GUI
C) kernel
D) API - Answers - A) shell
You need to list all files and directories in the current directory, including hidden ones.
Which linux command would you use?
A) list -h
B) ls -l
C) ls -a
D) dir -a - Answers - C) ls -a
You need to copy a file named "report.txt" to a directory named "backup". How would
you do that? Choose the right command.
A) copy report.txt backup
B) mv report.txt backup
C) cp report.txt backup
D) move report.txt backup - Answers - C) cp report.txt backup
Device drivers in an operating system are responsible only for providing hardware-
specific functionalities and have no role in managing the communication between
software applications and hardware devices. TRUE/FALSE? - Answers - FALSE
What is a fundamental difference between the C standard library functions and system
calls in a Unix-like operating system?
A) C standard library functions provide low-level access to hardware devices, while
system calls are used for memory allocation.
B) C standard library functions are used for programming applications, while system
calls are used for kernel development
The directory is a type of file? TRUE/FALSE? - Answers - TRUE
_________ Linux command is used to count the total number of lines, words, and
characters contained in a file. - Answers - wc
Which Linux command is used to go back from a directory to the directory before that?
A) chdir
B) cd
C) cd/
D) cd.. - Answers - D) cd..
How many types of basic permissions are available in Linux to grant a user? - Answers
- 3. Read(r), Write(w), Execute(x)
In a multiuser multitasking Linux operating system, what does "multitasking" refer to?
A) The ability of the operating system to support multiple users accessing the system
simultaneously.
B) The practice of allowing users to customize their desktop environments and
appearance.
C) The process of managing and allocating hardware resources to different users.
D) The capability of the operating system to run multiple programs concurrently on a
single processor. - Answers - D) The capability of the operating system to run multiple
programs concurrently on a single processor.
What is the output shown for a type echo command?
A) echo: command not found
B) Type: /usr/bin/echo
C) echo is a shell built-in
D) /bin/echo
E) /usr/bin/echo - Answers - C) echo is a shell built-in
After issuing the command (chmod go+rx apple.c), which of the following file
permissions is possible for the ordinary file apple.c?
Hint: g stands for group and o stands for others
A) -rw-r--r--
B) -rwxr-xr-x
C) -rw-r-xr--
D) -rwxr--r--
E) -rwxr-xr-- - Answers - B) -rwxr-xr-x
In a system call, the user has super-privileges whereas the kernel has no privilege.
TRUE/FALSE? - Answers - FALSE
, When a process running in user mode makes a system call to ( open() ) to access a file,
what accurately represents the role of kernel and user mode?
A) The open() system call is executed entirely in user mode; the kernel is not involved.
B)The open() system call switches the process to kernel mode, which accesses the file
on behalf of the process
C) The open() system call switches the process to kernel mode, and the kernel then
switches the process back to user mode
D) The open() system call remains in user mode but cooperates with the kernel to
access the file. - Answers - B) The open() system call switches the process to kernel
mode, which accesses the file on behalf of the process
_____________ primarily provides a text-based interface through which users can
execute commands, manage files, and perform various system tasks in the Linux OS. It
allows users to control and manage the system using text-based commands and
scripting.
A) shell
B) GUI
C) kernel
D) API - Answers - A) shell
You need to list all files and directories in the current directory, including hidden ones.
Which linux command would you use?
A) list -h
B) ls -l
C) ls -a
D) dir -a - Answers - C) ls -a
You need to copy a file named "report.txt" to a directory named "backup". How would
you do that? Choose the right command.
A) copy report.txt backup
B) mv report.txt backup
C) cp report.txt backup
D) move report.txt backup - Answers - C) cp report.txt backup
Device drivers in an operating system are responsible only for providing hardware-
specific functionalities and have no role in managing the communication between
software applications and hardware devices. TRUE/FALSE? - Answers - FALSE
What is a fundamental difference between the C standard library functions and system
calls in a Unix-like operating system?
A) C standard library functions provide low-level access to hardware devices, while
system calls are used for memory allocation.
B) C standard library functions are used for programming applications, while system
calls are used for kernel development