Unit 3 - Practice Quiz

CSE111

1 What is the core component of the Linux operating system that interacts directly with the hardware?

A. Shell
B. Kernel
C. Desktop Environment
D. Compiler

2 Who is credited with creating the initial version of the Linux kernel?

A. Bill Gates
B. Steve Jobs
C. Linus Torvalds
D. Dennis Ritchie

3 Which of the following is a characteristic feature of Linux?

A. Closed Source
B. Single-user only
C. Open Source
D. Costly licensing fees

4 Which of the following is NOT a popular Linux distribution?

A. Ubuntu
B. Fedora
C. Debian
D. macOS

5 What program interprets commands typed by the user and sends them to the operating system?

A. The Kernel
B. The Shell
C. The Desktop
D. The Swap

6 Which command is used to display the current working directory?

A. cd
B. ls
C. pwd
D. dir

7 Which command is used to list files and directories?

A. show
B. list
C. ls
D. ps

8 How do you display the manual page for a specific command, for example, 'ls'?

A. help ls
B. man ls
C. ls ?
D. info ls

9 Which command is used to create a new empty directory?

A. mkfile
B. newdir
C. mkdir
D. touch

10 What command allows you to change your current directory?

A. mv
B. cd
C. cp
D. ch

11 Which command is primarily used to create an empty file or update the timestamp of an existing file?

A. mkdir
B. cat
C. touch
D. make

12 Which command is used to remove (delete) a file?

A. del
B. remove
C. rm
D. erase

13 What is the function of the 'cp' command?

A. Change path
B. Copy files or directories
C. Create program
D. Check process

14 Which command is used to move or rename files?

A. mv
B. rn
C. mov
D. cp

15 Which command is used to remove an empty directory?

A. rm
B. delete
C. rmdir
D. clean

16 To view the contents of a file on the standard output, which command is used?

A. see
B. look
C. cat
D. read

17 Which command is used to change the file permissions?

A. chown
B. chmod
C. perm
D. attrib

18 What does the command 'chmod 777 file.txt' do?

A. Removes the file
B. Gives read, write, and execute permissions to everyone
C. Makes the file hidden
D. Locks the file

19 Which command displays information about currently running processes?

A. proc
B. status
C. ps
D. tasklist

20 If a program is unresponsive, which command can be used to terminate it using its PID?

A. stop
B. end
C. kill
D. quit

21 What does the 'cd ..' command do?

A. Moves to the root directory
B. Moves to the home directory
C. Moves one directory up (parent directory)
D. Repeats the last command

22 Which flag is used with 'rm' to delete a directory and its contents recursively?

A. -d
B. -r
C. -f
D. -a

23 In the Linux file system, which character represents the root directory?

A. \
B. C:
C. /
D. ~

24 What is a major difference between Linux and Windows regarding file paths?

A. Linux uses backslashes (), Windows uses forward slashes (/)
B. Linux uses forward slashes (/), Windows uses backslashes ()
C. Both use forward slashes
D. Both use backslashes

25 Which user in Linux has unlimited privileges and is equivalent to the Administrator in Windows?

A. Admin
B. SuperUser
C. Root
D. Master

26 Unlike Windows, Linux file names are:

A. Case-insensitive
B. Case-sensitive
C. Limited to 8 characters
D. Always ending in .txt

27 What is a Virtual Machine (VM)?

A. A physical robot
B. A software emulation of a physical computer
C. A type of virus
D. A web browser

28 The operating system running inside a Virtual Machine is called the:

A. Host OS
B. Guest OS
C. Main OS
D. Core OS

29 Which software is commonly used to create and manage Virtual Machines?

A. Oracle VirtualBox
B. Adobe Photoshop
C. Microsoft Word
D. VLC Player

30 What is the layer of software that creates and runs virtual machines called?

A. Compiler
B. Hypervisor
C. Kernel
D. Bootloader

31 What is a key benefit of using a Virtual Machine?

A. Increases hardware speed
B. Isolation of the environment
C. Requires no RAM
D. Replaces the need for a monitor

32 When creating a VM, what resources must be allocated from the host?

A. Internet bandwidth only
B. RAM and Storage
C. Monitor resolution
D. Keyboard layout

33 What feature allows you to save the state of a VM at a specific point in time?

A. Screenshot
B. Snapshot
C. Clone
D. Pause

34 What is a File System?

A. A method of storing and organizing files on a storage device
B. A system to clean computer fans
C. A protocol for internet browsing
D. A type of monitor display

35 What does FAT stand for in file systems?

A. Fast Access Table
B. File Allocation Table
C. File Access Type
D. Fixed Allocation Type

36 Which file system is the standard default for modern Windows operating systems?

A. HFS
B. ext4
C. NTFS
D. FAT16

37 Which file system is primarily associated with macOS?

A. NTFS
B. HFS/HFS+
C. ext4
D. FAT32

38 What is the standard file system used by most modern Linux distributions?

A. NTFS
B. Extended File System (ext3/ext4)
C. HFS
D. FAT32

39 What does UDF stand for?

A. Universal Disk Format
B. Unified Data File
C. User Data Format
D. Ultra Disk File

40 Which file system limitation makes FAT32 unsuitable for large video files?

A. It cannot store text files
B. Maximum file size is 4GB
C. It is not compatible with Windows
D. It is too slow

41 In the context of Linux commands, what does the -l flag do in ls -l?

A. Lists in landscape mode
B. Lists in long format (details)
C. Lists only links
D. Lists last opened files

42 Which symbol is used to represent the user's home directory in Linux?

A. /
B. .
C. @
D. ~

43 Which command creates a duplicate of a file?

A. mv
B. cp
C. rm
D. ls

44 To create a hidden file in Linux, the filename must start with:

A. A dot (.)
B. A hash (#)
C. A dollar sign ($)
D. An underscore (_)

45 Which command would you use to check the version of the kernel?

A. ls -v
B. uname -r
C. kernel -v
D. ver

46 In Windows, drives are labeled A:, C:, etc. In Linux, all storage devices are mounted under:

A. The Registry
B. The Root directory (/)
C. My Computer
D. The Drive Manager

47 Which command effectively 'renames' a directory?

A. rn
B. name
C. mv
D. cp

48 What does the 'sudo' command enable a user to do?

A. Surf the web
B. Execute a command with superuser (root) privileges
C. Sort files
D. Delete the OS

49 Which file system type is known as a 'Journaling File System' commonly used in Linux?

A. FAT12
B. ext3/ext4
C. ISO9660
D. CDFS

50 What happens if you run rmdir on a directory that contains files?

A. It deletes everything
B. It asks for a password
C. It fails and displays an error
D. It moves the files to trash