CSLB General Building (B) — All Questions

Back to practice

22 questions

Operating Systems

What is the primary role of an operating system?

  • a.To physically cool the hardware components
  • b.To provide internet connectivity by itself
  • c.To manage hardware resources and provide services for applications
  • d.To manufacture computer chips

An operating system manages a computer's hardware and software resources, including the CPU, memory, storage, and devices. It provides a platform and services on which applications run. Examples include Windows, macOS, Linux, Android, and iOS.

Operating Systems

In a file path, what does a directory (folder) represent?

  • a.A container that organizes files and other directories
  • b.A single executable program
  • c.A network connection
  • d.A hardware device driver

A directory, commonly called a folder, is a container used to organize files and other directories in a hierarchy. This structure helps users and the system locate data logically. Paths describe the location of a file within this directory tree.

Operating Systems

Which Linux command lists the files in the current directory?

  • a.cd
  • b.ls
  • c.rm
  • d.mkdir

The ls command lists the contents of a directory. Options like -l show detailed information and -a reveal hidden files. In contrast, cd changes directories, rm removes files, and mkdir creates directories.

Operating Systems

What is a 'process' in an operating system?

  • a.A physical component on the motherboard
  • b.A type of network cable
  • c.A permanent file stored on disk
  • d.An instance of a program in execution

A process is a running instance of a program, including its code, current activity, and allocated resources such as memory. The operating system schedules processes on the CPU and manages their lifecycle. A single program can spawn multiple processes.

Operating Systems

What does the term 'virtual memory' describe?

  • a.Using disk space to extend the apparent amount of RAM available
  • b.A cloud storage service
  • c.The memory built into a GPU
  • d.A backup of the BIOS settings

Virtual memory lets the operating system use a portion of the disk, called a page file or swap, as an extension of physical RAM. This allows more programs to run than would fit in RAM alone. However, disk is much slower than RAM, so heavy swapping can reduce performance.

Operating Systems

In Windows, which tool is commonly used to view and end running processes and check resource usage?

  • a.Disk Cleanup
  • b.Device Manager
  • c.Task Manager
  • d.Registry Editor

Task Manager displays running processes, CPU, memory, disk, and network usage, and lets a user end unresponsive tasks. It is a quick way to diagnose performance problems and identify resource-hungry applications. It can be opened with Ctrl+Shift+Esc.

Operating Systems

What is a file system responsible for?

  • a.Cooling the storage drive
  • b.Controlling how data is stored and retrieved on a storage device
  • c.Encrypting network traffic
  • d.Managing the display resolution

A file system defines how data is organized, named, stored, and retrieved on a storage device. Examples include NTFS on Windows, ext4 on Linux, and APFS on macOS. The chosen file system affects features like maximum file size, permissions, and reliability.

Operating Systems

Which of the following is an example of file permissions in a Linux system?

  • a.HTTP, FTP, SSH
  • b.RAM, ROM, cache
  • c.TCP, UDP, IP
  • d.Read, write, execute

In Linux, files and directories have read, write, and execute permissions assigned to the owner, group, and others. These permissions control who can view, modify, or run a file. Commands like chmod adjust these permissions.

Operating Systems

What is the purpose of a device driver?

  • a.To allow the operating system to communicate with a specific hardware device
  • b.To physically connect two computers
  • c.To store user passwords
  • d.To increase the screen brightness

A device driver is software that translates operating system commands into instructions a particular hardware device understands. Without the correct driver, a device such as a printer or graphics card may not function properly. Keeping drivers updated can fix bugs and improve compatibility.

Operating Systems

In Windows, what is the Registry?

  • a.A folder that stores all user documents
  • b.A tool for defragmenting the hard drive
  • c.A hierarchical database that stores system and application settings
  • d.A type of antivirus software

The Windows Registry is a central hierarchical database that stores low-level settings for the operating system and many applications. Editing it incorrectly can cause serious problems, so changes should be made carefully. It is accessed through the Registry Editor (regedit).

Operating Systems

What does 'multitasking' mean in the context of an operating system?

  • a.Running the system on multiple monitors
  • b.The ability to run multiple processes seemingly at the same time
  • c.Installing multiple operating systems
  • d.Connecting to multiple networks at once

Multitasking is the operating system's ability to manage multiple processes so they appear to run simultaneously. On a single core, the OS rapidly switches between processes, while multi-core CPUs can run several truly in parallel. Effective scheduling keeps the system responsive.

Operating Systems

