Binary Representation of Numbers (1 mark)
Explain how the binary number system is used to represent numerical data in computers.
Binary Representation of Numbers (1 mark) Read More »
Explain how the binary number system is used to represent numerical data in computers.
Binary Representation of Numbers (1 mark) Read More »
Given that A=1, B=0, C=1, apply the AND operator to inputs A and B, and the OR operator to the result with input C. What is the final result? Explain your answer.
Truth Table Problem-Solving (1 marks) Read More »
Explain how you would apply the NOT operator to a single input A to solve a problem. Provide a description of the resulting truth table.
Truth Table Application (2 marks) Read More »
Describe what the logical operators AND, OR, and NOT represent when used in truth tables.
Using Logical Operators (3 marks) Read More »
What affects a sorting algorithm’s efficiency? Discuss simple sorting algorithms, such as bubble sort and merge sort to help with your explanation.
Evaluating Efficiency (4 marks) Read More »
Given the following algorithm segment: START For each number in list Set total to 0 Add number to total End For Display total END A logic error has caused the algorithm to always display the last value of the list. Correct the logic error in the algorithm.
Logic Error Identification (2 marks) Read More »
Identify three types of logic errors that can occur in a program.
Logic Errors (3 marks) Read More »
Explain the difference between a syntax error and a runtime error.
Syntax vs Run-Time (2 marks) Read More »
Explain the concept of the ‘divide and conquer’ strategy as used in the merge sort algorithm.
Merge Sort Concept (2 Marks) Read More »
What is a precondition for using a binary search algorithm on an array, and why is this precondition necessary?
Binary Search Precondition (2 Marks) Read More »