Docsity

3X0 103 Linux Networking Level 1 Practice Exam, Exams of Technology

Toggle sidebar
bg1
3X0 103 Linux Networking Level 1 Practice Exam
Question 1. Which layer of the OSI model is responsible for establishing, managing, and terminating
sessions between applications?
A) Application
B) Presentation
C) Session
D) Transport
Answer: C
Explanation: The Session layer manages sessions between applications, handling setup, maintenance,
and teardown of communication.
Question 2. What is the primary function of the Transport layer in the OSI model?
A) Data formatting
B) Reliable data transfer and flow control
C) Routing packets
D) Physical transmission
Answer: B
Explanation: The Transport layer ensures reliable data transfer, flow control, and error correction
between devices.
Question 3. Which protocol operates at the Network layer of the OSI model?
A) TCP
B) IP
C) FTP
D) Ethernet
Answer: B
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51

Partial preview of the text

Download 3X0 103 Linux Networking Level 1 Practice Exam and more Exams Technology in PDF only on Docsity!

Question 1. Which layer of the OSI model is responsible for establishing, managing, and terminating sessions between applications? A) Application B) Presentation C) Session D) Transport Answer: C Explanation: The Session layer manages sessions between applications, handling setup, maintenance, and teardown of communication. Question 2. What is the primary function of the Transport layer in the OSI model? A) Data formatting B) Reliable data transfer and flow control C) Routing packets D) Physical transmission Answer: B Explanation: The Transport layer ensures reliable data transfer, flow control, and error correction between devices. Question 3. Which protocol operates at the Network layer of the OSI model? A) TCP B) IP C) FTP D) Ethernet Answer: B

Explanation: The Internet Protocol (IP) functions at the Network layer, handling addressing and routing of packets. Question 4. In the TCP/IP model, which layer corresponds to the OSI's Application, Presentation, and Session layers? A) Application B) Transport C) Internet D) Network Access Answer: A Explanation: The TCP/IP Application layer combines functions of the OSI Application, Presentation, and Session layers. Question 5. Which protocol typically uses port 80? A) FTP B) SSH C) HTTP D) DNS Answer: C Explanation: HTTP uses port 80 for web traffic. Question 6. What is the default subnet mask for a Class B IPv4 address? A) 255.255.0. B) 255.0.0. C) 255.255.255. D) 255.255.255.

Explanation: /etc/resolv.conf lists DNS servers for network name resolution. Question 10. What is the main purpose of DHCP? A) Assigning IP addresses dynamically B) Resolving hostnames C) Encrypting network traffic D) Routing packets Answer: A Explanation: DHCP automatically assigns IP addresses and configuration parameters to network devices. Question 11. Which protocol maps IP addresses to MAC addresses on a LAN? A) ICMP B) TCP C) ARP D) UDP Answer: C Explanation: ARP resolves IP addresses to MAC addresses for local network communication. Question 12. Which port number is commonly used for secure HTTP traffic? A) 22 B) 80 C) 443 D) 53 Answer: C Explanation: Port 443 is used for HTTPS, providing encrypted web communication.

Question 13. What does the 'ifconfig' command do on Linux? A) Lists open files B) Configures network interfaces C) Displays disk usage D) Shows running processes Answer: B Explanation: 'ifconfig' is used to view and configure network interface parameters. Question 14. Which modern command replaces 'ifconfig' for viewing network interfaces? A) netstat B) ip addr C) ls D) ping Answer: B Explanation: 'ip addr' is part of the iproute2 suite and is the modern alternative to 'ifconfig'. Question 15. What would 'ip link set eth0 down' do? A) Enable eth B) Disable eth C) Assign a static IP to eth D) List eth0 statistics Answer: B Explanation: This command brings the eth0 interface down, disabling it.

Question 19. What is the role of a default gateway? A) Assigns IP addresses B) Forwards packets to other networks C) Resolves hostnames D) Filters packets Answer: B Explanation: The default gateway routes packets destined for outside the local network. Question 20. Which file controls the system hostname in Linux? A) /etc/hosts B) /etc/hostname C) /etc/networks D) /etc/resolv.conf Answer: B Explanation: /etc/hostname stores the system’s hostname. Question 21. What does the 'ping' utility test? A) Disk performance B) Network reachability C) Memory usage D) File permissions Answer: B Explanation: 'ping' sends ICMP echo requests to test if a host is reachable. Question 22. What is the default protocol used by 'ping'?

A) TCP

B) ARP

C) ICMP

D) UDP

Answer: C Explanation: 'ping' uses ICMP to send echo requests and receive replies. Question 23. Which command traces the route packets take to a destination? A) ping B) traceroute C) netstat D) ssh Answer: B Explanation: 'traceroute' shows the path packets follow to reach their destination. Question 24. What is the function of 'nslookup' in Linux networking? A) Packet capture B) Hostname lookup C) Display routing table D) Interface configuration Answer: B Explanation: 'nslookup' queries DNS servers to resolve hostnames to IP addresses. Question 25. What does the 'netstat' utility show? A) DNS records

C) SSH

D) DNS

