Computer Science > GCSE QUESTION PAPER > Pearson Edexcel International GCSE (9–1)..Computer Science PAPER 2: Application of Computational T (All)
Answer the questions requiring a written answer in the spaces provided. Some questions must be answered with a cross in a box . If you change your mind about an answer, put a line through the box an... d then mark your new answer with a cross . Carry out practical tasks on the computer system and save new or amended code using the name given with the appropriate file extension. Use only ONE programming language throughout the examination. Indicate the programming language that you are using with a cross in a box . C# Java Python 1 Computer programs make use of many programming constructs. (a) Identify which one of these is a logic operator. (1) A modulus B OR C >= D = (b) Describe one difference between a one-dimensional array and a two-dimensional array. (2) .................................................................................................................................................................................................................................................................................... .................................................................................................................................................................................................................................................................................... .................................................................................................................................................................................................................................................................................... .................................................................................................................................................................................................................................................................................... (c) Open Q01c in the code editor. The program should calculate how many £20 are in £113 and how much is left over. There are three errors in the code. Amend the code to correct the errors. Save your amended code as Q01cFINISHED with the correct file extension for the programming language. (3) http://britishstudentroom.wordpress.com/*P66490A0316* Turn over 3 (d) Raoul has written a program that counts the number of vowels in a sentence. Open Q01d in the code editor. Amend the code by adding a suitable comment (you may need to add more than one comment to a line): (i) at the end of the line where there is a relational operator (1) (ii) at the end of a line where iteration starts (1) (iii) at the end of the line where selection starts (1) (iv) at the end of a line where a data structure is initialised. (1) Save your amended code as Q01dFINISHED with the correct file extension for the programming language [Show More]
Last updated: 1 year ago
Preview 1 out of 16 pages
Connected school, study & course
About the document
Uploaded On
Jun 25, 2022
Number of pages
16
Written in
This document has been written for:
Uploaded
Jun 25, 2022
Downloads
0
Views
269
In Browsegrades, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Browsegrades · High quality services·