Unit 6 - Practice Quiz

INT249

1 In Linux device management, which directory primarily contains special files that represent hardware devices?

A. /etc
B. /dev
C. /sys
D. /proc

2 Which of the following describes a 'block device' in Linux?

A. A device that transfers data character by character.
B. A device that stores data in fixed-size chunks and allows random access.
C. A virtual network interface.
D. A pseudo-terminal device.

3 Which command is used to list information about all available block devices?

A. lsblk
B. lspci
C. lsusb
D. lscpu

4 What does the character 'c' represent in the file permission string crw-rw-rw-?

A. Configuration file
B. Character device
C. Command file
D. Core dump

5 Which specific pseudo-filesystem in Linux provides an interface to kernel data structures regarding hardware and device drivers?

A. /var
B. /sys
C. /mnt
D. /boot

6 Which command displays detailed information about PCI buses and connected devices?

A. lsblk
B. lsusb
C. lspci
D. dmesg

7 Where are persistent device naming rules managed by the udev system typically stored?

A. /etc/udev/rules.d/
B. /var/udev/rules/
C. /dev/rules/
D. /sys/class/udev/

8 To view the kernel ring buffer messages, often used for troubleshooting hardware detection during boot, which command is used?

A. journalctl -u cron
B. dmesg
C. tail /var/log/auth.log
D. uname -a

9 Which command is used to query and control network driver and hardware settings, particularly for Ethernet devices?

A. iwconfig
B. ethtool
C. netstat
D. dig

10 Which special device file discards all data written to it (commonly known as the 'bit bucket')?

A. /dev/null
B. /dev/zero
C. /dev/random
D. /dev/urandom

11 A system administrator needs to check the health status of a hard drive using S.M.A.R.T. technology. Which command should they use?

A. fsck
B. hdparm
C. smartctl
D. badblocks

12 In the TCP/IP model, which layer corresponds to the physical hardware transmission?

A. Application Layer
B. Transport Layer
C. Internet Layer
D. Network Access (Link) Layer

13 An IPv4 address consists of how many bits?

A. bits
B. bits
C. bits
D. bits

14 Which of the following is the loopback address for an IPv4 local host?

A. 127.0.0.1
B. 192.168.1.1
C. 10.0.0.1
D. 255.255.255.0

15 Which file is primarily used to configure DNS name servers on a Linux client?

A. /etc/hosts
B. /etc/resolv.conf
C. /etc/nsswitch.conf
D. /etc/networks

16 What is the purpose of the Subnet Mask?

A. To encrypt data packets.
B. To distinguish the Network ID from the Host ID.
C. To assign dynamic IP addresses.
D. To resolve hostnames to MAC addresses.

17 Which modern command is preferred over ifconfig to display and configure network interfaces?

A. ip
B. netstat
C. route
D. arp

18 A Linux server configured as a 'DHCP Server' is responsible for:

A. Resolving domain names to IP addresses.
B. Hosting web pages.
C. Assigning dynamic IP addresses to clients on the network.
D. Filtering network traffic.

19 Which protocol is associated with port 22 by default?

A. HTTP
B. FTP
C. SSH
D. Telnet

20 Which command allows a user to query DNS servers to lookup IP addresses associated with domain names?

A. ping
B. traceroute
C. dig
D. netcat

21 When configuring a static IP on a Red Hat/CentOS based system using NetworkManager, which command-line tool provides a text-based user interface?

A. nmtui
B. nmcli
C. ifconfig
D. netplan

22 In a virtualized environment, what is the 'Hypervisor'?

A. A container engine.
B. Software that creates and runs virtual machines.
C. The physical network card.
D. A cloud storage service.

23 Which virtualization technology uses a shared kernel and isolates processes in user space (e.g., Docker)?

A. Type 1 Hypervisor
B. Type 2 Hypervisor
C. Containerization
D. Full Virtualization

24 Which command serves as a client to request an IP address from a DHCP server manually?

A. dhcpd
B. dhclient
C. ip link
D. bind

25 To identify which application is listening on a specific TCP port, which command should be used?

A. ss -tulpn
B. ping
C. traceroute
D. route -n

26 What is the primary function of cloud-init in a Linux cloud instance?

