Which component of the CPU performs arithmetic and logical operations?
Computer Systems
Question · Easy
Movie hacker vs real life
Short
What is the correct order of the stages in the fetch-decode-execute cycle?
Question · Medium
Which statement best describes the role of RAM in a computer system?
Which of the following is the main purpose of cache memory?
Which factor would generally have the LEAST effect on overall CPU performance?
This bouncer is a firewall
Which of the following is an example of an embedded system?
Which of these is NOT typically a function of an operating system?
Which type of secondary storage typically has the FASTEST read and write speeds?
Which register holds the address of the next instruction to be fetched from memory?
What is the main role of a device driver?
Which statement about ROM is correct?
Virtual memory is best described as:
Which of the following best describes an interrupt?
Question · Hard
Which of these would most clearly be classified as system software rather than application software?
Which one of the following is an advantage of using a Solid State Drive (SSD) instead of a Hard Disk Drive (HDD) in a laptop?
Which search algorithm requires the data to be sorted before it will work correctly?
Algorithms
Using binary search on the sorted list [2, 5, 9, 14, 21, 33, 41, 58, 64] to find the value 21, which item is compared FIRST?
After ONE full pass of bubble sort (ascending) on the list [5, 1, 4, 2, 8], the list is:
Which sorting algorithm uses a divide-and-conquer approach by repeatedly splitting the list in half, sorting each half and then merging the results?
In the worst case, how many comparisons does a linear search need to make on a list of 1000 unsorted items?
Consider this AQA pseudocode: total <- 0 FOR i <- 1 TO 5 total <- total + i ENDFOR OUTPUT total What is output?
Insertion sort is being used on [4, 3, 8, 5]. What is the list after the second pass (i.e. after item with index 2 has been inserted into the sorted portion)?
Which algorithm has the WORST average-case time complexity?
Why does merge sort generally outperform bubble sort on large lists?
An algorithm is best defined as:
Which of these is NOT one of the three basic programming constructs?
Programming
Which data type would be most appropriate to store a person's age in whole years?
Which AQA pseudocode statement correctly assigns the value 10 to a variable called score?
What is the main difference between a variable and a constant?
Consider this AQA pseudocode: x <- 7 IF x > 10 THEN OUTPUT 'big' ELSE IF x > 5 THEN OUTPUT 'medium' ELSE OUTPUT 'small' ENDIF What is output?
Which loop is best suited when you know in advance exactly how many times the loop must run?
Which logical operator returns TRUE only if BOTH operands are true?
In programming, a subroutine that returns a value is most commonly called a:
Why is using subroutines (functions and procedures) considered good programming practice?
Consider this AQA pseudocode: count <- 0 WHILE count < 4 count <- count + 1 ENDWHILE OUTPUT count What value is output?
A variable defined inside a subroutine that is not accessible outside it has what scope?
In AQA pseudocode, what does LEN('Hello') return?
Consider: num1 <- 7 num2 <- 3 result <- num1 MOD num2 OUTPUT result What is output?
What is meant by 'casting' in programming?
Which AQA pseudocode expression converts the string '42' into the integer 42?
Why is breaking a problem down into smaller subproblems (decomposition) helpful when designing a solution?
Consider this AQA pseudocode function: FUNCTION double(x) RETURN x * 2 ENDFUNCTION OUTPUT double(6) What is output?
Which of the following errors is most likely to be detected by the COMPILER before a program runs?
What is the result of the Boolean expression (5 > 3) AND (2 = 4)?
Consider: word <- 'COMPUTER' OUTPUT word.SUBSTRING(2, 3) Using AQA pseudocode (0-based indexing), what is output?
In a one-dimensional array names of size 5 (indices 0 to 4), which statement correctly assigns 'Sara' to the third element?
Data Structures
Loading more…