Find a course
Age level: Teens (12–18)BeginnerTechnology & Programming

Computer Science Principles

Data, algorithms, the internet and the impact of computing, the big ideas of CS

⏱ 1 h 55 min4 modules · 11 lessons46 practice questionsFinal exam: 20 questions
First name and initial are enough.
Included with this course

Your certificate for this course

Finish the 11 lessons (about 1 h 55 min) and pass the 20-question final exam. Your Certificate of Completion is ready the moment you pass.

  • Your name and this course titlePrinted in classic diploma typography
  • Grade: Pass, Merit or DistinctionOn the gold seal, with your final score
  • Unique ID and QR codeAnyone can verify it in seconds
  • Score report PDFModule-by-module results and exam score
  1. Lessons11 lessons
  2. Final exam20 questions · 70% to pass
  3. CertificatePDF + score report

What you will learn

  • Describe how programs are developed iteratively and identify syntax, logic, run-time and overflow errors
  • Explain how bits represent numbers, text and media, and compare lossless and lossy compression
  • Trace code that uses variables, lists, conditionals, loops and procedures written in AP-style pseudocode
  • Compare linear and binary search and distinguish reasonable from unreasonable running times
  • Explain how packets, protocols and redundancy make the internet work, and calculate parallel speedup
  • Evaluate beneficial and harmful effects of computing, including bias, the digital divide and intellectual property
  • Apply safe computing practices, including how encryption, authentication and phishing awareness protect data

About this course

Computer science is much more than writing code. It's the study of how information is represented, how problems are solved step by step, how billions of devices talk to each other, and how all of this changes the way people live. This free course covers those big ideas in one sitting, using the same five themes as the AP Computer Science Principles framework: creative development, data, algorithms and programming, computer systems and networks, and the impact of computing.

You'll start with how programs are built by teams and how to find and fix errors. Then you'll see how everything a computer stores, from a song to a selfie, comes down to bits, why computers sometimes get arithmetic slightly wrong, and how compression and data analysis work. In the programming module you'll read the style of pseudocode used on the AP exam, trace lists and procedures, compare linear and binary search, and learn why some problems can't be solved efficiently, or at all.

Next you'll follow a message across the internet in packets, discover why the network keeps working when parts of it fail, and calculate how much faster a job runs in parallel. Finally, you'll weigh the benefits and harms of computing, the digital divide, bias in algorithms, copyright and open licenses, and how encryption and good habits keep your data safe.

The course is designed for high school students, whether you're taking AP CSP, an intro CS class, or just curious. It's also a solid review before an exam. Lessons mix short explanations with worked examples, code-tracing questions and a few coding challenges, and you can earn a free certificate of completion by passing the final exam.

Syllabus

  1. Creative Development and Data

    See how programs are designed and debugged by teams, then learn how computers represent, compress and analyze data with bits.

    1. How Programs Are Made11 min
    2. Bits, Binary and Digital Data12 min
    3. Compression, Metadata and Data Analysis12 min
  2. Algorithms and Programming

    Read and trace AP-style pseudocode with variables, lists, conditionals, loops and procedures, then compare algorithms by how efficiently they solve problems.

    1. Variables, Lists and Procedures12 min
    2. Conditionals, Loops and Tracing13 min
    3. Algorithms, Search and Efficiency13 min
  3. Computer Systems and Networks

    Follow data across the internet in packets, see why redundancy makes networks fault tolerant, and calculate how parallel computing speeds up work.

    1. How the Internet Works13 min
    2. Parallel and Distributed Computing11 min
  4. Impact of Computing

    Weigh the benefits and harms of computing innovations, understand bias, the digital divide and intellectual property, and protect data with safe computing habits.

    1. Benefits, Harms and the Digital Divide11 min
    2. Intellectual Property, Licensing and Legal Issues10 min
    3. Safe Computing and Cybersecurity13 min
  5. Final exam and certificate

    20 questions drawn from a pool of 34. Score 70% or more to pass; retakes get a fresh set of questions.

Try a sample question

A value stored in 8 bits can represent any whole number from 0 to 256.

True or false?

Show the answer

Answer: False

Eight bits give 28 = 256 different values, but counting starts at 0, so the largest is 255. Trying to store 256 in 8 bits causes an overflow, which is the classic off-by-one trap in this question.

Algorithm
A finite set of instructions that accomplishes a specific task.
Iterative development
Building a program in repeated cycles of designing, coding, testing and refining.
Syntax error
A mistake in the rules of the language, such as a missing parenthesis, that stops the program from running.
Logic error
A mistake in the algorithm that makes a program run but produce wrong results.
Run-time error
An error that occurs while the program is running, such as dividing by zero.
Overflow error
An error that occurs when a number is too large for the fixed number of bits used to store it.

Frequently asked questions

Is this course the official AP Computer Science Principles course?

No. It's an independent course that covers the same big ideas as the AP CSP framework and works well for review, but it isn't endorsed by the College Board. For official exam details, check the College Board's AP Central website.

Do I need to know a programming language for AP CSP?

The exam uses its own language-neutral pseudocode, and you'll read lots of it in this course. You also build a program for the Create performance task, in any language your class uses, so practice with a real language such as Python or JavaScript helps a lot.

Why does the AP pseudocode start lists at index 1?

The exam's reference language is designed to be easy to read, so the first element is element 1. Many real languages, including Python and JavaScript, start at 0. Always check which convention a question uses before tracing code.

What is the difference between AP CSP and AP Computer Science A?

CSP is a broad introduction covering data, networks, the impact of computing and programming concepts in a language of your choice. CS A focuses deeply on programming in Java, including object-oriented design. Many students take CSP first.

How should I study for the multiple-choice questions?

Practice tracing code by hand with a table of variable values, learn the vocabulary (lossless, heuristic, fault tolerance, PII and so on), and work through official practice questions. Most mistakes come from rushing through a loop or misreading the list index.

Is computer science only for people who want to be programmers?

Not at all. Understanding data, algorithms and security helps in medicine, business, art, law and almost every field, and it helps you make informed choices about the technology you use every day.

Sources and further reading

Related courses

University studentsBeginner

Introduction to Computer Science

Binary, hardware, algorithms, code and the internet: the ideas behind every computer

Technology & Programming
2 h 35 min12 lessonsCertificate
University studentsBeginner

How Computers Work

From bits and logic gates to processors, memory and the operating system

Technology & Programming
2 h 25 min11 lessonsCertificate
University studentsIntermediate

Data Structures and Algorithms

Big O, arrays, hash tables, trees, graphs, sorting and dynamic programming with hands-on code

Technology & Programming
2 h 40 min13 lessonsCertificate
University studentsIntermediate

Object-Oriented Programming

Classes, encapsulation, inheritance, polymorphism and SOLID design

Technology & Programming
2 h 40 min12 lessonsCertificate
TeensBeginner

Binary and Number Systems

Count, convert and calculate in binary, hexadecimal and octal like a computer

Technology & Programming
1 h 50 min11 lessonsCertificate
University studentsIntermediate

Operating Systems Concepts

Processes, threads, scheduling, memory, file systems and protection explained

Technology & Programming
2 h 50 min11 lessonsCertificate