Assignment #1: Introduction to Linux and Python
Mai Rizk & Mostafa Atallah
Cairo University
July 31, 2023
Answer the following MCQ questions with explanations.
Write your answers and explanations clearly. Be concise and to the point.
1. An operating system is extensive system software that:
(a) Manages and controls computer hardware only.
(b) Manages and controls computer software resources only.
(c) Manages and controls computer hardware and software resources.
(d) Manages and controls computer networks.
2. Which of the following is NOT an example of an operating system?
(a) Microsoft Windows
(b) Linux
(c) macOS
(d) Android
3. What is Linux?
(a) A paid operating system developed by Microsoft.
(b) A family of free, open-source and Unix-like operating systems.
(c) A graphical user interface used for programming.
(d) A type of computer hardware.
4. How many components does a Linux operating system primarily have?
(a) One
(b) Two
(c) Three
(d) Four
5. Which of the following is NOT a Linux advantage?
(a) It is open source and free to use.
(b) It is extremely reliable and never crashes.
1
(c) It is supported by a large number of devices.
(d) It provides greater security for sensitive applications.
6. Python is primarily used in which fields?
(a) Web development only.
(b) Data analysis, machine learning, and artificial intelligence only.
(c) Web development and data analysis only.
(d) Web development, data analysis, machine learning, and artificial intelligence.
7. Which of the following is NOT a Python advantage?
(a) Code readability and ease of writing are prioritized.
(b) The program runs directly from the binary code.
(c) Python programs can be written and run on various operating systems.
(d) Python has built-in functions for frequently used concepts.
8. If you are on Windows, you can install Anaconda or use:
(a) macOS
(b) Linux subsystem
(c) Windows subsystem for Linux (WSL)
(d) Ubuntu terminal
9. (BONUS) Which data type in Python can store multiple elements and is mutable?
(a) List
(b) Tuple
(c) Set
(d) Dictionary
10. (BONUS) What are the two types of parameters that can be passed to a function in
Python?
(a) Positional and optional parameters
(b) Named and keyword parameters
(c) Required and optional parameters
(d) Integer and float parameters