Bird
Raised Fist0
Intro to Computingfundamentals~10 mins

Input devices (keyboard, mouse, touchscreen) in Intro to Computing - Interactive Code Practice

Choose your learning style10 modes available

Start learning this pattern below

Jump into concepts and practice - no test required

or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to print the name of an input device.

Intro to Computing
device = '[1]'
print(device)
Drag options to blanks, or click blank then click option'
Akeyboard
Bprinter
Cmonitor
Dspeaker
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing output devices like monitor or speaker instead of input devices.
2fill in blank
medium

Complete the code to check if the input device is a mouse.

Intro to Computing
if device == '[1]':
    print('This is a pointing device')
Drag options to blanks, or click blank then click option'
Amouse
Bprinter
Ctouchscreen
Dkeyboard
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing touchscreen with mouse.
Using output devices like printer.
3fill in blank
hard

Fix the error in the code to correctly identify a touchscreen device.

Intro to Computing
device = 'touchscreen'
if device [1] 'touchscreen':
    print('Input device detected')
Drag options to blanks, or click blank then click option'
A=
B==
C!=
D=>
Attempts:
3 left
💡 Hint
Common Mistakes
Using '=' instead of '==' in the if condition.
Using invalid operators like '=>'.
4fill in blank
hard

Fill both blanks to create a list of input devices and print the first one.

Intro to Computing
input_devices = ['[1]', '[2]', 'touchscreen']
print(input_devices[0])
Drag options to blanks, or click blank then click option'
Akeyboard
Bmonitor
Cmouse
Dprinter
Attempts:
3 left
💡 Hint
Common Mistakes
Including output devices in the input devices list.
Mixing up the order of devices.
5fill in blank
hard

Fill all three blanks to create a dictionary with device names as keys and their types as values.

Intro to Computing
devices = {
    '[1]': 'input',
    '[2]': 'input',
    '[3]': 'output'
}
print(devices)
Drag options to blanks, or click blank then click option'
Akeyboard
Bmouse
Cmonitor
Dprinter
Attempts:
3 left
💡 Hint
Common Mistakes
Assigning output device types to input devices.
Confusing device names and types.

Practice

(1/5)
1. Which of the following is an input device that allows you to type letters and numbers into a computer?
easy
A. Monitor
B. Keyboard
C. Printer
D. Speaker

Solution

  1. Step 1: Understand the function of a keyboard

    A keyboard lets you enter letters, numbers, and symbols by pressing keys.
  2. Step 2: Identify other devices' roles

    A monitor displays output, a printer prints documents, and a speaker plays sound, so they are not input devices.
  3. Final Answer:

    Keyboard -> Option B
  4. Quick Check:

    Typing device = Keyboard [OK]
Hint: Keyboard = device for typing letters and numbers [OK]
Common Mistakes:
  • Confusing keyboard with monitor
  • Thinking printer inputs data
  • Mixing speaker with input device
2. Which of the following is the correct way to describe a mouse in computing?
easy
A. An input device used to point and click
B. An output device that shows images
C. A device that prints documents
D. A device that plays audio

Solution

  1. Step 1: Define the mouse's role

    A mouse is used to move a pointer on the screen and click to select items, so it is an input device.
  2. Step 2: Eliminate other options

    Showing images is done by a monitor (output), printing by a printer, and playing audio by speakers, so these are incorrect.
  3. Final Answer:

    An input device used to point and click -> Option A
  4. Quick Check:

    Mouse = input pointer device [OK]
Hint: Mouse lets you point and click on screen [OK]
Common Mistakes:
  • Thinking mouse shows images
  • Confusing mouse with printer
  • Mixing mouse with speaker
3. Look at this simple flowchart for a touchscreen input: Start -> User touches screen -> Screen detects touch location -> System processes input -> End What is the main role of the touchscreen in this flowchart?
medium
A. To detect where the user touches
B. To print the user's input
C. To display images to the user
D. To play sounds when touched

Solution

  1. Step 1: Analyze the flowchart steps

    The flowchart shows the user touching the screen and the screen detecting the touch location, which means the touchscreen senses input.
  2. Step 2: Understand touchscreen function

    Touchscreens detect where the user touches to send that information to the system; they do not print or play sounds.
  3. Final Answer:

    To detect where the user touches -> Option A
  4. Quick Check:

    Touchscreen = detects touch location [OK]
Hint: Touchscreen senses where you touch it [OK]
Common Mistakes:
  • Thinking touchscreen prints input
  • Confusing touchscreen with speaker
  • Assuming touchscreen only displays images
4. A user complains that their mouse is not working. Which of the following is the most likely cause based on input device knowledge?
medium
A. The printer is out of ink.
B. The monitor is turned off.
C. The keyboard keys are stuck.
D. The mouse is not connected properly to the computer.

Solution

  1. Step 1: Identify the problem with the mouse

    If the mouse is not working, a common cause is it not being connected properly (wired or wireless).
  2. Step 2: Eliminate unrelated options

    Monitor off affects display, keyboard keys stuck affect typing, and printer ink affects printing, none relate to mouse function.
  3. Final Answer:

    The mouse is not connected properly to the computer. -> Option D
  4. Quick Check:

    Mouse issue = connection problem [OK]
Hint: Check mouse connection first if it stops working [OK]
Common Mistakes:
  • Blaming monitor for mouse issues
  • Confusing keyboard problems with mouse
  • Thinking printer affects mouse
5. A new tablet device uses a touchscreen and a virtual keyboard on the screen. Which of the following best explains how these input devices work together?
hard
A. The virtual keyboard prints letters, and the touchscreen plays sounds.
B. The touchscreen prints documents, and the virtual keyboard controls the mouse.
C. The touchscreen detects finger taps, and the virtual keyboard shows keys on the screen for typing.
D. The virtual keyboard is a physical device connected to the tablet.

Solution

  1. Step 1: Understand touchscreen and virtual keyboard roles

    The touchscreen senses finger taps anywhere on the screen, including taps on the virtual keyboard displayed on the screen.
  2. Step 2: Explain how they work together

    The virtual keyboard is a software display of keys on the touchscreen; tapping these keys sends input to the system for typing.
  3. Step 3: Eliminate incorrect options

    Virtual keyboard does not print letters physically, touchscreen does not print or play sounds, and virtual keyboard is not a physical device here.
  4. Final Answer:

    The touchscreen detects finger taps, and the virtual keyboard shows keys on the screen for typing. -> Option C
  5. Quick Check:

    Touchscreen + virtual keyboard = tap keys on screen [OK]
Hint: Virtual keyboard is on touchscreen; taps register as typing [OK]
Common Mistakes:
  • Thinking virtual keyboard is physical
  • Confusing touchscreen with printer
  • Assuming virtual keyboard prints letters