1. Home
  2. Explore
  3. Computer Science
  4. UNIX and Network Administration

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

UNIX and Network Administration

  • 62Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Course Foundations

What is the main subject of this course?

62 questions

  1. 1

    What is the main subject of this course?

    Model answer

    The course introduces the basics of UNIX and network administration, with emphasis on information security.

    Explanation

    It focuses on system software, operating systems, and networks as foundations for studying security at higher layers.

  2. 2

    How does this course relate to higher-level information security courses?

    Model answer

    It provides the foundation for later courses that address security above the operating-system level, including applications.

    Explanation

    Understanding UNIX, operating systems, and networks is necessary before studying security in higher software layers.

  3. 3

    What programming background is assumed for the course?

    Model answer

    Students are expected to have basic exposure to a programming language.

    Explanation

    The course includes programming assignments, so familiarity with basic programming concepts is assumed.

  4. 4

    What are the three perspectives from which a computer system can be viewed?

    Model answer

    The three perspectives are the end-user view, the application-programmer view, and the operating-system-programmer view.

    Explanation

    Each perspective focuses on a different relationship with software, system services, and hardware.

  5. 5

    What does an end user typically do?

    Model answer

    An end user uses the functions provided by application software without needing to know how the software or system works internally.

    Explanation

    For example, a user may edit, save, print, or send a file using a word processor.

  6. 6

    What is the main concern of an application programmer?

    Model answer

    An application programmer develops applications using the features and services provided by system software.

    Explanation

    The application programmer is concerned with what the system can provide, rather than with directly controlling hardware.

  7. 7

    What is the main concern of an operating-system or system programmer?

    Model answer

    A system programmer develops system software and must understand how to use hardware resources such as disks, printers, and input devices.

    Explanation

    The system programmer works closer to the hardware than an application programmer does.

  8. 8

    How do the three programmer and user perspectives form a hierarchy?

    Model answer

    The end user uses an application, the application programmer builds that application using system software, and the system programmer develops system software that manages hardware.

    Explanation

    Each higher layer depends on services supplied by the layer below it.

  9. 9

    What is system software?

    Model answer

    System software is software that provides services and facilities used by application programs and manages or supports the use of computer resources.

    Explanation

    Examples include libraries, operating systems, database systems, device drivers, and resource-management software.

  10. 10

    Why are C library functions considered examples of system software?

    Model answer

    They are prebuilt software facilities that applications can use to perform common functions without implementing those functions themselves.

    Explanation

    Header files such as standard input/output and string libraries provide access to these predefined functions.

  11. 11

    What role does malloc provide to a C application?

    Model answer

    malloc requests memory dynamically from the operating system while a program is executing.

    Explanation

    Dynamic memory allocation allows an application to obtain memory when it needs it.

  12. 12

    Why can application programmers use functions such as printf, scanf, fopen, and fclose without implementing hardware operations themselves?

    Model answer

    These functions rely on lower-level system software and operating-system services that handle the underlying hardware operations.

    Explanation

    The application requests a service, while system software communicates with devices such as displays and disks.

  13. 13

    Why are libraries useful when writing an application such as a simple output program?

    Model answer

    Libraries provide complex, already-implemented functions, allowing programmers to use operations such as formatted output without developing them from scratch.

    Explanation

    A function such as printf hides substantial implementation complexity from the application programmer.

  14. 14

    How can a database management system be classified in relation to system software?

    Model answer

    A database management system can be classified as system software because it provides services for storing and managing application data.

    Explanation

    A database system may store information such as user credentials for a web application.

  15. 15

    Why are device drivers considered system software?

    Model answer

    Device drivers provide the software support needed to manage and communicate with hardware resources.

    Explanation

    They help the operating system and applications use devices such as printers, disks, and displays.

  16. 16

    What is an application programming interface, or API?

    Model answer

    An API is an interface through which application programmers access services provided by system software.

    Explanation

    It allows applications to request functions without needing to know the internal implementation of those services.

  17. 17

    Why is an operating system not simply equivalent to a collection of library functions?

    Model answer

    An operating system does more than provide callable functions; it manages hardware resources, controls program execution, and mediates between applications and hardware.

    Explanation

    Although both are software, the operating system has broader control and management responsibilities.

  18. 18

    What are the four layers in the basic view of a computer system?

    Model answer

    From lowest to highest, they are computer hardware, the operating system, system and application programs, and end users.

    Explanation

    Each layer uses services provided by the layer beneath it.

  19. 19

    What is the relationship between hardware and software in a computer system?

    Model answer

    Hardware provides resources and interfaces, while software uses those resources to execute programs and provide services.

    Explanation

    The operating system forms an important interface between software and hardware.

  20. 20

    What is the function of the kernel?

    Model answer

    The kernel is the trusted core of the operating system that abstracts hardware resources and provides controlled interfaces to higher software layers.

    Explanation

    Because of the kernel, higher-level programmers do not need to manage hardware directly.

  21. 21

    How does the operating system abstract hardware from application software?

    Model answer

    It presents general services such as printing, file access, and memory allocation, hiding the specific hardware used to perform them.

    Explanation

    An application can use a display or disk without depending on the device's manufacturer or detailed implementation.

  22. 22

    Why does hardware abstraction make application development more convenient?

    Model answer

    It allows programmers to request standard services without learning the details of every underlying hardware device.

    Explanation

    For example, an application can print using a standard service regardless of which monitor or printer is installed.

  23. 23

    What is the role of the operating system in the system-software layers?

    Model answer

    The operating system manages hardware resources and supplies abstractions and services to system software and application programs.

    Explanation

    It lies between hardware and higher-level software, connecting the two through defined interfaces.

  24. 24

    How does an application request a service from the operating system?

    Model answer

    It uses an operating-system interface, such as a library function or API, to request a service like memory allocation or file access.

    Explanation

    The operating system then performs or coordinates the requested operation on the application's behalf.

  25. 25

    Describe how a request to print data is processed through the system layers.

    Model answer

    The application requests printing, the operating system translates the request into hardware-level instructions, and a device driver communicates with the display or printer.

    Explanation

    The hardware performs the operation, while the operating system hides the device-specific details from the application.

  26. 26

    Describe the flow of a request to read data from a disk.

    Model answer

    An application requests data, the operating system issues the necessary hardware instructions, receives the data from the disk, and returns it to the application.

    Explanation

    The operating system acts as the intermediary between the application request and the hardware response.

  27. 27

    What is a service response from the operating system?

    Model answer

    It is the result returned by the operating system after processing an application's request, such as allocated memory, read data, or an operation status.

    Explanation

    For example, a memory request may return a pointer to the allocated memory.

  28. 28

    Why is there no universally accepted definition of an operating system?

    Model answer

    Operating systems must support many users, applications, hardware devices, and hardware configurations, so their scope and responsibilities vary.

    Explanation

    The wide variety of software and hardware makes a single definition difficult to apply universally.

  29. 29

    What is an operating system in relation to users and hardware?

    Model answer

    An operating system is a program or collection of system components that mediates between users, application software, and computer hardware.

    Explanation

    It provides services to applications while controlling and managing the underlying hardware.

  30. 30

    What is the distinction between the kernel and the complete operating system?

    Model answer

    The kernel is the core part of the operating system that runs continuously and manages essential resources; the complete operating system also includes system programs and interfaces.

    Explanation

    System and application programs operate above the kernel and help connect the operating system to users and applications.

  31. 31

    What are the primary goals of an operating system?

    Model answer

    Its goals are to provide convenience, ensure efficient operation, and facilitate the execution of application programs.

    Explanation

    The operating system simplifies use of the computer while coordinating resources effectively.

  32. 32

    Why is an operating system important for information security?

    Model answer

    It abstracts and controls hardware, coordinates resource use, and isolates programs so that errors or misuse in one program do not improperly affect others.

    Explanation

    These control and isolation functions are especially important in multiuser and networked systems.

  33. 33

    What is a batch-processing operating system?

    Model answer

    It processes jobs in batches, often without requiring continuous interaction from the user while the jobs execute.

    Explanation

    Mainframe computers historically used this approach, with jobs submitted and results collected later.

  34. 34

    What is a single-user, single-task operating system?

    Model answer

    It is designed for one user to perform one task at a time.

    Explanation

    Its organization limits both the number of simultaneous users and the number of active tasks.

  35. 35

    What is a single-user multitasking operating system?

    Model answer

    It supports one user while allowing several programs to be active or operated concurrently.

    Explanation

    Conventional desktop systems such as Linux or Windows illustrate this kind of user experience.

  36. 36

    What is a multiuser operating system?

    Model answer

    It allows many users to use computer resources simultaneously.

    Explanation

    UNIX and Linux servers, including mail servers, are examples where many users can log in and run programs.

  37. 37

    How is a multiuser operating system different from a single-user operating system that supports networking?

    Model answer

    A multiuser operating system supports multiple users directly on the system, whereas a single-user system may connect or provide services to many networked users while still having only one local system user.

    Explanation

    The ability to support networked users does not by itself make an operating system truly multiuser.

  38. 38

    Why might an operating system's user classification have security implications?

    Model answer

    The classification determines how many users and processes may share resources, which affects access control, isolation, and possible interference between users.

    Explanation

    A shared mail server requires stronger separation among users than a personal desktop system.

  39. 39

    What is a real-time operating system?

    Model answer

    A real-time operating system must produce a correct result within a specified time limit, not merely produce the correct result eventually.

    Explanation

    Timely completion is essential in systems such as aircraft control systems.

  40. 40

    Why would an aircraft control system require a real-time operating system?

    Model answer

    A control operation, such as lowering landing gear, must be completed correctly within a required interval for the system to function safely.

    Explanation

    A correct result delivered too late may be useless or dangerous.

  41. 41

    What is a distributed operating system?

    Model answer

    It manages a group of independent computers and makes them appear as one computer from the application's perspective.

    Explanation

    The system coordinates multiple computers while hiding their separation from applications.

  42. 42

    What is an embedded operating system?

    Model answer

    It is a compact and efficient operating system designed for a specialized device with limited resources.

    Explanation

    Examples include systems in mobile devices, washing machines, and Internet of Things devices.

  43. 43

    Why are embedded operating systems generally compact and efficient?

    Model answer

    They are designed for specialized devices that often have limited computing resources and narrowly defined functions.

    Explanation

    A sensor or appliance does not require all the capabilities of a general-purpose desktop system.

  44. 44

    What major stages characterize the evolution of computing systems described in the content?

    Model answer

    Computing evolved from mainframes performing batch processing to mini-computers, desktop computers, and handheld computers.

    Explanation

    This progression increased accessibility, interaction, portability, and connectivity.

  45. 45

    What is interactive computing?

    Model answer

    Interactive computing is a mode in which a user performs an action and expects the computer to provide a response at each step.

    Explanation

    It differs from batch processing, where a job may be submitted and results collected much later.

  46. 46

    Why are modern operating systems designed for highly interactive environments?

    Model answer

    Users expect quick responses while running applications, and modern systems support continuous interaction with many services and devices.

    Explanation

    Interactivity is a central requirement of desktops, handheld devices, and networked systems.

  47. 47

    Why is networking a major characteristic of contemporary operating systems?

    Model answer

    Modern systems connect users and devices so that they can communicate and share information across networks.

    Explanation

    A handheld device, for example, may interact with billions of other devices and users.

  48. 48

    What three characteristics strongly influence the development and security of modern operating systems?

    Model answer

    They are high interactivity, the need for quick or timely results, and extensive networking.

    Explanation

    These characteristics create requirements for responsiveness, coordination, connectivity, and protection.

  49. 49

    What is the operating system's role as a resource allocator?

    Model answer

    It assigns resources such as CPU time, memory, storage, and devices to application programs that request them.

    Explanation

    Applications depend on the operating system to obtain and manage the resources needed for execution.

  50. 50

    Why must an operating system resolve conflicts between resource requests?

    Model answer

    Multiple programs or users may request the same resource, so the operating system must coordinate access to prevent interference or corrupted results.

    Explanation

    For example, simultaneous printer use could mix the output of two files.

  51. 51

    What is serialization in operating-system resource management?

    Model answer

    Serialization means arranging conflicting operations so that they occur one after another rather than simultaneously.

    Explanation

    If two users want to print, the operating system can complete one print job before starting the other.

  52. 52

    What is a process?

    Model answer

    A process is a program in execution.

    Explanation

    The operating system manages processes while they run and coordinates their access to system resources.

  53. 53

    How does an operating system control program execution?

    Model answer

    It manages the execution of processes, enforces their resource boundaries, and stops programs that perform invalid operations.

    Explanation

    For example, it can terminate a program that accesses memory outside the area assigned to it.

  54. 54

    Why must an operating system isolate processes in a multiuser system?

    Model answer

    Isolation prevents an error or invalid action in one process from affecting the execution or data of another process.

    Explanation

    This protection is essential when many users and programs execute concurrently on the same server.

  55. 55

    How does an operating system respond to a divide-by-zero error?

    Model answer

    It detects or handles the invalid operation, reports an error, and may stop the faulty program.

    Explanation

    Error reporting and termination prevent an invalid computation from continuing unpredictably.

  56. 56

    Why is error detection and reporting an important operating-system function?

    Model answer

    It prevents invalid operations from continuing and informs the user or program that execution has failed.

    Explanation

    Examples include memory violations, segmentation faults, and mathematically invalid operations.

  57. 57

    What happens first when a computer is switched on?

    Model answer

    The processor begins executing instructions stored in read-only memory, which are commonly called firmware.

    Explanation

    These initial instructions begin the process of locating and loading the operating system.

  58. 58

    What does firmware do during system startup?

    Model answer

    Firmware searches for a bootable device and loads the initial program stored there.

    Explanation

    The bootable device contains the code needed to continue starting the operating system.

  59. 59

    What is a bootstrap program?

    Model answer

    A bootstrap program is the initial program loaded from a bootable device that continues the startup process by loading the operating-system kernel.

    Explanation

    It receives control after the firmware locates and loads the boot information.

  60. 60

    What is the master boot record's role in starting an operating system?

    Model answer

    The firmware loads the contents of the master boot record into memory and transfers control to it so that it can continue loading the kernel.

    Explanation

    The master boot record contains the initial boot code used to proceed from firmware to the operating system.

  61. 61

    Describe the complete basic sequence from powering on a computer to loading the kernel.

    Model answer

    Firmware in read-only memory executes, locates a bootable device, loads its boot record into memory, transfers control to the bootstrap code, and the bootstrap code loads the kernel.

    Explanation

    This sequence establishes the operating system as the main software controlling the computer.

  62. 62

    Why is the operating system considered continuously present from startup until shutdown?

    Model answer

    After the kernel is loaded, operating-system code remains active in the background to manage resources, execute programs, and provide services until the computer is turned off.

    Explanation

    The operating system maintains control of the system throughout normal operation.

1 of 62
Question 1 of 62

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent