Which system file contains local static mappings of domain names to IP addresses, checked before querying external DNS servers in Windows and Linux? MCQ with Answer and Explanation

Which system file contains local static mappings of domain names to IP addresses, checked before querying external DNS servers in Windows and Linux?
A. services config
B. networks list
C. resolv.conf
D. hosts file
Answer: Option D
Solution (By JKExamLibrary)
The 'hosts' file is a standard operating system text file that maps hostnames directly to network IP addresses, bypassing external DNS lookups.

This question belongs to: Computer Operating Systems

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Operating Systems Questions

Question #1 Report Error
What does 'Internal Fragmentation' mean in paging-based memory management?
A. Disk sector corruption within swap files.
B. Total breakdown of memory allocation tracking registers.
C. Unused space left over at the end of an allocated memory block or page frame.
D. When two distinct programs try to overwrite the same RAM register.

Correct Answer: Option C


Explanation:
Internal fragmentation happens when memory is allocated in fixed-size blocks (like pages), and a process requests less memory than the block size, leaving the remainder wasted inside that block.

This question belongs to: Computer Operating Systems
Question #2 Report Error
In Android, which component is used to receive and respond to system-wide broadcast announcements?
A. Service
B. Content Provider
C. Activity
D. Broadcast Receiver

Correct Answer: Option D


Explanation:
Broadcast Receivers listen for system events (like boot completed, battery low) and allow apps to respond.

This question belongs to: Computer Operating Systems
Question #3 Report Error
In Windows, the Registry is divided into which main hives?
A. HKEY_CONFIG, HKEY_DRIVERS, HKEY_SERVICES
B. HKEY_LOCAL_MACHINE, HKEY_CURRENT_USER, HKEY_CLASSES_ROOT, HKEY_USERS, HKEY_CURRENT_CONFIG
C. HKEY_ROOT, HKEY_USER, HKEY_SYSTEM, HKEY_SOFTWARE
D. HKEY_LOCAL, HKEY_REMOTE, HKEY_DEFAULT

Correct Answer: Option B


Explanation:
The five root keys (hives) are HKLM, HKCU, HKCR, HKU, and HKCC.

This question belongs to: Computer Operating Systems