← IGCSE Computer Science Paper 1

IDE function: run-time environment

An IDE feature that lets you run your program and see it work, including its input and output, without leaving the IDE. It has a run button, a console and can step through code.

Understanding IDE function: run-time environment in IGCSE Computer Science Paper 1

What it does: The input() call asks for a value in the IDE's console, so the programmer can type test data while the program runs. Stepping executes one line at a time, so the programmer sees each statement and its effect in order. The run-time environment keeps running and testing inside the IDE, so you do not need to leave it. The run button starts the program so the student can see it work straight away. The console or output window shows what the program prints, and it is separate from the code editor. Everything happens in the IDE, which saves time when testing and fixing a program.

Common mistakes: There is a comma missing between "Hi" and name. When you press Run, the console shows a syntax error. It should be print("Hi", name). The closing bracket of int( is missing, so the program will not run and the console reports a syntax error. It should end with two closing brackets: )).

Class: _____________________  ·  Name: _____________________  ·  Date: _________

Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.

This module's key terms are also in a printable crossword (Modules 440–449) and word search (Modules 440–463).

Take this worksheet further — free with Cloodit

Each concept is reinforced from every angle — learned, then applied, then tested.

Learning
Duo
Which statement best describes the run-time environment of an IDE?
It lets you run your program and see its input and output without leaving the IDEIt translates the program into a separate file that you must open outside the IDE
Matches
To test my program I must close the IDE and run it in a separate application
↓
The run-time environment lets you run the program inside the IDE, so you do not need to leave it.
Applying
Meanings
Term
run-time environment
Meaning
An IDE feature that lets you run your program and see it work, including its input and output, without leaving the IDE. It has a run button, a console and can step through code.
Practice
OUTPUT "Enter a test number"
Testing
Gaps
name = ("Enter name: ")
Check Answer
Spots
2age = int(input("Age: "))
3print("Hi" name)

Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.

The 'Warthog' badge — Definition Digger, one of Cloodit's 106 collectible badges
Students earn collectable badges

Over 100 of them, across seven natural biomes.

Study Buddy
Students build a real study resource

Turns their work into revision material ready for Flash Cards and Exam study.

Diamond Dash — one of Cloodit's live, competitive Sprint games
Students lock in with Sprints

Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.

A Cloodit certificate of achievement, ready to personalise and print
Custom printable certificates

Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.

Quick Questions

1. Which statement best describes the run-time environment of an IDE?
A. It translates the program into a separate file that you must open outside the IDE
B. It lets you run your program and see its input and output without leaving the IDE ✓
The run-time environment keeps running and testing inside the IDE, so you do not need to leave it.
2. A student clicks the run button in the IDE. What happens?
A. The program starts running inside the IDE ✓
B. The IDE only checks the spelling of the comments
The run button starts the program so the student can see it work straight away.
3. Where does a program's printed output usually appear in an IDE?
A. In the output window or console ✓
B. In the code editor, replacing the source code
The console or output window shows what the program prints, and it is separate from the code editor.
4. A program asks the user to type their age. How can a student test it inside the IDE?
A. Close the IDE and ask the computer to guess the input
B. Type test input into the console while the program runs ✓
The run-time environment lets you enter test input and see how the program responds, all within the IDE.
5. What does stepping through code let a programmer do?
A. Run the program one line at a time and watch what happens ✓
B. Make the program run faster by skipping lines
Stepping runs one line at a time so you can see how values change and find where a program goes wrong.

Match the Pairs

Run button → Starts the program from inside the IDE so the programmer can see it work straight away
Console window → Shows the program's output and lets the programmer type in test input while it runs
The run-time environment lets a programmer enter test input and check the program reacts correctly, without leaving the IDE → age = int(input("Age: "))
The run-time environment can step through code one line at a time so the programmer can watch the program run → Step 1: total = 0 | Step 2: total = total + 5
To test my program I must close the IDE and run it in a separate application → The run-time environment lets you run the program inside the IDE, so you do not need to leave it.
The run-time environment is the part of the IDE that underlines syntax errors as you type → This describes error diagnostics, not the run-time environment. The run-time environment runs the program and shows its input and output.

Key Term

run-time environment
An IDE feature that lets you run your program and see it work, including its input and output, without leaving the IDE. It has a run button, a console and can step through code.

Fill in the Blanks

1. name = input("Enter name: ") print("Hello " + name)
Hint: Type the function that reads the test input a user types into the console.
2. total = 5 + 3 print(total)
Hint: Type the function that shows a value in the output window or console.
3. age = int(input("Age: ")) print(age + 1)
Hint: Type the function that turns the typed test input into a whole number.
4. x = 1 x = x + 1 # step: watch x become 2 print(x)
Hint: Type the operator that adds to x, so you can step through and watch the value change.
5. # Press the Run button to start print("Hello")
Hint: Type the name of the button in the run-time environment that starts the program.

Spot the Error

Question 1
A name = input("Name: ")
B age = int(input("Age: "))
C print("Hi" name)
D print(age + 1)
Line C — There is a comma missing between "Hi" and name. When you press Run, the console shows a syntax error. It should be print("Hi", name).
Question 2
A num = int(input("Number: ")
B total = num * 2
C print("Double:", total)
Line A — The closing bracket of int( is missing, so the program will not run and the console reports a syntax error. It should end with two closing brackets: )).
Question 3
A for i in range(3)
B print("Step", i)
C print("Done")
Line A — A for loop header needs a colon at the end. Without it the IDE cannot run or step through the loop. It should be for i in range(3):
Question 4
A total = 0
B for n in [2, 4, 6]:
C total = total + n
D print("Total:", totl)
Line D — The variable name is misspelt. The program starts running, then the console shows a run-time NameError because totl does not exist. It should be total.
Question 5
A score = int(input("Score: "))
B if score >= 50:
C print("Pass")
D else
E print("Fail")
Line D — The else keyword needs a colon after it. Running the program in the IDE would show a syntax error in the console. It should be else:

Student with a class code? Join your class →