Self-assessment quiz

Presentation & objectives

The following quizzes are here to help you check that you understood the articles you had to study. At the end of a quiz, you will be given explanations on your answers. If some of them are wrong, you will have the possibility to click on the question you failed to try again.

These quizzes are provided for self-assessment and will not be graded or stored.

Don’t hesitate to reach out on the Discord server for any precision/explanation!

Quizzes

What is a computer?

# What sentence best describes a computer? 1. [ ] A device that performs only arithmetic operations? > ❌ This is incorrect because a computer performs both arithmetic and logical operations. 1. [x] An electronic device that can be programmed to carry out sequences of arithmetic or logical operations? > ✅ This is the correct definition, as a computer follows sequences of operations that can be both arithmetic and logical. 1. [x] A machine that follows a set of instructions (program) stored in its memory? > ✅ Computers execute programs stored in memory that dictate their behavior. 1. [ ] A mechanical device that was used in the 19th century? > ❌ Computers as we know them are electronic devices, not mechanical devices from the 19th century. # What are the main components of a CPU? - [x] Control Unit (CU)? > ✅ The Control Unit is responsible for directing the operation of the processor. - [x] Arithmetic Logic Unit (ALU)? > ✅ The ALU handles arithmetic and logical operations within the CPU. - [ ] Random Access Memory (RAM)? > ❌ RAM is a type of memory, not a part of the CPU. - [x] Registers? > ✅ Registers are small storage locations within the CPU that store data temporarily. # Which of the following are characteristics of RAM? - [x] Volatile memory? > ✅ RAM is volatile, meaning its contents are lost when power is turned off. - [x] Fast access speed? > ✅ RAM is designed for fast data access compared to storage like hard drives. - [x] Temporary storage for data and instructions? > ✅ RAM temporarily holds data and instructions while the CPU processes them. - [ ] Persistent storage like HDD/SSD? > ❌ HDD and SSD are forms of persistent storage, not RAM, which is temporary. # Which of the following architectures store instructions and data in the same memory? 1. [x] von Neumann architecture? > ✅ In von Neumann architecture, both instructions and data share the same memory space. 1. [ ] Harvard architecture? > ❌ In Harvard architecture, instructions and data are stored in separate memory spaces. 1. [ ] Modified Harvard architecture? > ❌ This architecture is a variation of the Harvard architecture, not von Neumann. # What are the benefits of multi-core processors? - [x] Improved performance through parallel processing? > ✅ Multi-core processors can handle multiple tasks simultaneously, improving performance. - [x] Enhanced multitasking capabilities? > ✅ Multi-core processors allow for more efficient multitasking as different cores handle different tasks. - [ ] Simplified programming and software development? > ❌ While multi-core processors improve performance, they often make programming more complex, not simpler. - [x] Increased energy efficiency? > ✅ Multi-core processors can distribute tasks more efficiently, reducing energy consumption.

The operating system

# What was one of the main innovations in early operating systems during the 1960s? - [ ] Batch processing? > ❌ Batch processing was an earlier innovation, not specific to the 1960s. - [x] Time-sharing systems? > ✅ Time-sharing allowed multiple users to interact with the system at once, a significant innovation of the 1960s. - [ ] Multithreading? > ❌ Multithreading was developed later as an operating system feature. - [x] Multi-user environments? > ✅ Multi-user environments allowed multiple users to use the system simultaneously, another key innovation of the 1960s. # Which of the following are key features of the Unix operating system developed in the 1970s? - [x] Portability? > ✅ Unix was designed to be portable across different hardware platforms. - [x] Multiuser and Multitasking? > ✅ Unix supports multiple users and multitasking, which were revolutionary at the time. - [ ] Graphical User Interface (GUI)? > ❌ Unix was initially command-line based and did not include a GUI. - [ ] Integrated Web Browser? > ❌ Web browsers were developed much later and were not part of Unix in the 1970s. # What is the role of the kernel in an operating system? - [x] Managing system resources like CPU and memory? > ✅ The kernel is responsible for managing the system’s core resources. - [ ] Providing a graphical user interface? > ❌ This is the role of user interfaces, not the kernel. - [x] Handling process management and inter-process communication? > ✅ The kernel manages processes and their communication with one another. - [ ] Facilitating user interaction through command-line or GUI? > ❌ User interaction is managed by shells or graphical environments, not the kernel directly. # Which components are commonly found in modern operating systems? - [x] Kernel? > ✅ The kernel is the core component of any operating system. - [x] Shells (command-line or graphical)? > ✅ Shells provide the interface for users to interact with the system. - [ ] Integrated Development Environment (IDE)? > ❌ IDEs are separate software tools and not part of the core operating system. - [x] Daemons or Services? > ✅ Daemons or services run in the background to manage system tasks. # Which of the following accurately describe the function of a bootloader in the operating system's boot sequence? - [ ] Checks the system's hardware components for errors? > ❌ This task is typically performed by the BIOS or UEFI, not the bootloader. - [x] Loads the operating system kernel into memory? > ✅ The bootloader’s primary role is to load the operating system kernel into memory. - [x] May provide a menu for selecting different operating systems? > ✅ Bootloaders often offer a menu to choose between different operating systems. - [ ] Manages user authentication? > ❌ User authentication is handled later by the operating system itself, not the bootloader.

The terminal

# What is the primary function of a terminal? - [x] To interact with the operating system using commands? > ✅ The terminal allows users to interact with the system by typing commands. - [ ] To display graphical user interfaces? > ❌ The terminal is a text-based interface, not a graphical one. - [x] To execute command-line instructions? > ✅ Command-line instructions are entered and executed through the terminal. - [ ] To run graphical applications directly? > ❌ Graphical applications are not run directly through the terminal but through graphical environments. # Which of the following commands are used to navigate directories in a terminal? - [x] `cd`? > ✅ The `cd` command is used to change directories. - [ ] `ls`? > ❌ The `ls` command lists the contents of a directory but does not navigate between them. - [ ] `pwd`? > ❌ `pwd` prints the current working directory but does not change it. - [ ] `mkdir`? > ❌ `mkdir` creates directories, but it is not used for navigation. # What is the role of the `ls` or `dir` command in a terminal? - [x] To list the contents of a directory? > ✅ `ls` or `dir` lists the files and directories within the current directory. - [ ] To change the current directory? > ❌ This task is performed by the `cd` command, not `ls` or `dir`. - [ ] To remove a directory? > ❌ The `rm` or `rmdir` commands are used to remove directories. - [x] To view files in the current directory? > ✅ `ls` allows you to view the files and folders in your current directory. # Which of the following are correct uses of pipes (`|`) in a terminal? - [x] To send the output of one command as input to another command? > ✅ Pipes are used to pass the output of one command into another for further processing. - [ ] To copy files between directories? > ❌ The `cp` command is used for copying files, not pipes. - [x] To chain multiple commands together? > ✅ Pipes can be used to connect several commands in a single line. - [ ] To navigate between directories? > ❌ Pipes are not used for directory navigation; this is done using `cd`. # Which commands are commonly used to manage files and directories in a terminal? - [x] `cp`? > ✅ `cp` is used to copy files and directories. - [x] `mv`? > ✅ `mv` moves or renames files and directories. - [ ] `echo`? > ❌ `echo` is used to display a line of text, not manage files or directories. - [x] `rm`? > ✅ `rm` is used to remove files and directories.