OS function: providing a graphical user interface (GUI)

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

OS function: providing a graphical user interface (GUI)

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. Which interface lets you control the computer by clicking windows, icons and menus?
A GUI
B CLI
2. Which one is part of a GUI?
A A prompt where you type commands only
B A pointer moved by a mouse to select icons
3. What is a window in a GUI?
A A box on screen that shows one program or file
B A small picture that stores the CPU state
4. What is an icon in a GUI?
A A small picture that represents a file, folder or program
B A list of typed commands the OS accepts
5. What is a menu in a GUI?
A A device that moves the pointer
B A list of options the user can choose from

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1WIMP ANeeds more RAM and CPU time than: dir
2Pointer BThis describes a command-line interface (CLI). A GUI is controlled using windows, icons, menus and a pointer.
3A GUI is easy for beginners because they click on pictures instead of remembering commands CThe four main parts of a GUI: Windows, Icons, Menus and a Pointer
4A GUI uses more system resources than a CLI because it must draw graphics, windows and a pointer DDouble-click the Recycle Bin icon
5A GUI is controlled only by typing commands at a prompt EIt is the other way round. A GUI uses more system resources, such as RAM and CPU time, because it has to display graphics.
6A GUI uses fewer system resources than a CLI FThe arrow on screen, moved with a mouse, that the user uses to click icons and choose menu options

Definitions

GUI

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
GUI = Windows, Icons, Menus, _______
2.
GUI = _________ User Interface
3.
doubleClick(____) open(app)
4.
resources(GUI) _ resources(CLI)
5.
IF user = "beginner" ____ interface ← "GUI" ENDIF

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A window ← "Notes"
B IF minimise = TRUE
C HIDE window
D ENDIF
Question 2
A interface ← "CLI"
B uses ← "windows, icons, menus"
C pointer ← TRUE
D OUTPUT interface
Question 3
A menu ← ["File","Edit","View"]
B FOR item IN menu
C OUTPUT item
D ENDIF
Question 4
A windows ← 3
B memoryUsed ← window * 50
C OUTPUT memoryUsed
Question 5
A icon ← "Recycle Bin"
B IF doubleClick = TRUE THEN
C CLOSE icon
D ENDIF

Answer Key

OS function: providing a graphical user interface (GUI)
Section A: Quick Questions
Q1
A — GUI
Q2
B — A pointer moved by a mouse to select icons
Q3
A — A box on screen that shows one program or file
Q4
A — A small picture that represents a file, folder or program
Q5
B — A list of options the user can choose from
Section B: Match the Pairs
Q1
WIMP → The four main parts of a GUI: Windows, Icons, Menus and a Pointer
Q2
Pointer → The arrow on screen, moved with a mouse, that the user uses to click icons and choose menu options
Q3
A GUI is easy for beginners because they click on pictures instead of remembering commands → Double-click the Recycle Bin icon
Q4
A GUI uses more system resources than a CLI because it must draw graphics, windows and a pointer → Needs more RAM and CPU time than: dir
Q5
A GUI is controlled only by typing commands at a prompt → This describes a command-line interface (CLI). A GUI is controlled using windows, icons, menus and a pointer.
Q6
A GUI uses fewer system resources than a CLI → It is the other way round. A GUI uses more system resources, such as RAM and CPU time, because it has to display graphics.
Section C: Definitions
Q1
GUI — Graphical user interface: the user controls the computer with windows, icons, menus and a pointer instead of typing commands. It suits beginners but uses more system resources than a CLI.
Section D: Fill in the Blanks
Q1
GUI = Windows, Icons, Menus, Pointer
Q2
GUI = Graphical User Interface
Q3
doubleClick(icon) open(app)
Q4
resources(GUI) > resources(CLI)
Q5
IF user = "beginner" THEN interface ← "GUI" ENDIF
Section E: Spot the Error
Q1
B — The IF statement is missing THEN. It should be IF minimise = TRUE THEN, so that clicking minimise hides the window.
Q2
A — A CLI uses typed commands. A GUI uses windows, icons, menus and a pointer, so the interface should be "GUI".
Q3
D — A FOR loop must be closed with NEXT, not ENDIF. ENDIF belongs to IF statements. It should be NEXT item.
Q4
B — The variable is called windows, not window, so window has no value. This shows each open window using more resources. It should be windows * 50.
Q5
C — In a GUI, double-clicking an icon opens it. The action should be OPEN icon, not CLOSE icon.