Practice User Interface in CS Thinking

Use these practice problems to test your method after reviewing the concept explanation and worked examples.

Quick Recap

The visual elements and interaction methods through which a user communicates with a computing system โ€” including buttons, menus, text fields, icons, and layout. A well-designed UI follows principles of clarity, consistency, and feedback to make software intuitive and efficient to use.

The UI is everything the user sees and touches. A good UI makes the software feel easy and intuitive; a bad UI makes even simple tasks frustrating.

Showing a random 20 of 50 problems.

Example 1

medium
A long-running task shows no indicator. A user clicks 'Save' three times. What UI principle was missing and what bug results?

Example 2

easy
A screen reader reads aloud the labels of buttons. Which UI principle is being supported?

Example 3

medium
A toolbar uses a floppy-disk icon for 'Save' with no label, and new users don't recognize it. Which principle is weak and what is a low-risk fix?

Example 4

medium
A mobile app uses 10px tap targets crammed together, causing mis-taps. Which usability factor is violated and the corrective principle?

Example 5

medium
A delete action shows a confirmation dialog 'Are you sure?'. Which two UI principles does this serve?

Example 6

medium
A login page uses gray text on light gray background, failing 4.5:14.5{:}1 contrast. Which UI principle is violated?

Example 7

medium
A form shows an error 'Invalid input' with no detail after submit. How does this fail clarity, and what is the better design?

Example 8

hard
A team replaces a familiar 'hamburger menu' icon with a unique custom icon. Engagement drops 30%30\%. Which UI principle did they violate, and what is the safer alternative?

Example 9

easy
A screen shows 40 buttons of equal prominence with no grouping. Which UI mistake is this?

Example 10

hard
Design the visible states for a file upload widget so the user always knows what's happening. List them.

Example 11

easy
A form clearly labels each field and shows one obvious primary action. Which UI principle is this?

Example 12

easy
A button is clicked and a spinner appears while data loads. Which UI principle does the spinner serve?

Example 13

easy
CLI stands for what?

Example 14

easy
The interface uses the same icon style throughout. Which principle is this?

Example 15

medium
App A puts navigation on the left on the home screen but on the bottom on the settings screen, with different icons. Which principle is violated and what is the user impact?

Example 16

medium
An app uses red for a 'Save' button and green for a 'Delete' button. Why is this a UI problem?

Example 17

medium
A signup form has an inline 'check' next to a valid email field as the user types. Which UI principle does this support?

Example 18

easy
A confirmation 'Are you sure you want to delete?' helps prevent ____.

Example 19

hard
Explain what usability testing is and design a simple usability test for a school timetable app. Include: tasks for testers, what to measure, and how to use the results.

Example 20

challenge
A new feature requires changes to 6 screens. You can either redesign all 6 at once or only 2 of them, leaving 4 in the old style. Which path is better and why?