A. To encrypt the hard drive.
B. To handle early initialization and configuration of a cloud instance.
C. To monitor CPU usage.
D. To providing a GUI desktop environment.

27 Which network troubleshooting tool sends ICMP Echo Request packets to test connectivity?

A. ping
B. ssh
C. telnet
D. nslookup

28 Which networking command displays the path (hops) and transit delays of packets across an IP network?

A. route
B. traceroute
C. netstat
D. hostname

29 Which file is used to map hostnames to IP addresses locally, taking precedence over DNS by default?

A. /etc/hosts
B. /etc/hostname
C. /etc/resolv.conf
D. /etc/gateways

30 Which command changes the system's hostname permanently on systemd-based distributions?

A. hostname
B. hostnamectl set-hostname
C. ip hostname
D. echo name > /proc/sys/kernel/hostname

31 In KVM virtualization, what does 'KVM' stand for?

A. Kernel-based Virtual Machine
B. Keyboard Video Mouse
C. Kali Virtual Manager
D. Kernel Virtual Module

32 Which networking configuration file format is used by Netplan (common in Ubuntu)?

A. XML
B. JSON
C. YAML
D. INI

33 If a server cannot access the internet, but can ping 8.8.8.8, what is the most likely issue?

A. The network cable is unplugged.
B. There is a DNS resolution issue.
C. The default gateway is incorrect.
D. The firewall is blocking ICMP.

34 Which command is used to capture and analyze packets flowing through a network interface in real-time?

A. tcpdump
B. netstat
C. nmap
D. iptables

35 A Type 1 Hypervisor runs:

A. Inside a web browser.
B. As an application on top of a host Operating System.
C. Directly on the host hardware (Bare Metal).
D. Inside a Docker container.

36 Which command allows you to view the kernel routing table?

A. ip route show
B. ip link show
C. ip addr show
D. ip neigh show

37 What is the function of the ARP protocol?

A. To map IP addresses to MAC addresses.
B. To map Domain names to IP addresses.
C. To route packets between networks.
D. To assign IP addresses dynamically.

38 Which Linux server role would be primarily configured using software like Samba or NFS?

A. Web Server
B. File Server
C. Database Server
D. DNS Server

39 Which directory contains the definition files for USB devices?

A. /proc/bus/usb
B. /sys/bus/usb
C. /dev/usb
D. /etc/usb

40 To add a new IP address 192.168.1.50/24 to interface eth0 temporarily, which command is used?

A. ip addr add 192.168.1.50/24 dev eth0
B. ifconfig eth0 192.168.1.50/24
C. netplan apply
D. route add 192.168.1.50 dev eth0

41 Which command lists all USB devices currently connected to the system?

A. lsusb
B. lspci
C. lsdev
D. usbview

42 Which of the following is a private IP address range (RFC 1918) often used in LANs?

A. 8.8.8.0/24
B. 172.16.0.0/12
C. 1.1.1.1/32
D. 200.100.50.0/24

43 If a device file is located at /dev/sda, what does 'a' typically signify?

A. It is an Audio device.
B. It is the first detected drive of that type.
C. It is a partition.
D. It is an Archive device.

44 Which virtualization network mode allows a VM to appear as a unique physical host on the same network as the host machine?

A. NAT
B. Bridged
C. Host-Only
D. Internal

45 Which command is used to display hardware information by reading from various /proc files in a readable format?

A. lshw
B. grep
C. find
D. sysctl

46 When troubleshooting a network service that fails to start, which command allows you to view the service's logs?

A. journalctl -u [service_name]
B. dmesg
C. history
D. top

47 Which file system is mounted at /proc?

A. ext4
B. xfs
C. procfs
D. tmpfs

48 What is the result of the command nmcli con up "Wired connection 1"?

A. It deletes the connection profile.
B. It activates the network connection profile named "Wired connection 1".
C. It displays the configuration details only.
D. It installs the NetworkManager service.

49 Which command is used to manage partitions on a hard drive using a text-based interface (legacy)?

A. mkfs
B. fdisk
C. mount
D. df

50 The theoretical limit of the number of unique addresses in IPv6 is approximately:

A. billion ()
B. ()
C. million
D.