Computer science education
Computer science education is the teaching and learning of computing, from first lessons in primary school to university degrees. It covers what students should learn, such as programming, algorithms, and how computers and networks work, and how best to teach these things.
The field is also an area of research, often called computing education research. Researchers study why learning to program is hard for many beginners and which teaching methods help. They also study why some groups of people take part in computing much less than others.
Scope of the field
Computer science education happens at several levels, each with its own goals and tools.
- School (K-12). Lessons for children and teenagers, from kindergarten through grade 12 in US terms. These often aim at broad literacy in computing, not job training.
- University. Degree programs that prepare students to work as software developers, researchers, or teachers in computer science.
- Informal learning. Campaigns, online communities, and free tools that people use outside class, such as the Hour of Code and the Scratch website.
The field has two sides.
- Practice. Designing courses, curricula, and teaching tools.
- Research. Testing how people learn computing and whether those designs work.
Why teach computing
Computational thinking
One argument for teaching computing to everyone is that its ways of thinking are useful beyond computer science. Computational thinking means solving problems the way a computer scientist does. Examples include the following.[1]
- Breaking a problem into smaller parts.
- Spotting patterns.
- Choosing which information to use.
In a 2006 essay, Jeannette Wing called computational thinking a basic skill "for everyone, not just for computer scientists." She added that "to reading, writing, and arithmetic, we should add computational thinking."[2] Wing stressed that this is more than being able to program a computer, because it "requires thinking at multiple levels of abstraction."[2]
Creators, not only users
School curricula also give a second reason, which is to make students creators of technology and not only users of it. The US K-12 Computer Science Framework describes students who are "not just computer users but also computationally literate creators," meaning people who understand computing and can make things with it.[3] England's national curriculum says computing "equips pupils to use computational thinking and creativity to understand and change the world."[4]
Computing in schools
Special programming languages for children have been central to school computing since the 1960s.[5] Two of the best known are Logo and Scratch.
Logo
Logo was the first computer language made for children. Seymour Papert, Wallace Feurzeig, Daniel Bobrow, and Cynthia Solomon invented it in 1966 at Bolt, Beranek and Newman.[5]
Logo's authors describe it as more than a language. It is a learning environment where children explore mathematical ideas and build projects of their own design.[5]
Scratch and block-based languages
In a block-based language, a type of visual programming language, learners build programs by snapping graphical blocks together instead of typing text. Scratch is a block-based language from the Lifelong Kindergarten group at the MIT Media Lab, led by Mitchel Resnick.[6]
Scratch launched publicly in May 2007 together with a website where users share and remix projects.[6]
In 2009 the website's main users were between 8 and 16 years old.[6]
Scratch avoids the hard-to-remember syntax (the exact rules for writing code) and punctuation of traditional programming languages.[6] Instead, the shape of each block shows how it can be used.[6]
- Blocks fit together only in ways that make sense to the language.
- Loops, which are instructions that a program repeats, such as "forever" and "repeat", are C-shaped so that other blocks go inside them.
- Blocks that give numbers are ovals.
- Blocks that give true-or-false values are hexagons.
Unplugged activities
Some teachers introduce computing ideas with no computer at all. CS Unplugged, a project led by Tim Bell at the University of Canterbury in New Zealand, began in the 1990s. Academics used it to introduce computing when visiting schools that had little equipment, with activities built on cards, balance scales, and games.[7]
The best-known activity teaches binary numbers with five cards that carry 16, 8, 4, 2, and 1 dots. Children turn cards face up or face down to show a given number of dots, then write 1 for a face-up card and 0 for a hidden one.[8] With five cards they can show every number from 0 to 31, and each number has only one pattern.[8]
Unplugged lessons are now often used before programming, not instead of it. Felienne Hermans and Efthimia Aivaloglou ran a controlled study, which compares groups of students while keeping other conditions as similar as possible. They compared two courses.[7]
| Course design | Programming results | Self-efficacy |
|---|---|---|
| Half unplugged, half programming | Just as good as the programming-only course | Higher |
| All programming | Just as good as the mixed course | Lower |
Self-efficacy means a student's belief in their own ability.[7]
School frameworks and curricula
Several countries and organizations have written frameworks that say what school students should learn about computing. Three examples follow.
K-12 Computer Science Framework (United States, 2016). The Association for Computing Machinery (ACM), Code.org, the Computer Science Teachers Association, the Cyber Innovation Center, and the National Math and Science Initiative developed it.[3] It is a broad framework, not a set of standards, that states and districts can use to write their own.[9] It pairs five core concepts with seven core practices.[1] Two practices name computational artifacts, which are things students make with computing, such as programs, simulations, animations, robots, and apps.[1]
| Core concepts | Core practices |
|---|---|
| Computing systems | Fostering an inclusive computing culture |
| Networks and the internet | Collaborating around computing |
| Data and analysis | Recognizing and defining computational problems |
| Algorithms and programming | Developing and using abstractions |
| Impacts of computing | Creating computational artifacts |
| Testing and refining computational artifacts | |
| Communicating about computing |
England's computing curriculum (2014). England moved from teaching information and communication technology (ICT), which focused on using software, to a curriculum centered on computer science in 2014.[10] The curriculum calls computer science "the core of computing."[4] It is divided into key stages by age, and the table shows two of them.[11][4]
| Key stage | Ages | Examples of what pupils learn |
|---|---|---|
| Key stage 1 | 5 to 7 | What algorithms are; how to create and debug simple programs |
| Key stage 3 | 11 to 14 | Use two or more programming languages, at least one of them text-based |
AP Computer Science Principles (United States). The College Board launched this Advanced Placement course, a high-school course that can earn college credit, in the 2016-17 school year. In its first year it drew more students than any other new AP course had, and more than 116,000 students took its exam in 2020.[12]
Access and outreach
Access to computing classes is still uneven. In the 2024-25 school year, about 60% of US public high schools offered a foundational, or basic, computer science course, with no change from the year before. About 6.1% of US high school students took part in computer science courses that year.[13]
Outreach campaigns try to give everyone a first taste of programming. The Hour of Code, part of Computer Science Education Week in December 2013, aimed to introduce more than 10 million students to coding through one-hour self-guided tutorials.[14]
Computer Science Education Week falls in early December in honor of the birthday of Grace Hopper (9 December 1906).[14]
Computing at university
Degrees and departments
University students can study computing in degree programs such as a Bachelor of Computer Science. Universities place these programs in many kinds of departments and schools.
- Stand-alone computing schools. Carnegie Mellon University's School of Computer Science was renamed the Kenneth C. Griffin School of Computer Science in 2026 after a $500 million gift.[15]
- Joint mathematics and computing institutes. The Institute of Mathematics, Statistics and Computer Science at the University of São Paulo has a computer science department that offers a bachelor's degree in computer science.[16]
- Computing in business schools. The Faculty of Informatics and Statistics at the Prague University of Economics and Business offers a bachelor's program in applied informatics, which trains students to design, build, and run information systems.[17]
University curriculum guidelines
The ACM has published curriculum guidelines for computer science degrees since the 1960s. Later editions were written jointly with the IEEE Computer Society.[18] Each edition reflects what the field considered its core at the time.
| Report | Year | Main features |
|---|---|---|
| Curriculum 68 | 1968 | First complete curriculum; accepted the name "computer science"; three areas: information structures and processes, information processing systems, and methodologies[18] |
| Curriculum 78 | 1978 | Eight-course core; a reaction against the focus on mathematics in Curriculum 68, with more weight on professional education and applications[18] |
| Computing Curricula 1991 | 1991 | Built on the work of a 1985 ACM task force formed with the IEEE Computer Society to describe the field as more than programming[18] |
| Computing Curricula 2001 | 2001 | 14 areas and 280 core hours (hours of teaching for the required core topics); moved discrete mathematics (the mathematics of separate, countable objects such as logic, sets, and graphs) into the computer science core; outlined several possible introductory sequences[18] |
| CS2013 | 2013 | Curriculum Guidelines for Undergraduate Programs in Computer Science[19] |
| CS2023 | 2024 | Joint with the Association for the Advancement of Artificial Intelligence (AAAI); adds a combined knowledge and competency model[20] |
Two issues have run through every edition.[18]
- How much mathematics a degree should require.
- How central programming should be in the first courses.
The CS2023 model
CS2023 describes a degree in two linked ways, by the knowledge students need and by the tasks they should be able to do. ACM, the IEEE Computer Society, and AAAI endorsed the final report in January and February 2024.[21]
Work on CS2023 began in 2021 with a survey answered by 427 people from universities and 865 people from industry.[22]
The IEEE Computer Society announced the report's release in June 2024.[23]
The knowledge model groups the field into 17 knowledge areas, such as Security and Artificial Intelligence. Each knowledge area contains knowledge units, and each unit lists topics.[20] Topics are labeled at three levels.[20]
- CS Core. Topics every computer science graduate should know.
- KA Core. Topics a program should cover if it focuses on that knowledge area.
- Non-core. Optional topics for further depth.
The competency model groups knowledge areas into competency areas. CS2023 gives three examples.[20]
- Software
- Systems
- Applications development
The Software area must come before the other two.[20]
The report also expands the role of society, ethics, and the profession, and adds material on artificial intelligence and generative AI.[23]
Why learning to program is hard
Evidence from multi-university studies
Large studies across universities have found that many students cannot program well after their first courses. Two such studies were run as working groups at the ITiCSE conference.[24][25]
| Study | Students | Task | Finding |
|---|---|---|---|
| McCracken group, 2001 | 216 students at four universities in the United States and the United Kingdom | Write a program | Average score of 22.89 out of 110 points[24][25] |
| Leeds group, 2004 | Over 500 students from seven countries | Predict what short code does; fill in missing lines | Most students did poorly[25] |
The McCracken authors concluded that "many students do not know how to program at the conclusion of their introductory courses."[24][25] The two groups proposed different reasons for this.
| Study | Proposed explanation for students' difficulties |
|---|---|
| McCracken group | Weak problem-solving skills[24][25] |
| Leeds group | Many students lacked a firm grasp of basic code reading[25] |
Whether failure rates in first programming courses are unusually high is debated. Jens Bennedsen and Michael Caspersen ran two worldwide surveys and compared the results with US college algebra.[26]
| Course and year | Result |
|---|---|
| First programming courses, 2006-07 survey | Average pass rate 67% |
| First programming courses, 2018 survey | Average pass rate 72% |
| US college algebra | About 50% of students do not pass with a grade of C or better |
The authors argued that the programming failure rates are not especially high.[26]
Notional machines and misconceptions
Much of the difficulty lies in understanding what the computer does when it runs a program. A notional machine is a simple model of how a computer carries out a program, and Benedict du Boulay's 1986 analysis put it at the center of beginners' difficulties.[27] Juha Sorva describes it as a model computer that runs programs of a particular kind, and argues that teachers should make it a clear learning goal.[28]
Beginners without a correct notional machine form misconceptions, which are stable but wrong beliefs about how code behaves. Many concern variables, which are named places where a program stores a value, and assignments, which are instructions that put a value into a variable. Studies of beginners report misconceptions such as these:[29]
- A variable can hold more than one value at the same time.
- The assignment
A = Bmeans the same asB = A. A = B + 1stores the formulaB + 1inA, not its value.- Assigning one variable to another links them, so changing one changes the other.
- The symbol
=tests whether two things are equal.
B = 4 and then A = B + 1, variable holds the value 5 and still holds 4. Misconceptions reported among beginners include believing that stores the formula , that changes too, or that holds its old and new values at the same time.Teaching methods
Researchers have tested many methods for teaching programming. The table summarizes four, and the subsections below give the evidence.
| Method | What students do | Main reported effect |
|---|---|---|
| Pair programming | Two students write one program at one computer | Higher completion, better programs, more persistence[30] |
| Peer instruction | Answer concept questions, then discuss with classmates | Lower fail rates in one multi-course study[31] |
| Parsons problems | Put scrambled lines of code in the right order | Expected to take less mental effort than writing code from scratch; no need to recall syntax[32] |
| Unplugged activities | Explore concepts with physical games, no computer | As effective as programming-only time in one study[7] |
Pair programming
In pair programming, one student types while the other reviews each line, and they swap roles at set times.[30] A study at the University of California, Santa Cruz compared students who paired with students who worked alone in a first programming course.[30]
- 90.8% of pairing students stayed in the course through the final exam, compared with 80.4% of solo students.
- Pairing students wrote better programs, with average scores of 86.6% against 68.1%.
- In the next course, where everyone worked alone, 65.5% of former pairers passed on their first try, against 40.0% of former solo students.
The last result answers a common worry that weak students pass only because a partner did the work.[30]
Peer instruction
In peer instruction, the teacher poses a concept question, students answer and then discuss with peers, and the class builds understanding together.[31] A study by Leo Porter, Cynthia Bailey Lee, and Beth Simon covered 16 offerings of 4 courses over 10 years. Peer instruction cut fail rates by a per-course average of 61%, from 20% to 7%, compared with standard lectures.[31]
The authors note that it was a study of real classes, not a controlled experiment, and discuss reasons its results might be unreliable.[31]
Parsons problems
A Parsons problem gives students the lines of a working program in scrambled order and asks them to arrange the lines correctly.[32] Dale Parsons and Patricia Haden introduced them in 2006 as a puzzle-like exercise.[32]
Some versions add distractor lines that do not belong in the solution, and most give instant feedback. A typical problem takes from about a minute to under 10 minutes. Because the choices are limited and students need not recall syntax, Parsons problems should have a lower cognitive load (the mental effort a task demands) than writing code from scratch.[32]
range(1, 6), which gives to , adds each value, and prints . The distractor line is left out.Participation and diversity
Who studies computing has changed sharply over time. In the United States, women earned 13.6% of bachelor's degrees in computer and information sciences in 1970-71. Their share peaked at 37.1% in 1983-84, then fell to a low of 17.6% in 2007-08.[33] The page on women in computing covers this history in more detail.
By 2021-22 the women's share had recovered to 22.6%, out of 108,503 degrees.[33]
Some teaching methods appear to narrow these gaps. The Santa Cruz pair programming study compared students who paired with students who worked alone.[30]
| Measure | Paired | Worked alone |
|---|---|---|
| Women confident in their programs | 86.8% | 63.0% |
| Men confident in their programs | 90.3% | 74.6% |
| Women who had declared a computing major a year later* | 59.5% | 22.2% |
*Only women who planned a computing major at the start, passed the course, and were still at the university a year later.[30]
Schools and course designers also aim to widen who takes part. The K-12 framework lists "fostering an inclusive computing culture" as its first core practice.[1] In 2020, 39,570 women took the AP Computer Science Principles exam, nearly three times as many as in 2017.[12]
Research community
Computing education research has its own professional groups and meetings.
- SIGCSE. The ACM Special Interest Group on Computer Science Education was formed in 1968.[34]
- SIGCSE Technical Symposium. The first was held on 16 November 1970 in Houston, Texas, with 143 attendees.[34] It has been held every year since.[35]
- ICER. SIGCSE's International Computing Education Research meeting, focused on research, was first held on 1 and 2 October 2005 at the University of Washington in Seattle.[36]
- ITiCSE working groups. Major multi-university projects, such as the McCracken and Leeds studies, have been run as working groups at this SIGCSE conference.[25]
Generative AI and programming education
Generative AI is artificial intelligence that creates new content, such as text or code. Large language models that write code are changing how programming is taught.[37]
A 2024 review by Paul Denny, James Prather, and colleagues notes that the small exercises common in first courses "can now easily be solved by AI models." Often a student only has to accept a suggestion from a tool such as GitHub Copilot.[37]
One challenge is academic integrity, which means following the rules against cheating and against passing off others' work as your own. Recent work found that common plagiarism detection tools often do not work well against AI-generated solutions.[37]
The same tools also create teaching opportunities.[37]
- Learning resources. Models can generate exercises and code explanations on demand. In one test, 90% of model explanations covered all parts of the code, and nearly 70% of line-by-line explanations were correct.
- Earlier problem solving. One textbook introduces Copilot before students write any Python. Students break projects into functions and describe each one in plain language.
- Specification tasks. A specification is a description of what a program should do. In "Prompt Problems", students see a visual representation of how input values should be turned into an output, then write a prompt (a plain-language instruction to the model) that makes the model generate code that solves the problem.
The authors still argue that writing code is a valuable way for beginners to learn the basic concepts needed for code literacy.[37]
They expect some shift toward modifying AI-generated code, but say the ability to edit and compose code "will likely remain a fundamental skill." They also expect new teaching methods that show how to communicate with these tools and that focus on problem specification.[37]
References
- Framework Statements by Concept, K-12 Computer Science Framework, 2016.
- Computational Thinking, Jeannette M. Wing, Communications of the ACM 49(3), 2006.
- K-12 Computer Science Framework, k12cs.org, 2016.
- National curriculum in England: computing programmes of study, UK Department for Education, 2013.
- History of Logo, Cynthia Solomon et al., Proceedings of the ACM on Programming Languages 4 (HOPL), 2020.
- Scratch: Programming for All, Mitchel Resnick et al., Communications of the ACM 52(11), 2009.
- Providing a CS Unplugged Experience at a Distance, Tim Bell and Tracy Henderson, ACM Inroads 13(4), 2022.
- Computer Science Unplugged: Off-line Activities and Games for All Ages, Tim Bell, Ian H. Witten, and Mike Fellows, CS Unplugged.
- K-12 CS Framework Announced; CRA Endorses!, Computing Research Association, 2016.
- An Overview of Computing Education in England from 1970 to 2014, International Journal of Computer Science Education in Schools.
- The national curriculum in England: Framework document, UK Department for Education, 2013.
- New Data: AP Computer Science Principles Course Bringing More Diverse Set of Students Into Computer Science Pipeline, College Board, 2020.
- Most states still don't tie AI literacy and computer science together, K-12 Dive, 2025.
- Get Involved in CSEdWeek 2013's "Hour of Code", ACM, 2013.
- $500M Gift Will Fuel Next Era of Computer Science at Carnegie Mellon, Carnegie Mellon University, 2026.
- Departamento de Ciência da Computação, IME-USP.
- Applied Informatics, Study in Czechia.
- The ACM and IEEE-CS Guidelines for Undergraduate CS Education, David Hemmendinger, Communications of the ACM 50(5), 2007.
- Curricula Recommendations, ACM.
- Computer Science Curricula 2023, ACM/IEEE-CS/AAAI Joint Task Force, 2024.
- CS2023: ACM/IEEE-CS/AAAI Computer Science Curricula, ACM, 2024.
- ACM, IEEE-CS, and AAAI Release CS2023 Curricular Guidelines, ACM, 2024.
- New CS2023 Curriculum Guide Released by IEEE CS and Partners, IEEE Computer Society, 2024.
- A multi-national, multi-institutional study of assessment of programming skills of first-year CS students, Michael McCracken et al., ITiCSE Working Group Reports, 2001.
- A Multi-National Study of Reading and Tracing Skills in Novice Programmers, summary of the ITiCSE 2004 working group report by Raymond Lister et al.
- Failure Rates in Introductory Programming: 12 Years Later, Jens Bennedsen and Michael E. Caspersen, ACM Inroads, 2019.
- Some Difficulties of Learning to Program, Benedict du Boulay, Journal of Educational Computing Research 2(1), 1986.
- Notional Machines and Introductory Programming Education, Juha Sorva, ACM Transactions on Computing Education, 2013.
- Teachers' Perceptions of Student Misconceptions in Introductory Programming, Yizhou Qian et al., Journal of Educational Computing Research, 2020.
- Pair Programming Improves Student Retention, Confidence, and Program Quality, Charlie McDowell et al., Communications of the ACM 49(8), 2006.
- Halving Fail Rates Using Peer Instruction: A Study of Four Computer Science Courses, Leo Porter, Cynthia Bailey Lee, and Beth Simon, SIGCSE, 2013.
- Parsons Problems and Beyond: Systematic Literature Review and Empirical Study Designs, Barbara Ericson et al., ITiCSE Working Group Reports, 2022.
- Degrees in computer and information sciences conferred by postsecondary institutions, by level of degree and sex of student: 1964-65 through 2021-22, US National Center for Education Statistics, 2023.
- 50 Years of the Technical Symposium, ACM SIGCSE.
- Technical Symposium on Computer Science Education, ACM SIGCSE.
- ACM SIGCSE Sponsors First International Computing Education Research Workshop, Computing Research News, 2005.
- Computing Education in the Era of Generative AI, Paul Denny, James Prather, et al., Communications of the ACM 67(2), 2024.
