In a structure diagram, what does a rectangle typically represent?
Software Design And Development
Question · Easy
Which design notation breaks a problem down into smaller numbered sub-problems and is best suited to top-down design?
Which Python data type would be most appropriate to store the value 3.14159?
Given a 1D array scores indexed from 0 to 9, which Python expression accesses the fifth element?
A 2D array seats has 5 rows and 8 columns. How many elements does it hold in total?
Question · Medium
Which Higher Computing Science data structure best represents a single pupil with name (string), age (integer) and average mark (real)?
What is the result of the Python expression 'Higher' + ' ' + 'Computing'?
What does the Python expression len('Edinburgh') return?
What is the value of 17 MOD 5 in Higher Computing Science?
What is the value of 23 DIV 4 in Higher Computing Science?
In a CASE statement on the variable grade, which option is the most appropriate use of CASE rather than nested IF?
A fixed loop iterates from 10 down to 1 inclusive in steps of -1. How many iterations execute?
Which loop construct is most appropriate when the number of iterations is NOT known in advance and depends on user input?
What does a REPEAT-UNTIL loop guarantee that a WHILE loop does not?
A nested loop has an outer loop that runs 5 times and an inner loop that runs 4 times. How many times does the innermost statement execute?
Question · Hard
What is the key difference between a procedure and a function in Higher Computing Science?
A parameter passed by reference allows the sub-program to:
Which statement about local and global variables is TRUE at Higher Computing Science?
Which Python built-in function is most appropriate to generate a whole number between 1 and 6 inclusive to simulate a dice roll?
What does the Python expression 'Computing'[2:5] return?
ASCII represents the uppercase letter 'A' as 65. What ASCII code represents 'D'?
A function isEven(n) should return True when n is divisible by 2. Which Python return statement is correct?
What is printed by the following pseudocode? SET total TO 0; FOR i FROM 1 TO 5 DO SET total TO total + i END FOR; SEND total TO DISPLAY
Modular design has several benefits. Which is NOT a recognised benefit?
Pseudocode declares: RECORD Pupil IS {name: STRING, age: INTEGER, average: REAL}. Which statement assigns 17 to the age field of a Pupil variable p?
Which kind of parameter passing is appropriate when a sub-program must update an array of marks so that the caller sees the changes?
Which Python expression rounds 3.674 to two decimal places?
Which Python expression converts the string '42' into the integer 42 ready for arithmetic?
Pseudocode uses an array of records: REPEAT FOR each pupil IN pupils, SEND pupil.name TO DISPLAY. What design technique does this loop demonstrate?
What is the output of the following Python? def add(a, b): return a + b; print(add(3, 4) * 2)
What does the following pseudocode produce when arr = [3, 7, 2, 9, 1]? SET m TO arr[0]; FOR i FROM 1 TO 4 DO IF arr[i] > m THEN SET m TO arr[i] END IF END FOR; SEND m TO DISPLAY
Which Python loop correctly traverses every cell of the 2D array grid[3][4]?
A pseudocode flowchart shows: a diamond with two outputs (Yes/No) leading into separate processes that converge. What construct does this represent?
What is the most likely advantage of writing readable, well-commented Higher Computing Science code?
Which combination of design notations is most commonly used together in Higher Computing Science design work?
Which type of test data checks the boundary conditions of a valid range?
Testing And Debugging
A program reads a percentage 0-100. Which value is an example of exceptional test data?
Which type of error is detected by the compiler before the program runs?
A program calculates average = total / 0 and crashes. What type of error is this?
Which debugging tool pauses program execution at a chosen line so the programmer can inspect variables?
What is the primary purpose of a watch point in a debugger?
What is the difference between component testing and comprehensive testing?
A trace table is filled in row by row as the program runs. Which columns must it usually contain?
A program asks for an age. The user enters -5. Which test data category does -5 represent for an age field?
Which statement is TRUE of static testing compared with dynamic testing?
Convert the 8-bit binary number 10110101 to decimal (unsigned).
Information Storage And Representation
Convert the decimal number 45 to 8-bit unsigned binary.
What is the largest unsigned integer that can be stored in 8 bits?
Loading more…