Introduction
User Interface (UI) defines how a user interacts with a computer system. In Operating System questions, the comparison between CLI (Command Line Interface) and GUI (Graphical User Interface) is very common because it tests both conceptual clarity and practical awareness.
These questions are usually easy, direct, and frequently asked in prelim-level exams.
Pattern: User Interface Types (CLI vs GUI)
Pattern
CLI allows users to interact with the system using text-based commands, while GUI allows users to interact using graphical elements like icons, windows, and menus.
Step-by-Step Example
Question
Which type of user interface allows users to interact with a computer using commands typed on a keyboard?
Options:
A. Graphical User Interface
B. Voice User Interface
C. Touch User Interface
D. Command Line Interface
Solution
-
Step 1: Identify the interaction method
The question mentions typing commands using a keyboard. -
Step 2: Match with interface type
Text-based command interaction is a feature of the Command Line Interface. -
Final Answer:
Command Line Interface → Option D -
Quick Check:
Typing commands like dir or ls always uses CLI ✅
Quick Variations
1. Questions may ask which interface is more user-friendly.
2. Sometimes asked which interface requires memorising commands.
3. Match-the-following between OS examples and interface types is common.
Trick to Always Use
- Step 1 → If commands are typed, think CLI.
- Step 2 → If icons, windows, and mouse are mentioned, think GUI.
Summary
Summary
- CLI is text-based and requires command knowledge.
- GUI is graphical and user-friendly.
- CLI is faster for experts; GUI is easier for beginners.
- This is a very common and easy-scoring OS pattern.
