Back to 课程

Computer Science GCES AQA

0% Complete
0/0 Steps
  1. Representing Algorithms Aqa
    4 主题
  2. Efficiency Of Algorithms Aqa
    1 主题
  3. Searching Algorithms Aqa
    3 主题
  4. Sorting Algorithms Aqa
    3 主题
  5. Data Types Aqa
    1 主题
  6. Programming Concepts Aqa
    5 主题
  7. Arithmetic Relational And Boolean Operations Aqa
    1 主题
  8. Data Structures Aqa
    3 主题
  9. String Manipulation Aqa
    1 主题
  10. Random Number Generation Aqa
    1 主题
  11. Structured Programming Aqa
    2 主题
  12. Robust And Secure Programming Aqa
    4 主题
  13. Number Bases Aqa
    2 主题
  14. Converting Between Number Bases Aqa
    3 主题
  15. Units Of Information Aqa
    9 主题
  16. Hardware And Software Aqa
    4 主题
  17. Boolean Logic Aqa
    3 主题
  18. Programming Languages And Translators Aqa
    2 主题
  19. Cpu Architecture Performance And Embedded Systems Aqa
    4 主题
  20. Memory Aqa
    2 主题
  21. Secondary Storage Aqa
    3 主题
  22. Fundamentals Of Computer Networks Aqa
    8 主题
  23. Fundamentals Of Cyber Security Aqa
    1 主题
  24. Methods Of Preventing Cyber Security Threats Aqa
    1 主题
  25. Relational Databases Aqa
    2 主题
  26. Ethical Legal And Environmental Impacts Aqa
    2 主题
课 Progress
0% Complete

Exam code:8525

Inputs & Outputs

What is an input?

  • An input is a value that is read from an input device and then processed by a computer program

  • Typical input devices include:

    • Keyboards – Typing text

    • Mice – Selecting item, clicking buttons

    • Sensors – Reading data from sensors such as temperature, pressure or motion

    • Microphone – Capturing audio, speech recognition

  • Without inputs, programs are not useful as they can’t interact with the outside world and always produce the same result

  • In programming the keyboard is considered the standard for user input

  • If the command ‘USERINPUT‘ is executed, a program will wait for the user to type a sequence of characters

  • In other programming languages different command words can be used

Examples

AQA pseudocode

Python

nameleftwards arrowUSERINPUT

IF name = "James" OR name = "Rob" THEN...

name=input("Enter your name: ")

if name == "James" or name == "Rob":

What is an output?

  • An output is a value sent to an output device from a computer program

  • Typical output devices include:

    • Monitor – Displaying text, images or graphics

    • Speaker – Playing audio

    • Printer – Creating physical copies of documents or images

  • In programming the monitor is considered the standard for user output

  • If the command ‘OUTPUT‘ is executed, a program will output to the screen

  • In other programming languages different command words can be used

Example

AQA pseudocode

Python

nameleftwards arrowUSERINPUT

IF name = "James" OR name = "Rob" THEN

OUTPUT "Great names!"

name=input("Enter your name: ")

if name == "James" or name == "Rob":

print("Great names!")

Worked Example

A bus company offers a discount to passengers if they have a valid ‘student’ card or are over 65 years of age.

Identify all the inputs that will be required in an algorithm to solve this problem [2]

Answer

  • Student card (YES/NO)

  • Age (integer)

Responses

您的邮箱地址不会被公开。 必填项已用 * 标注