Caveat Academic Services
Every course and price · Practice course
Practice course · Grades 9 to 12 · Follows a typical semester Computer Science elective

High School Electives: Introduction to Computer Science

A semester of introductory computer science in six units: what computers do and how they store data in binary, algorithms and pseudocode, Python basics with variables and decisions, loops and functions, lists and debugging, and how the internet works along with data privacy and computing ethics. Most students finish a unit every two to three weeks, and every program can be typed and run in free Python tools.

Read lesson 1 belowSelf-pacedIncluded with Caveat Plus
Cover of High School Electives: Introduction to Computer Science

6 modules · 18 lessons · about 15 hours · practice after every lesson and an exam for every module

Module 1 · Lesson 1 of 3

Input, processing, storage and output

A computer is a machine that follows instructions to work with data. Phones, laptops, game consoles, smart thermostats and the chip inside a car's brakes are all computers. However different they look, they share the same four jobs: they take in data, process it, store it and send out results. Computer scientists call this the input, processing, storage, output model.

Data
facts or values a computer works with, such as numbers, text, images and sound
Hardware
the physical parts of a computer that you can touch
Software
the programs, or sets of instructions, that tell hardware what to do
CPU
the central processing unit, the chip that carries out instructions
Memory, or RAM
fast, temporary storage for programs and data in use; it is cleared when power is off
Storage
long-term storage, such as a solid-state drive, that keeps files when power is off
Operating system
the main software that manages hardware and runs other programs, such as the system on a phone or laptop

The four jobs

JobWhat it meansExamples of hardware
InputData comes inKeyboard, touchscreen, microphone, camera, sensors
ProcessingInstructions change or analyze dataCPU, graphics processor
StorageData is kept for laterRAM for now, solid-state drive or memory card for later
OutputResults go outScreen, speaker, printer, motor, vibration

Worked example: taking a photo on a phone

  1. Input: the camera sensor measures the light hitting it, and your tap on the screen is also input.
  2. Processing: the CPU and graphics chips adjust brightness and color and compress the image so the file is smaller.
  3. Storage: the photo is saved to the phone's long-term storage so it is still there after a restart.
  4. Output: the photo appears on the screen.
  5. Answer: one tap uses all four jobs.

Hardware and software work together

Hardware without software is like a piano with nobody to play it. Software is written by programmers as a list of instructions. The operating system sits between apps and hardware. When a game wants to play a sound, it asks the operating system, which sends the sound to the speaker. Apps, also called application software, do specific tasks for users, like editing photos or sending messages.

Computers are fast and exact, but they are not smart in the human sense. A computer does precisely what its instructions say, no more and no less. If the instructions have a mistake, the computer will follow the mistake perfectly. That is why learning to write clear, correct instructions is the heart of computer science.

At-home activity: computer hunt

  1. Walk through your home and list at least six devices that contain a computer, such as a microwave or a TV remote.
  2. For three of them, name one input, the processing, any storage and one output.
  3. Circle the device you think has the most powerful processor, and explain why in one sentence.
The rest of the course comes after checkout

This is the real start of lesson 1.

What you will be able to do

  • Explain the four jobs of a computer and convert numbers between binary and decimal.
  • Design algorithms in pseudocode and compare the efficiency of linear and binary search.
  • Predict the output of Python code that uses variables, types, operators and if, elif and else.
  • Trace while loops, for loops and functions, and explain the difference between return and print.
  • Process lists with loops and classify and fix syntax, runtime and logic errors.
  • Explain how packets, DNS and encryption move and protect data, and evaluate an app design for privacy, bias and access.

What is in the course

  1. Module 1: What computers doInput, processing, storage and output · Binary: how computers represent data · Programs, languages and your first Python program · about 2.3 hours
  2. Module 2: Algorithms and pseudocodeWhat an algorithm is · Pseudocode and flowcharts · Searching and sorting · about 2.5 hours
  3. Module 3: Python basics: variables, types and decisionsVariables, strings and input · Numbers, operators and data types · Making decisions with if, elif and else · about 2.6 hours
  4. Module 4: Loops and functionsWhile loops · For loops and range · Functions · about 2.9 hours
  5. Module 5: Lists and debuggingLists · Processing lists with loops · Debugging · about 2.7 hours
  6. Module 6: Data, the internet and computing ethicsHow the internet works · Data, privacy and security · Computing ethics and careers · about 2.2 hours

For families

This is a practice course that follows a typical semester Computer Science elective; it does not replace the school course, awards no credit, and is not a substitute for a teacher who can review your student's code. Plan on about 30 to 45 minutes per lesson plus time at the keyboard; all coding uses free software, such as Python from python.org or a free browser-based Python editor, and nothing needs to be purchased.

See every course

Secure checkout by StripeYour card details go to Stripe, not to us.
Ready right after checkoutNothing to wait for. It stays in your account.
For your familyIncluded with Caveat Plus. Questions: team@caveatacademic.com.

For use by the purchasing family; please do not resell or post it. Questions or a problem with an order: team@caveatacademic.com. Caveat Academic Services is independent and not affiliated with any school district or curriculum publisher.

Written with AI, then checked before it is published. How we checkFound a mistake? Report it and we fix it, or refund you.Cancel anytime.