Which Linux command is used to display the system's hostname and IP address? MCQ with Answer and Explanation

Which Linux command is used to display the system's hostname and IP address?
A. hostname -I
B. ifconfig
C. All of the above
D. ip addr
Answer: Option C
Solution (By JKSSB Mock Tests)
hostname -I shows IP addresses; ifconfig and ip addr display network interfaces with IPs.

Discuss this Question (0)

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

Practice More Operating Systems Questions

Question #1
In Windows, the 'System Properties' can be accessed by running:
A. msinfo32
B. systeminfo
C. control system
D. sysdm.cpl

Correct Answer: Option D


Explanation:
sysdm.cpl opens the System Properties dialog for computer name, hardware, and performance settings.

This question belongs to: Computer Operating Systems
Question #2
Which Android version introduced support for split-screen multitasking?
A. Oreo (8.0)
B. Nougat (7.0)
C. Marshmallow (6.0)
D. Lollipop (5.0)

Correct Answer: Option B


Explanation:
Android 7.0 Nougat introduced native split-screen mode, allowing two apps to run side by side.

This question belongs to: Computer Operating Systems
Question #3
Which of the following is a type of operating system that supports multiple users, multitasking, and memory protection?
A. Simple embedded OS
B. Single-user OS
C. Batch OS
D. Modern general-purpose OS (Windows, Linux)

Correct Answer: Option D


Explanation:
General-purpose OSes like Windows and Linux support multiple users, multitasking, and memory protection (virtual memory).

This question belongs to: Computer Operating Systems