DevOps Quiz 3

Last Updated :
Discuss
Comments

Question 1

Which of the following best explains why the Linux Kernel alone cannot be considered a complete operating system?

  • The Linux Kernel lacks support for multitasking and user management

  • A kernel cannot be installed directly on hardware

  • It only manages hardware and needs supporting tools and software for usability

  • The Linux Kernel is closed-source and requires licensed add-ons to work

Question 2

Suppose a user wants to find out how much RAM is currently available on their system. Which file would they most likely consult?

  • /proc/stat

  • /proc/meminfo

  • /proc/cpuinfo

  • /var/log/messages

Question 3

Which command would you use to create nested directories like /GFG/GFG1/GFG2, and what will happen if intermediate directories don’t exist?

  • mkdir /GFG/GFG1/GFG2 – It will throw an error if /GFG doesn't exist.

  • mkdir -p /GFG/GFG1/GFG2 – It creates all necessary parent directories.

  • mkdir --force /GFG/GFG1/GFG2 – It forces creation of any level.

  • mkdir -d /GFG/GFG1/GFG2 – The -d flag handles nesting automatically.

Question 4

Which of the following commands will create a new file named file.txt with the text "Hello" inside it, overwriting any existing content without confirmation?

  • touch file.txt "Hello"

  • nano file.txt <<< "Hello"

  • echo "Hello" > file.txt

  • cat > file.txt <<< "Hello"

Question 5

You want to check memory usage in your system. Which command gives you the real-time available memory (RAM)?

  • free

  • df -h

  • top -h

  • du -m

Question 6

What will the command chmod 751 file.sh do to the file permissions of file.sh?

  • Owner: rwx, Group: r-x, Others: --x

  • Owner: read/write, Group: read, Others: execute

  • Owner: all permissions, Group: execute only, Others: execute only

  • Owner: rw-, Group: rw-, Others: r--

Question 7

Which of the following does NOT match correctly with its function in Linux configuration or boot processes?

  • /etc/fstab – Contains information about disk drives and mount points

  • /etc/inittab – Manages the system's run levels and init process

  • /etc/grub.conf – Defines bootloader settings for GRUB

  • /etc/exports – Configures local printers and print queues

Question 8

Which directory would most likely contain information about dynamically created devices when a USB is plugged into a running Linux system?

  • /boot

  • /media

  • /mnt

  • /srv

Question 9

Which of the following pairs are incorrectly matched with respect to Linux architecture?

  • Kernel – Responsible for virtualizing hardware resources

  • Shell – Interface to execute commands and scripts

  • System Utility – Helps manage system settings like networking, users, and packages

  • System Library – Stores user data and configuration files

Tags:

There are 9 questions to complete.

Take a part in the ongoing discussion