2.5.2 The Integrated Development Environment (IDE) Practice Questions
GCSE · Paper 2 · Computational thinking, algorithms and programming · 10 practice questions · 36 marks
Exam questions for 2.5.2 The Integrated Development Environment (IDE)
10 practice questions (36 marks) with mark schemes
Answer each question, reveal the mark scheme, then award yourself marks. Scores and answers are saved in this browser so you can see which topics need more work.
Practice questions
- Question 1Practice question · J277/02 style2 marks
State what is meant by an IDE.
Show mark scheme
A piece of software / an application [1] that provides the tools a programmer needs to write, test and run programs in one place [1]
Mark yourself: how many marks did you get?/ 2 - Question 2Practice question · J277/02 style3 marks
Give three features of the editor in an IDE.
Show mark scheme
Any three from: [3] Line numbers Syntax highlighting / colouring of keywords Auto-complete / suggestions as you type Auto-indent Bracket matching Find and replace Commenting tools
Mark yourself: how many marks did you get?/ 3 - Question 3Practice question · J277/02 style4 marks
Explain how syntax highlighting and line numbers each help a programmer.
Show mark scheme
Syntax highlighting: keywords, strings, numbers and comments are shown in different colours [1] so the code is easier to read and a misspelt keyword or missing quote is easier to spot [1] Line numbers: each line is numbered [1] so that the programmer can go straight to the line that an error message refers to [1]
Mark yourself: how many marks did you get?/ 4 - Question 4Practice question · J277/02 style3 marks
A student's program stops and the IDE shows the message "Error on line 12". Describe two ways the error diagnostics in an IDE help the student.
Show mark scheme
Any two from, with a description: [3 maximum] It gives the line number [1] so the student can go straight to the mistake [1] It gives a message that says what kind of error it is [1] so the student knows what to fix [1] It may highlight the faulty code [1] Maximum 3 marks.
Mark yourself: how many marks did you get?/ 3 - Question 5Practice question · J277/02 style4 marks
This program should print the total of the numbers 1 to 5, but it prints 10.
01 total = 0 02 for i = 1 to 4 03 total = total + i 04 next i 05 print(total)(a) State why a syntax error report would not help find this error. [1] (b) Describe how a programmer could use stepping and a variable watch to find the error. [2] (c) Write the corrected line 02. [1]
Show mark scheme
(a) The program has no syntax error / it runs without stopping but gives the wrong answer (a logic error) [1] (b) Run the program one line at a time (stepping) [1] and watch the values of i and total change [1] to see that the loop stops when i is 4 (the last number is not added) (c) for i = 1 to 5 [1] Check: 1+2+3+4+5 = 15, and the program as written gives 1+2+3+4 = 10.
Mark yourself: how many marks did you get?/ 4 - Question 6Practice question · J277/02 style2 marks
State what a breakpoint is and give one reason a programmer would use one.
Show mark scheme
A marker set on a line of code that makes the program pause when it reaches that line [1] So the programmer can check the values of variables at that point / find out whether the program reaches that part [1]
Mark yourself: how many marks did you get?/ 2 - Question 7Practice question · J277/02 style4 marks
Describe two ways a run-time environment helps a programmer to test a program.
Show mark scheme
Any two points with a description: [2 marks each, maximum 4] The programmer can run the program at once [1] without leaving the IDE / without a separate program [1] The programmer can enter test data and see the output [1] to check that the program gives the right answers [1] Run-time errors are shown with a message and line number [1] so they can be found and fixed [1] A program that is stuck can be stopped [1] for example one stuck in a loop that never ends [1]
Mark yourself: how many marks did you get?/ 4 - Question 8Practice question · J277/02 style3 marks
An IDE has a built-in translator. Explain two ways this helps a programmer.
Show mark scheme
Any two from, with explanation: [3 maximum] The program can be translated and run with one click / no separate translator needs to be started [1] which saves time [1] Errors found in translation are shown in the IDE with line numbers next to the code [1] The programmer can write, translate, test and fix in one place [1]
Mark yourself: how many marks did you get?/ 3 - Question 9Practice question · J277/02 style6 marks
Ravi writes programs using a plain text file and a separate translator. His teacher says he should use an IDE instead. Explain how an IDE could help Ravi. Refer to at least three features of an IDE in your answer.
Show mark scheme
Any six from, with at least three features named: [6] Editor: syntax highlighting / auto-complete / auto-indent / bracket matching [1] makes code easier to read, quicker to type and reduces mistakes [1] Error diagnostics: error report shows the line number and a message [1] so the mistake is found quickly [1] Debugging tools such as breakpoints, stepping and variable watch [1] show what the program does while it runs, which helps to find logic errors [1] Run-time environment: Ravi can run and test the program and see the output in one place [1] and make changes and run again quickly [1] Translators: built-in so the program can be translated and run with one click [1] Ravi does not need to use a separate program [1]
Mark yourself: how many marks did you get?/ 6 - Question 10Practice question · J277/02 style5 marks
Match each description to the correct feature of an IDE. Choose from: editor, error diagnostics, run-time environment, translator. (a) Shows the line number and a message when the program contains a mistake. [1] (b) Lets you type test data and see what the program outputs. [1] (c) Turns the source code into machine code. [1] (d) Colours the keywords in different colours as you type. [1] (e) Lets you run a program one line at a time to see the values of variables. [1]
Show mark scheme
(a) Error diagnostics [1] (b) Run-time environment [1] (c) Translator [1] (d) Editor [1] (e) Error diagnostics [1]
Mark yourself: how many marks did you get?/ 5
- •Practice answering questions under timed conditions
- •Check your answers against the mark scheme carefully
- •Focus on understanding the marking points, not just memorising answers
- •Come back to the questions you dropped marks on a few days later