Question 7
OCR Computer Science June 2018 Paper 2GCSE8 marks
On the specification
- (a)(i)
- 2.2 Programming techniques
- (a)(ii)
- 2.5 Translators and facilities of languages
- (b)
- 2.5 Translators and facilities of languages
Question text
7 Victoria is writing a program using a high level language to display the meaning of computer science acronyms that are entered. The code for her first attempt at this program is shown below. 1 a = input(“Enter an acronym”) 2 if a == “LAN” then 3 print(“Local Area Network”) 4 elseif a == “WAN” then 5 print(“Wide Area Network”) 6 7 8 endif (a) (i) Complete the code above to print out an “unknown” message if any other acronym is entered by the user. [2] (ii) Describe what is meant by a “high level language”. [2] (b) Victoria creates her program using an Integrated Development Environment (IDE). Describe two tools or facilities that an IDE commonly provides. [4]