Computer Science - 0478 CIE

Programming Concepts

Overview

Every program, however large, is built from a small set of ideas: store a value, get input, produce output, make a choice, repeat something, and break the work into named pieces. Learn these building blocks once and you can read and write programs in any language, because the same concepts hide under different words in Python, Java or pseudocode.

In this lesson you will declare variables and constants, use the core data types, master sequence, selection and iteration, count and total, handle strings, nest statements inside one another, and split a program into procedures and functions with parameters. You will write all of it in the Cambridge pseudocode style used in the exam.

Objectives

  1. 1 Declare and use variables and constants
  2. 2 Understand and use basic data types
  3. 3 Understand and use input and output
  4. 4 (a) Understand and use the concept of sequence (b) Understand and use the concept of selection (c) Understand and use the concept of iteration (d) Understand and use the concepts of totalling and counting (e) Understand and use the concept of string handling
  5. 5 Understand and use nested statements
  6. 6 (a) Understand what is meant by procedures, functions and parameters (b) Define and use procedures and functions, with or without parameters (c) Understand and use local and global variables
  7. 7 Understand and use library routines
  8. 8 Understand how to create a maintainable program

Lesson Note

These concepts are the grammar of programming. The exam expects you to read and write algorithms in Cambridge pseudocode, a clear, language-independent style. Master the building blocks here and the programming and algorithm questions become a matter of assembling pieces you already know.

Available on the Green Bridge App

Download the Green Bridge CBT app on your phone or computer to access full lesson notes, practice questions, and more.

Full lesson notes with diagrams
AI-powered learning assistant
Study offline, anytime, anywhere
Available on Android, Windows, macOS, and Linux

Lesson Evaluation

Congratulations on completing the lesson on Programming Concepts. Now that youve explored the key concepts and ideas, its time to put your knowledge to the test. This section offers a variety of practice questions designed to reinforce your understanding and help you gauge your grasp of the material.

You will encounter a mix of question types, including multiple-choice questions, short answer questions, and essay questions. Each question is thoughtfully crafted to assess different aspects of your knowledge and critical thinking skills.

Use this evaluation section as an opportunity to reinforce your understanding of the topic and to identify any areas where you may need additional study. Don't be discouraged by any challenges you encounter; instead, view them as opportunities for growth and improvement.

  1. Which loop always runs its body at least once? A. WHILE B. FOR C. REPEAT D. IF Answer: C
  2. Which data type stores only TRUE or FALSE? A. INTEGER B. STRING C. BOOLEAN D. CHAR Answer: C
  3. What does a function do that a procedure does not? A. take parameters B. return a value C. use variables D. run in sequence Answer: B
  4. SUBSTRING("COMPUTER", 1, 4) in Cambridge pseudocode returns: A. COMP B. OMPU C. PUTE D. UTER Answer: A
  5. A variable that can be used anywhere in a program is described as: A. local B. constant C. global D. nested Answer: C

Available on the Green Bridge App

Download the Green Bridge CBT app on your phone or computer to access full lesson notes, practice questions, and more.

Full lesson notes with diagrams
AI-powered learning assistant
Study offline, anytime, anywhere
Available on Android, Windows, macOS, and Linux

Available on the Green Bridge App

Download the Green Bridge CBT app on your phone or computer to access full lesson notes, practice questions, and more.

Full lesson notes with diagrams
AI-powered learning assistant
Study offline, anytime, anywhere
Available on Android, Windows, macOS, and Linux

Practice Mock Questions

Want to practice mock questions on Programming Concepts? Download the Green Bridge CBT app to access mock questions and full practice assessments for this topic.

Download The App On Google Playstore

Everything you need to excel in JAMB, WAEC & NECO

Green Bridge CBT Mobile App
Personalized AI Learning Chat Assistant
Thousands of JAMB, WAEC & NECO Past Questions
Over 1200 Lesson Notes
Offline Support - Learn Anytime, Anywhere
Green Bridge Timetable
Literature Summaries & Potential Questions
Track Your Performance & Progress
In-depth Explanations for Comprehensive Learning