Touch screen

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

Touch screen

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. A touch screen is both an input device and an output device.
A True: it displays images and also detects touch
B False: it is only an output device
2. Which pair lists the three types of touch screen in the syllabus?
A Resistive, capacitive, infra-red
B Resistive, optical, magnetic
3. What does a touch screen detect?
A The sound of a user's voice
B Where a finger or stylus touches the screen
4. Which device is a typical use of a touch screen?
A A barcode on a food packet
B A ticket machine at a station
5. A touch screen means a phone does not need a separate keyboard to enter data.
A True: an on-screen keyboard can be touched to type
B False: a phone always needs a physical keyboard

Match the Pairs

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

Left columnRight column
1touch screen Auses = [phone, tablet, kiosk, ticket machine]
2resistive, capacitive, infra-red BThe third type is infra-red, not laser. The three types are resistive, capacitive and infra-red.
3A touch screen is both an input device and an output device in one CA display that is also an input device because it detects where a finger or stylus touches it
4Touch screens are used where users need to select options directly on the display, such as phones, tablets, kiosks and ticket machines DThe three types of touch screen technology that detect where the screen is touched
5A touch screen is only an output device EA touch screen is an output device and an input device, because it also detects where a finger or stylus touches it.
6Touch screen types: resistive, capacitive, laser Finput: touch position, output: picture on display

Definitions

touch screen

Fill in the Blanks

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

1.
_____ position FROM touchscreen OUTPUT menu TO touchscreen
2.
IF touched = TRUE ____ OUTPUT menu ENDIF
3.
screenType ← "__________"
4.
kiosk.input ← touchscreen kiosk.output ← ___________
5.
IF touchCount _ 0 THEN OUTPUT ticketMenu ENDIF

Spot the Error

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

Question 1
A OUTPUT touchX, touchY
B IF touchX > 200 THEN
C OUTPUT "Menu opened"
D ENDIF
Question 2
A screen ← "capacitive"
B IF screen = "capacitive" THEN
C OUTPUT Finger works
D ENDIF
Question 3
A count ← 0
B WHILE count < 3
C OUTPUT "Tap the screen"
D count ← count - 1
E ENDWHILE
Question 4
A INPUT tapped
B IF tapped ← "Yes" THEN
C OUTPUT "Thank you"
D ENDIF
Question 5
A device ← "touch screen"
B isInput ← FALSE
C isOutput ← TRUE
D OUTPUT isInput AND isOutput

Answer Key

Touch screen
Section A: Quick Questions
Q1
A — True: it displays images and also detects touch
Q2
A — Resistive, capacitive, infra-red
Q3
B — Where a finger or stylus touches the screen
Q4
B — A ticket machine at a station
Q5
A — True: an on-screen keyboard can be touched to type
Section B: Match the Pairs
Q1
touch screen → A display that is also an input device because it detects where a finger or stylus touches it
Q2
resistive, capacitive, infra-red → The three types of touch screen technology that detect where the screen is touched
Q3
A touch screen is both an input device and an output device in one → input: touch position, output: picture on display
Q4
Touch screens are used where users need to select options directly on the display, such as phones, tablets, kiosks and ticket machines → uses = [phone, tablet, kiosk, ticket machine]
Q5
A touch screen is only an output device → A touch screen is an output device and an input device, because it also detects where a finger or stylus touches it.
Q6
Touch screen types: resistive, capacitive, laser → The third type is infra-red, not laser. The three types are resistive, capacitive and infra-red.
Section C: Definitions
Q1
touch screen — A display that is also an input device: it detects where a finger or stylus touches it. Types are resistive, capacitive and infra-red. Used in phones, tablets, kiosks and ticket machines.
Section D: Fill in the Blanks
Q1
INPUT position FROM touchscreen OUTPUT menu TO touchscreen
Q2
IF touched = TRUE THEN OUTPUT menu ENDIF
Q3
screenType ← "capacitive"
Q4
kiosk.input ← touchscreen kiosk.output ← touchscreen
Q5
IF touchCount > 0 THEN OUTPUT ticketMenu ENDIF
Section E: Spot the Error
Q1
A — The touch position is data coming in from the touch screen, so it must be read with INPUT, not OUTPUT. It should be INPUT touchX, touchY.
Q2
C — The text to display must be inside quotation marks, otherwise it is treated as variable names. It should be OUTPUT "Finger works".
Q3
D — Subtracting 1 means count never reaches 3, so the loop would never end. It should be count ← count + 1.
Q4
B — A condition compares values using =, but ← is the assignment arrow. It should be IF tapped = "Yes" THEN.
Q5
B — A touch screen detects touches, so it is an input device as well as an output display. It should be isInput ← TRUE.