Skip to content

Course home

Develop code

Develop code

EasyMediumHard
1234567891011121314151617181920212223242526
Question 2

Each software project uses a list of programming languages.

An incomplete algorithm written in pseudocode is shown below.

The algorithm must:

  1. Print each language in the list to the display on a new line.
  2. Count the total number of languages in the list.
  3. Create a message as a single string (e.g. "The project uses 5 languages").
  4. Print this final message to the display.

Complete the pseudocode algorithm below.

SET total TO 0
SET languages TO ["Python", "Java", "C++", "JavaScript", "Rust"]
FOR EACH lang FROM languages DO

END FOREACH
[4]
Markscheme

Develop code Questions

  1. IGCSE
  2. /Computer Science
  3. /Develop code

62 exam-style questions on Edexcel IGCSE Computer Science Develop code. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank