Level:
Correct: 0
Incorrect: 0
Marks: 0/0
Exam Practice
Subject:
Topics:
Cambridge IGCSE Computer Science (Paper 1) Smart practice A mixed round aimed at your weak spots
Unit 1
Data representation
Unit 2
Data transmission
Unit 3
Hardware
Unit 4
Software
Unit 5
The internet and its uses
Unit 6
Automated and emerging technologies
Automated systems
Automated systems
0%
Artificial intelligence
Artificial intelligence
0%
Avg
score:
–
Topics
done:
0/39

Integrated development environments (IDEs)

Practise 19 exam-style questions on Integrated development environments (IDEs) for Cambridge IGCSE Computer Science (Paper 1). Write your answer as you would in the exam and get it marked in seconds against the mark scheme, point by point, with an AI tutor on hand if you get stuck.

  • 19 questions
  • 1–6 marks each
  • Instant marking
  • No sign-up needed
19 questions, marked as you go

Sample questions with model answers

Here are 4 of the questions in this topic, each with a model answer, an explanation of why it earns the marks and the mark scheme an examiner would use.

Question 1

1 mark

When a programmer types code into an IDE, the keywords are automatically shown in a different colour and the lines inside each loop are automatically indented.

Identify the IDE function that does this.

Model answer

Prettyprint.

Explanation

Prettyprint formats the code so it is easier to read: it colours keywords, strings and comments differently and indents blocks of code automatically. It does not change what the program does, only how the code looks.

Mark scheme
  1. 1 mark

    Prettyprint

    accept 'pretty printing', 'pretty print'; accept 'syntax highlighting' only if it is also linked to indentation/formatting; do not accept 'code editor' on its own

Question 2

2 marks

Describe the role of the code editor in an IDE.

Model answer

The code editor is where the programmer types and edits the source code. Because it is built into the IDE, no separate text editor is needed, and it provides features such as line numbers, auto-completion and prettyprint to help the programmer write code.

Explanation

The code editor is the part of the IDE used to write and edit the program. It is more than a plain text editor because it is linked to the other tools and offers features such as prettyprint and auto-completion.

Mark scheme
  1. 1 mark

    Allows the programmer to type/enter and edit/change the program code (source code)

    max 2

  2. 1 mark

    Without needing a separate text editor / the code can be translated and run from the same software

  3. 1 mark

    Provides features to help write code, e.g. prettyprint, auto-completion, auto-correction, line numbers

    accept any one named feature of an editor

Question 3

3 marks

A student is writing a program for a sports club. Identify the IDE function that would help with each of these problems.

Problem 1: the student keeps typing OUPTUT instead of OUTPUT.
Problem 2: the student's code has no indentation, so it is hard to see where each loop ends.
Problem 3: the student does not know which line contains a missing ENDWHILE.

Model answer

Problem 1: auto-correction.
Problem 2: prettyprint.
Problem 3: error diagnostics.

Explanation

Auto-correction fixes misspelt keywords, prettyprint indents and colours code so its structure is clear, and error diagnostics report where an error is, including its line number. Matching each problem to the function that solves it is a common Cambridge question style.

Mark scheme
  1. 1 mark

    Problem 1: auto-correction

    accept 'auto-completion'

  2. 1 mark

    Problem 2: prettyprint

    accept 'pretty printing'

  3. 1 mark

    Problem 3: error diagnostics

    accept 'error reporting/error checking with line numbers'

Question 4

4 marks

A student types this pseudocode into an IDE exactly as shown.

INPUT Mark
IF Mark >= 50
THEN
OUTPTU "Pass"
ELSE
OUTPUT "Fail"
ENDIF

Identify two IDE functions that would improve this code as it is typed, and describe how each would change it.

Model answer

Auto-correction would notice that OUTPTU is not a keyword and change it to OUTPUT.
Prettyprint would indent the THEN, ELSE and OUTPUT lines inside the IF statement and show the keywords IF, THEN, ELSE and ENDIF in a different colour, so the structure of the selection is clear.

Explanation

The code has two obvious problems: a misspelt keyword on line 4 and no indentation. Auto-correction (or error diagnostics) deals with the first and prettyprint with the second. Each description must say how this particular code would change, not just what the function does in general.

Mark scheme
  1. 1 mark

    Auto-correction

    max 4; two functions, each identified (1) with a matching description (1)

  2. 1 mark

    Would change OUTPTU to OUTPUT / correct the misspelt keyword

    must refer to OUTPTU or the misspelt keyword

  3. 1 mark

    Prettyprint

  4. 1 mark

    Would indent the lines inside the IF statement (THEN, ELSE and the OUTPUT lines) / colour the keywords such as IF, THEN, ELSE, ENDIF

  5. 1 mark

    Error diagnostics

  6. 1 mark

    Would highlight/underline OUTPTU as an error and give an error message with its line number (line 4)

Ready to try the rest? Every answer you write is marked against the mark scheme, so you can see exactly where the marks are.

AI Tutor Hints first, answers after you try

Hi! Stuck? Ask me for a hint and I’ll help you work it out. Once you’ve checked your answer I can explain exactly where the marks are.