Answer: C Explanation: SSH uses port 22 for secure remote access. Question 29. What is the main function of SSH keys? A) Encrypt disk data B) Provide passwordless authentication C) Assign IP addresses D) Monitor network traffic Answer: B Explanation: SSH keys enable secure and passwordless authentication for SSH connections. Question 30. Where can you configure user-specific SSH settings? A) /etc/ssh/ssh_config B) ~/.ssh/config C) /etc/hostname D) /etc/networks Answer: B Explanation: ~/.ssh/config allows users to specify SSH client options. Question 31. What command is used for secure copying of files over SSH? A) ftp B) sftp C) scp

D) curl Answer: C Explanation: 'scp' securely copies files between hosts using SSH. Question 32. What protocol does 'sftp' use for data transfer? A) FTP B) SSH C) HTTP D) NFS Answer: B Explanation: 'sftp' operates over SSH for secure file transfer. Question 33. Which command-line tool retrieves files from web servers? A) wget B) ssh C) scp D) nslookup Answer: A Explanation: 'wget' downloads files from web servers via HTTP/HTTPS. Question 34. What is the primary purpose of NFS in Linux networking? A) Secure remote access B) Network file sharing C) Web browsing D) IP assignment

Explanation: Accurate time is essential for logging, security, and coordination in networked environments. Question 38. Which command synchronizes Linux time with an NTP server? A) ntpdate B) route C) ip link D) netstat Answer: A Explanation: 'ntpdate' synchronizes the system time with an NTP server. Question 39. What type of address is 127.0.0.1? A) Broadcast B) Loopback C) Private D) Public Answer: B Explanation: 127.0.0.1 is the loopback address, used for internal host communication. Question 40. What does the 'ip - s link' command show? A) Firewall rules B) Interface statistics and error counters C) Routing table D) DNS entries Answer: B

Explanation: 'ip - s link' provides network interface statistics, including errors. Question 41. Which environment variable sets the HTTP proxy for command-line utilities? A) HTTP_PROXY B) PATH C) HOSTNAME D) IPADDR Answer: A Explanation: The HTTP_PROXY variable configures HTTP proxy settings for many command-line tools. Question 42. What is the main advantage of IPv6 over IPv4? A) Faster speed B) Larger address space C) More secure by default D) Lower latency Answer: B Explanation: IPv6 provides a vastly larger address space compared to IPv4. Question 43. Which tool can display open network ports and the processes that own them? A) netstat B) lsof C) iptables D) ping Answer: B Explanation: 'lsof - i' lists open network ports and their associated processes.

Question 47. Which protocol uses connectionless communication at the Transport layer? A) TCP B) UDP C) IP D) ARP Answer: B Explanation: UDP provides connectionless communication at the Transport layer. Question 48. Which file contains mappings of hostnames to IP addresses locally? A) /etc/hosts B) /etc/hostname C) /etc/networks D) /etc/dns.conf Answer: A Explanation: /etc/hosts maps hostnames to IP addresses for local resolution. Question 49. What does the 'ss' command do? A) Displays socket statistics B) Lists open files C) Shows disk usage D) Assigns IP addresses Answer: A Explanation: 'ss' is a utility for viewing socket statistics and connections. Question 50. Which protocol is used for secure file transfer over SSH?

A) FTP

B) SFTP

C) HTTP

D) Telnet Answer: B Explanation: SFTP (SSH File Transfer Protocol) enables secure file transfers over SSH. Question 51. What is the function of the /etc/sysconfig/network file? A) Stores disk configuration B) Sets system-wide network settings C) Lists user accounts D) Manages firewall rules Answer: B Explanation: /etc/sysconfig/network contains system-wide networking parameters. Question 52. Which command can display the IP address of all network interfaces? A) ip addr B) mount C) df - h D) ssh Answer: A Explanation: 'ip addr' lists IP addresses assigned to all interfaces. Question 53. What is the purpose of subnetting? A) Increase bandwidth

C) netstat - an D) ifconfig down Answer: A Explanation: 'ip link set eth0 up' enables the eth0 interface. Question 57. Which configuration file is used for persistent network settings on Debian-based systems? A) /etc/network/interfaces B) /etc/sysconfig/network C) /etc/hostname D) /etc/resolv.conf Answer: A Explanation: Debian-based systems use /etc/network/interfaces for persistent network configurations. Question 58. Which port is used by FTP? A) 25 B) 21 C) 80 D) 443 Answer: B Explanation: FTP uses port 21 for file transfers. Question 59. What does the 'hostname' command do? A) Displays or sets the system hostname B) Assigns IP addresses C) Shows routing table

D) Lists open files Answer: A Explanation: 'hostname' displays or sets the current system name. Question 60. Which command lists the available network interfaces? A) ip link B) df C) lsof D) ps Answer: A Explanation: 'ip link' lists all network interfaces detected by the kernel. Question 61. What is the function of the ARP cache? A) Stores DNS records B) Maps IP addresses to MAC addresses C) Lists open ports D) Shows routing table Answer: B Explanation: The ARP cache keeps a record of IP-to-MAC address mappings. Question 62. Which command flushes the ARP cache in Linux? A) arp - d B) ip addr flush C) netstat - r D) ping - c