Translating Algorithmic Statements · CSEC Information Technology
17 past-paper questions on Translating Algorithmic Statements, part of Program Implementation, from every CSEC Information Technology paper on Quelpr.
- 9(b)5 marks· CSEC Information Technology · 2011 · Paper 2Write the contents of the two arrays after execution of the following fragment of code: for x := 1 to 4 do List1[x] := List1[x] - List2[x]
- 10(b)6 marks· CSEC Information Technology · 2011 · Paper 2print the number of stars (*) in the array
- 10(c)6 marks· CSEC Information Technology · 2011 · Paper 2print the comment 'NO' for all characters other than * or # in the array.
- 12(e)2 marks· CSEC Information Technology · 2011 · Paper 2The symbols = and <>
- 10(b)4 marks· CSEC Information Technology · 2015 · Paper 2Assign the values 5 and 10 to the first and second locations of the array respectively, using two Pascal statements.
- 10(c)2 marks· CSEC Information Technology · 2015 · Paper 2Add the values in the first and second locations of the array and store the sum in the third location of the array in Pascal code.
- 3(f)5 marks· CSEC Information Technology · 2022 · Paper 2Complete the pseudocode by writing a nested if-then-else statement to produce the required output based on the number of goals scored by Team A and Team B.
- 12(b)(i)1 mark· CSEC Information Technology · January 2010 · Paper 1Explain the execution of Line 1: 'If MARK > 50 Then print "Good"'.
- 12(b)(ii)1 mark· CSEC Information Technology · January 2010 · Paper 1Explain the execution of Line 2: 'If MARK >= 50 Then print "Day"'.
- 9(d)8 marks· CSEC Information Technology · January 2013 · Paper 2Write the output from the program when Num1 = 3 and Num2 = 4.
- 11(c)3 marks· CSEC Information Technology · January 2013 · Paper 2State the output produced from the array after executing the code fragment: For Count := 4 to 7 DO Write(LIST[Count-1]);
- 9(b)5 marks· CSEC Information Technology · January 2014 · Paper 2A third array DIFF is created by subtracting TEST2 scores from TEST1 scores. Assuming all three arrays begin at index 1, write the content of the array DIFF when the given fragment of code is executed.
- 12(e)3 marks· CSEC Information Technology · January 2014 · Paper 2Write PASCAL code to calculate the duty to be paid on a car. Use the variables you declared.
- 10(a)(v)1 mark· CSEC Information Technology · May/June 2013 · Paper 2State the type of structure that is used in lines 7 to 9.
- 12(d)4 marks· CSEC Information Technology · May/June 2013 · Paper 2Print the value stored in the variable SUM. Ensure that the cursor is placed on the next line.
- Q571 mark · multiple choice· CSEC Information Technology · May/June 2019 · Paper 1Item 57 refers to the following code. sum = 0 count = ? While count < 10 do count = count + 1 Read num sum = sum + num endwhile Printsum If the While loop is to be executed 10 times, what initial value…
- 12(c)(iii)3 marks· CSEC Information Technology · May/June 2019 · Paper 2State the purpose of the fragment code.