Free ICDL Coding Principles Practice Questions
110 free questions · Answer explanations · No signup required
View examination details, outline and sourcesLoading selected examination banks…
Sample Practice Questions
Try these 10 sample questions from the ICDL Coding Principles practice bank. Each includes the answer and explanation. Continue with the interactive practice above to review the full question set.
1Which description captures the input–process–output model of computing?
- A.Accept data, apply operations, and produce resultsCorrect answer: A
- B.Accept data, retain it unchanged, and omit results
- C.Produce results first, then choose the input data
- D.Accept instructions as output and results as input
2Which combination consists entirely of computational thinking methods?
- A.Scanning, printing, recording, file transmission
- B.Indentation, punctuation, capitalisation, line wrapping
- C.Decomposition, pattern recognition, abstraction, algorithm designCorrect answer: C
- D.Compilation, linking, installation, file compression
3Why should related statements in a code block use consistent indentation?
- A.To make every variable have the same stored value
- B.To force every condition to evaluate as true
- C.To make every statement repeat the same number of times
- D.To make the grouping and structure of statements clearCorrect answer: D
4What kind of result does a logic test such as temperature > 30 produce?
- A.A sequence of program instructions
- B.A text comment describing the comparison
- C.A true-or-false resultCorrect answer: C
- D.A replacement value for temperature
Explanation: "Any object can be tested for truth value, for use in an if or while condition or as operand of the Boolean operations below." A logic test produces a truth result that a program can use; it does not assign data, define instructions or write comments.
5What is debugging intended to accomplish?
- A.Find and correct faults in the program's implementationCorrect answer: A
- B.Record test outcomes without locating or correcting the faults
- C.Translate source code without investigating incorrect results
- D.Document known faults without changing their causes
6A scanner supplies item codes and a till calculates the total. Which activity is the processing step?
- A.Printing the calculated total on the receipt
- B.Adding the item prices to calculate the billCorrect answer: B
- C.Scanning a barcode to capture an item code
- D.Displaying the calculated total to the customer
7A team first divides a problem into parts and then notices the same structure in several parts. Which two methods are being combined?
- A.Abstraction and machine-code translation
- B.Algorithm execution and syntax checking
- C.Pattern recognition and code compilation
- D.Decomposition and pattern recognitionCorrect answer: D
Explanation: "thinking: decomposition, pattern recognition, abstraction, algorithms." Dividing the problem is decomposition; detecting common structure is pattern recognition. This tests the combination and roles of two methods, not a language tool.
8Which variable name most clearly communicates a value storing the number of unsold tickets?
- A.tickets_remainingCorrect answer: A
- B.tickets_sold
- C.ticket_price
- D.ticket_limit
9In Python, temperature = 34 is followed by is_hot = temperature > 30. What remains stored in temperature after the logic test?
- A.True
- B.False
- C.30
- D.34Correct answer: D
Explanation: "The equal sign (=) is used to assign a value to a variable." "> strictly greater than" The comparison produces True and assigns it to is_hot. It does not assign anything to temperature, which remains 34; True is the result, False is wrong, and 30 is the comparison threshold.
Reference: Python tutorial: An Informal Introduction — Using Python as a Calculator — Numbers
10Why run automated tests frequently while developing functions?
- A.To detect behaviour that differs from expected results as changes are madeCorrect answer: A
- B.To guarantee that every possible future input has been exercised
- C.To eliminate the need to specify expected results for the functions
- D.To ensure that code formatting alone determines program correctness
Explanation: "One approach for developing high quality software is to write tests for each function as it is developed and to run those tests frequently during the development process." Frequent testing provides feedback during development. It does not guarantee exhaustive coverage or replace expected outcomes.
Reference: Python tutorial: Brief Tour of the Standard Library — 10.11 Quality control
Exam Review
About ICDL Coding Principles
ICDL Coding Principles · UNSPECIFIED
Key exam facts
- Provider
- ICDL Foundation develops the syllabus and certification; ICDL Accredited Test Centres deliver the tests.
- Format
- Theory and practice-based test covering computational thinking and creating simple programs; delivered through ICDL Accredited Test Centres. The syllabus does not publish an exclusive multiple-choice format.
- Time limit
- A module-specific time limit is not published in the global Coding Principles module page, complete syllabus or fact sheet checked. Confirm the local test time and any access arrangements with the Accredited Test Centre; ICDL Vietnam publishes a general 45-minute exam duration for its implementation.
- Passing score
- 75% or over to become ICDL certified for the module.
- Exam fee
- Pricing is set by the Accredited Test Centre; obtain the applicable amount, currency, registration/training inclusions and re-sit charge from the chosen centre. No single global Coding Principles fee is published in the checked global module materials. ICDL Malta and South Africa explicitly direct candidates to centre-specific pricing.
Topics covered
Computing Terms
- Key Concepts
- Define the term computing.
- Define the term computational thinking.
- Define the term program.
- Define the term code. Distinguish between source code, machine code.
- Understand the terms program description and specification.
- Recognise typical activities in the creation of a program: analysis, design, programming, testing, enhancement.
- Understand the difference between a formal language and a natural language.
Computational Thinking Methods
- Problem Analysis
- Algorithms
- Outline the typical methods used in computational thinking: decomposition, pattern recognition, abstraction, algorithms.
- Use problem decomposition to break down data, processes, or a complex problem into smaller parts.
- Identify patterns among small, decomposed problems.
- Use abstraction to filter out unnecessary details when analysing a problem.
- Understand how algorithms are used in computational thinking.
- Define the programming construct term sequence. Outline the purpose of sequencing when designing algorithms.
- Recognise possible methods for problem representation like: flowcharts, pseudocode.
- Recognise flowchart symbols like: start/stop, process, decision, input/output, connector, arrow.
- Outline the sequence of operations represented by a flowchart, pseudocode.
- Write an accurate algorithm based on a description using a technique like: flowchart, pseudocode.
- Fix errors in an algorithm like: missing program element, incorrect sequence, incorrect decision outcome.
Starting to Code
- Getting Started
- Variables and Data Types
- Describe the characteristics of well-structured and documented code like: indentation, appropriate comments, descriptive naming.
- Use simple arithmetic operators to perform calculations in a program: +, -, /, *.
- Understand the precedence of operators and the order of evaluation in complex expressions. Understand how to use parenthesis to structure complex expressions.
- Understand the term parameter. Outline the purpose of parameters in a program.
- Define the programming construct term comment. Outline the purpose of a comment in a program.
- Use comments in a program.
- Define the programming construct term variable. Outline the purpose of a variable in a program.
- Define and initialise a variable.
- Assign a value to a variable.
- Use appropriately named variables in a program for calculations, storing values.
- Use data types in a program: string, character, integer, float, Boolean.
- Use an aggregate data type in a program like: array, list, tuple.
- Use data input from a user in a program.
- Use data output to a screen in a program.
Building using Code
- Logic
- Iteration
- Conditionality
- Procedures and Functions
- Events and Commands
- Define the programming construct term logic test. Outline the purpose of a logic test in a program.
- Recognise types of Boolean logic expressions to generate a true or false value like: =, >, <, >=, <=, <>, !=, ==, AND, OR, NOT.
- Use Boolean logic expressions in a program.
- Define the programming construct term loop. Outline the purpose and benefit of looping in a program.
- Recognise types of loops used for iteration: for, while, repeat.
- Use iteration (looping) in a program like: for, while, repeat.
- Understand the term infinite loop.
- Understand the term recursion.
- Define the programming construct term conditional statement. Outline the purpose of conditional statements in a program.
- Use IF…THEN...ELSE conditional statements in a program.
- Understand the term procedure. Outline the purpose of a procedure in a program.
- Write and name a procedure in a program.
- Understand the term function. Outline the purpose of a function in a program.
- Write and name a function in a program.
- Understand the term event. Outline the purpose of an event in a program.
- Use event handlers like: mouse click, keyboard input, button click, timer.
- Use available generic libraries like: math, random, time.
Test, Debug and Release
- Run, Test and Debug
- Release
- Understand the benefits of testing and debugging a program to resolve errors.
- Understand types of errors in a program like: syntax, logic.
- Run a program.
- Identify and fix a syntax error in a program like: incorrect spelling, missing punctuation.
- Identify and fix a logic error in a program like: incorrect Boolean expression, incorrect data type.
- Check your program against the requirements of the initial description.
- Describe the completed program, communicating purpose and value.
- Identify enhancements, improvements to the program that may meet additional, related needs.
How to prepare
Work through the topics, read the explanation after each answer, and revisit the areas where you miss questions. Use the official outline and reference materials below to guide your study.
These independent practice questions are not actual exam items and do not guarantee a passing result.
Frequently asked questions
What is the exam format?
Theory and practice-based test covering computational thinking and creating simple programs; delivered through ICDL Accredited Test Centres. The syllabus does not publish an exclusive multiple-choice format.
How long is the exam?
A module-specific time limit is not published in the global Coding Principles module page, complete syllabus or fact sheet checked. Confirm the local test time and any access arrangements with the Accredited Test Centre; ICDL Vietnam publishes a general 45-minute exam duration for its implementation.
What is the passing score?
75% or over to become ICDL certified for the module.
How much does the exam cost?
Pricing is set by the Accredited Test Centre; obtain the applicable amount, currency, registration/training inclusions and re-sit charge from the chosen centre. No single global Coding Principles fee is published in the checked global module materials. ICDL Malta and South Africa explicitly direct candidates to centre-specific pricing.
Official sources and references
- ICDL Coding Principles Syllabus 1.0
p. 2, Purpose
- Get Certified
Take the ICDL Certification Test and get certified
- ICDL Malta FAQs
Q9
- ICDL Vietnam Test Introduction
ICDL Test Overview
Confirm current exam arrangements with the exam provider.