3.2.3 Input/output and file handling

    Cards (108)

    • What is the purpose of input devices in a computer system?
      Enable data entry
    • What type of input device converts physical documents into digital files?
      Scanner
    • Input devices enable data entry into the computer, while output devices provide information from the computer.

      True
    • What input device is used for capturing audio input?
      Microphone
    • What type of output device uses LCD, LED, or OLED technology?
      Monitor
    • A projector uses LCD or DLP technology to project visual information onto a screen
    • Input and output work together in programs to allow user interaction with the system.

      True
    • Which output device is used for displaying visual information in programs?
      Monitor
    • What is 'input' in the context of computer programs?
      Data entered into the system
    • Which output device is used for producing hard copies of documents?
      Printer
    • What is the primary function of input devices?
      Data entry into the computer
    • Input devices enable users to interact with the computer by entering data.

      True
    • What is the main application of a touchscreen device?
      Direct interaction via touch
    • A printer is an example of an output device.

      True
    • How do input and output devices work together in computer programs?
      Allow user interaction
    • Steps involved in using the `input()` command in programming
      1️⃣ The `input()` command displays a prompt for the user to enter a value
      2️⃣ The user enters the value and presses Enter
      3️⃣ The entered value is stored in a variable
    • The `print()` command starts a new line by default
    • What is the role of input devices in a computer system?
      Enable data entry
    • Match the input device with its functionality:
      Scanner ↔️ Converts physical documents into digital files
      Microphone ↔️ Captures audio input
    • A plotter is used to create large-format technical drawings.

      True
    • How does a program utilize input and output devices for user interaction?
      Processes input and generates output
    • Input refers to data entered into the computer, such as through a keyboard or mouse
    • What is the purpose of a keyboard as an input device?
      Entering text and commands
    • Steps in using the `input()` command in programming
      1️⃣ The command displays a prompt for the user
      2️⃣ The user types the value and presses Enter
      3️⃣ The entered value is stored in a variable
    • In the `print()` command, items are separated by commas.
    • Match the file type with its extension and description:
      Text File ↔️ .txt - Stores plain text data
      CSV File ↔️ .csv - Comma-separated values for tabular data
      JSON File ↔️ .json - JavaScript Object Notation for structured data
      Binary File ↔️ .bin - Stores binary data
    • What two arguments does the `open()` function take?
      File path and file mode
    • What are two issues that can arise if a file is left open without being closed?
      Resource leaks and data loss
    • The `read()` method is used to read a single line from a file.
      False
    • `writelines()` writes a list of strings to a file, each on a new line.
    • What does the `write()` method do when writing data to a file?
      Writes a single string
    • Match the method with its description:
      `write(text)` ↔️ Writes a single string to the file
      `writelines(list_of_lines)` ↔️ Writes a list of strings to the file
    • In computer science, input refers to the data that enters a computer system
    • What does 'input' refer to in computer science?
      Data entered into the system
    • What is the function of output devices in a computer system?
      Display or provide information
    • Which input device captures audio for voice input or recording?
      Microphone
    • The keyboard is used for entering text and commands
    • Match the output device with its purpose:
      Monitor ↔️ Displays visual information
      Printer ↔️ Produces hard copies of documents
      Speaker ↔️ Outputs audio
    • Which output device can produce 3D objects?
      3D Printer
    • What output device is used for producing large-format drawings and designs?
      Plotter
    See similar decks