Which command in Windows Command Prompt changes the current directory?

  • a.cd
  • b.dir
  • c.copy
  • d.del

The cd command changes the current working directory in the Windows Command Prompt. The dir command lists directory contents, copy duplicates files, and del deletes them. Understanding basic command-line navigation is a core system administration skill.

Operating Systems

What is the main benefit of creating user accounts with limited (standard) privileges instead of administrator rights?

  • a.It makes the computer boot faster
  • b.It increases available disk space
  • c.It improves the screen resolution
  • d.It limits the damage that malware or mistakes can cause

Standard user accounts cannot make system-wide changes without elevated permission, which reduces the impact of malware or accidental misconfiguration. Following the principle of least privilege improves security. Administrator rights should be reserved for tasks that truly require them.

Operating Systems

What is a common reason to boot a computer into 'safe mode'?

  • a.To increase gaming performance
  • b.To troubleshoot problems by loading only essential drivers and services
  • c.To permanently remove the operating system
  • d.To connect to a faster network

Safe mode starts the operating system with a minimal set of drivers and services. This helps isolate whether a problem is caused by third-party software or drivers. It is a valuable troubleshooting environment for removing malware or reversing bad changes.

Operating Systems

What does 'package management' refer to on Linux systems?

  • a.Wrapping files for shipment
  • b.Managing physical hardware boxes
  • c.Installing, updating, and removing software using tools like apt or yum
  • d.Organizing network cables

Package managers such as apt, yum, and dnf automate installing, updating, and removing software along with its dependencies. They pull software from repositories, simplifying maintenance. This centralized approach helps keep a system consistent and secure.

Operating Systems

What is the purpose of 'group policy' in a Windows domain environment?

  • a.To centrally manage settings and restrictions for many computers and users
  • b.To increase RAM capacity
  • c.To speed up the internet connection
  • d.To cool the servers

Group Policy lets administrators define and enforce configuration settings across many users and computers in a domain from a central location. It can control security settings, software deployment, and user restrictions. This greatly simplifies large-scale administration.

Operating Systems

In a directory service like Active Directory, what is a 'domain'?

  • a.A single physical server
  • b.A logical grouping of network objects such as users and computers under common administration
  • c.A type of encryption key
  • d.A backup storage device

A domain is a logical group of users, computers, and other objects that share a common directory database and security policies. Active Directory uses domains to centralize authentication and management. Administrators can control access across the domain from one place.

Operating Systems

What is the function of the 'sudo' command in Linux?

  • a.To shut down the network
  • b.To list all running processes
  • c.To compress files
  • d.To run a command with elevated (superuser) privileges

The sudo command lets a permitted user execute a command with the privileges of the superuser (root). This is used for administrative tasks that require elevated access. It provides an audit trail and avoids the need to log in as root directly.

Operating Systems

Why is regularly backing up data an important system administration task?

  • a.To protect against data loss from hardware failure, malware, or user error
  • b.To make the CPU run cooler
  • c.To increase the monitor's refresh rate
  • d.To reduce the number of user accounts

Backups create copies of data that can be restored if the original is lost due to hardware failure, ransomware, accidental deletion, or disaster. A common strategy is the 3-2-1 rule: three copies, on two types of media, with one offsite. Backups should be tested regularly to ensure they can be restored.

Operating Systems

What is 'virtualization' in computing?

  • a.Deleting unused files automatically
  • b.Overclocking the processor
  • c.Running one or more virtual machines on a single physical host
  • d.Encrypting the hard drive

Virtualization uses a hypervisor to run multiple isolated virtual machines, each with its own operating system, on a single physical computer. This improves hardware utilization and flexibility. It is foundational to modern data centers and cloud computing.

Operating Systems

What does an OS 'kernel' do?

  • a.It displays the desktop wallpaper
  • b.It is the core that manages memory, processes, and hardware access
  • c.It provides the web browser
  • d.It stores user photos

The kernel is the central core of an operating system that manages memory, schedules processes, and controls access to hardware. It operates in a privileged mode and acts as a bridge between applications and the physical machine. A stable kernel is essential for system reliability.

Operating Systems

What is the benefit of keeping an operating system updated with patches?

  • a.It fixes security vulnerabilities and bugs
  • b.It permanently increases storage capacity
  • c.It replaces the need for a CPU
  • d.It removes the need for backups

Operating system updates deliver security patches, bug fixes, and sometimes new features. Applying them promptly closes vulnerabilities that attackers could exploit. Patch management is a key responsibility of system administrators.

Báo lỗi