PROGRAMMING) EXAM 1 QUESTIONS
AND ANSWERS 100% CORRECT
applications interact with the kernel through system calls - ANSWER-true
the dual mode operations of an operating system are the ______________ mode and
the ____________ mode - ANSWER-user; kernel
logical OS structure - ANSWER-refer to ppt
Linux is a ___________ and ___________ operating system. - ANSWER-multiuser;
multitasking
linux allows users to run ________________, manage ________________, and
_______________ with other systems - ANSWER-applications; resources;
communicate
linux has a very Unix-like feel, but is a _________ and __________________ OS -
ANSWER-free; open source
linux distributions - ANSWER-- linux kernel
- basic software and utilities
- software package manager
- Debian
- Fedora
- Gentoo
- Kali
what components make up the Linux OS - ANSWER-- kernel
- shell
- applications
what is kernel as part of the composition of Linux OS - ANSWER-- central part
- provides direct interface to hardware and applications
- management of resources
*files, processes, devices, memory, network, etc*
what is shell as part of the composition of Linux OS - ANSWER-- command interpreter
provides interface between user and OS
- allows user to interact with Linux OS by reading, pre-processing, and executing
commands
, the ________________ _________________ _________________ allows user
commands and applications indirect access to systems resources and services through
system calls - ANSWER-application programming interface (API)
_______________ is the standard C library in Linux - ANSWER-GNU C (glibc) library
system calls provide the interface between a ___________________ and the
___________________ - ANSWER-running program; operating system
three general methods used to pass parameters between a running program and
operating system - ANSWER-- pass parameters in registers
- store the parameters in a table in memory, and the table address is passed as a
parameter in a register
- push (store) the parameters onto the stack by the program and pop off the stack by
the operating system
what mode is the system call in when it is the supervisor or protected execution, and
executes with full access to all physical resources of the computer - ANSWER-kernel
mode
what mode is the system call in when normal programs are executed - ANSWER-user
mode
aspects of a function call - ANSWER-- caller and callee are in the same process
- same user
- same "domain of trust"
aspects of a system call - ANSWER-- OS is trusted; user is not
- OS has super-privileges; user does not
- must take measures to prevent abuse
system call structure - ANSWER-refer to ppt
system calls are primarily used to - ANSWER-- manage the file system
- control processes
- provide communication
when system call causes an error - ANSWER-- returns -1
- stores error number in variable called "errno" given in header file called
/usr/include/errno.h
- then calls to perror() displays argument string, colon, and actual error message
system call examples - ANSWER-refer to ppt