Devices that are both input and output

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

Devices that are both input and output

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. A touchscreen on a tablet is...
A Only an output device
B Both an input device and an output device
2. Which part of a touchscreen is the INPUT job?
A Sensing your tap or swipe
B Showing the game picture
3. Which part of a touchscreen is the OUTPUT job?
A Feeling your finger swipe
B Showing the picture you see
4. You swipe to scroll through photos on a phone. Which is the input?
A Your swipe on the screen
B The photos that appear
5. A game controller that vibrates when your character gets hit is...
A Both input and output
B Input only

Match the Pairs

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

Left columnRight column
1touchscreen AA touchscreen is not only an input device. It also shows the picture, so it is an output device too.
2headset Bcontroller.vibrate()
3A game controller that vibrates is an input device when you press buttons and an output device when it buzzes CA headset also has a microphone, which is input, so it is both input and output, not output only.
4A touchscreen takes a tap or swipe in as input, then shows a picture out as output DA screen that senses your tap or swipe (input) and also shows the picture (output)
5touchscreen = input device only EA device with a microphone (input) and speakers (output) in one
6headset = output device only (speakers) Ftap(button) -> show(picture)

Definitions

touchscreen

Fill in the Blanks

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

1.
tap or swipe = _____
2.
touchscreen shows picture = ______
3.
touchscreen = input ___ output
4.
button press = input controller ________ = output
5.
microphone = input ________ = output

Spot the Error

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

Question 1
A device ← touchscreen
B input ← the picture shown
C output ← picture
Question 2
A IF device is keyboard THEN
B it is input and output
C END IF
Question 3
A controller ← input only
B input ← button press
C output ← vibration
Question 4
A headset ← device
B input ← microphone
C output ← speakers
D result ← output only
Question 5
A WHEN player taps the screen
B microphone senses the tap
C game updates the picture
D screen shows new picture

Answer Key

Devices that are both input and output
Section A: Quick Questions
Q1
B — Both an input device and an output device
Q2
A — Sensing your tap or swipe
Q3
B — Showing the picture you see
Q4
A — Your swipe on the screen
Q5
A — Both input and output
Section B: Match the Pairs
Q1
touchscreen → A screen that senses your tap or swipe (input) and also shows the picture (output)
Q2
headset → A device with a microphone (input) and speakers (output) in one
Q3
A game controller that vibrates is an input device when you press buttons and an output device when it buzzes → controller.vibrate()
Q4
A touchscreen takes a tap or swipe in as input, then shows a picture out as output → tap(button) -> show(picture)
Q5
touchscreen = input device only → A touchscreen is not only an input device. It also shows the picture, so it is an output device too.
Q6
headset = output device only (speakers) → A headset also has a microphone, which is input, so it is both input and output, not output only.
Section C: Definitions
Q1
touchscreen — A screen that is both an input device, because it senses your tap or swipe, and an output device, because it shows the picture.
Section D: Fill in the Blanks
Q1
tap or swipe = input
Q2
touchscreen shows picture = output
Q3
touchscreen = input AND output
Q4
button press = input controller vibrates = output
Q5
microphone = input speakers = output
Section E: Spot the Error
Q1
B — A touchscreen senses taps and swipes, so that is its input. The picture it shows is the output. Line 2 should be: input ← tap and swipe.
Q2
A — A keyboard is an input device only. The touchscreen is the device that is both input and output. Line 1 should be: IF device is touchscreen THEN.
Q3
A — A game controller that vibrates is also an output device, so it is both input and output. Line 1 should be: controller ← input and output.
Q4
D — The microphone is input and the speakers are output, so a headset is both. Line 4 should be: result ← input and output.
Q5
B — The touchscreen senses a tap, not a microphone. Line 2 should be: screen senses the tap.