Ghana Teacher Licensure Subject ICT - independent foundations study materials
Ghana Teacher Licensure Subject ICT - independent foundations study resources

Ghana Teacher Licensure Subject ICT - independent foundations practice questions

One question at a time. Build your Ghana Teacher Licensure Subject ICT - independent foundations understanding.

First 50 of 190 questions. Each one lists the choices, the correct answer, and an explanation. The checker at the top of this page saves progress in this browser when it is available.

Continue in the practice tool above to load more questions, 50 at a time.

Question 1Programming, object modelling and software development

In a standard flowchart, which symbol is used to represent a decision point?

  1. Rectangle
  2. Oval
  3. Parallelogram
  4. Diamond Correct answer.

Explanation

In flowcharts, a diamond symbol is used to indicate a decision step. It typically has one input line and two or more output lines corresponding to different answers (e.g., Yes/No). Rectangles indicate processes, ovals represent start/end, and parallelograms show input/output.

Question 2Programming, object modelling and software development

In the Scratch programming environment, what is the default character (sprite) that appears when you create a new project?

  1. A dog
  2. A cat Correct answer.
  3. A fish
  4. A bear

Explanation

Scratch uses the 'Scratch Cat' as its mascot and default sprite in every new project. Users can delete this sprite and choose others from the library, but the cat is the initial default icon. Scratch was created by the MIT Media Lab.

Question 3Programming, object modelling and software development

Which programming construct repeats a block of code as long as a specified condition remains true?

  1. Sequence
  2. Selection
  3. Iteration Correct answer.
  4. Modularization

Explanation

Iteration (or looping) is the programming construct that repeatedly executes a sequence of instructions based on a condition (e.g., using while or for loops). Sequence executes blocks in order, Selection uses if/else decisions, and Modularization splits code into functions.

Question 4Programming, object modelling and software development

In the Scratch programming interface, what shape are the blocks that represent conditions or boolean statements (returning True or False)?

  1. Rounded caps
  2. Hexagons Correct answer.
  3. Rectangles
  4. Oval reporters

Explanation

In Scratch, boolean blocks (like 'touching color?' or 'score > 10') have a hexagonal shape. They fit into hexagonal slots in other control blocks (like 'if' statements). Rounded caps start scripts, rectangles are execution blocks, and ovals report numbers or text.

Question 5Programming, object modelling and software development

Which algorithmic design paradigm solves a problem by breaking it into smaller independent subproblems, solving them recursively, and combining their results?

  1. Brute force
  2. Divide and conquer Correct answer.
  3. Greedy approach
  4. Backtracking

Explanation

Divide and Conquer is a paradigm that recursively breaks a problem down into subproblems of the same or related type, until they become simple enough to be solved directly. Their solutions are then combined (e.g., Merge Sort). Brute force tries all options, Greedy makes locally optimal choices, and Backtracking searches paths recursively.

Question 6Programming, object modelling and software development

Which data structure operates on a Last-In, First-Out (LIFO) access strategy?

  1. Queue
  2. Stack Correct answer.
  3. Linked List
  4. Array

Explanation

A Stack is a linear data structure that restricts insertion and deletion to one end, implementing the Last-In, First-Out (LIFO) model (e.g., undo operations). Queues use First-In, First-Out (FIFO). Linked lists and arrays allow access at arbitrary indices depending on implementation.

Question 7Programming, object modelling and software development

What is the final output printed by the following algorithm? Set Count = 1 Set Sum = 0 While Count < 5 Sum = Sum + Count Count = Count + 1 EndWhile Print Sum

  1. 10 Correct answer.
  2. 15
  3. 6
  4. 5

Explanation

Tracing the loop: 1. Count=1: Sum=0+1=1, Count becomes 2. 2. Count=2: Sum=1+2=3, Count becomes 3. 3. Count=3: Sum=3+3=6, Count becomes 4. 4. Count=4: Sum=6+4=10, Count becomes 5. Loop terminates because Count=5 is not less than 5. Sum is 10.

Question 8Programming, object modelling and software development

What is the process of locating and correcting logical errors or bugs in a program?

  1. Compiling
  2. Linking
  3. Debugging Correct answer.
  4. Parsing

Explanation

Debugging is the systematic process of finding, isolating, and resolving bugs or logical errors within a software application. Compiling translates high-level code, linking joins binary object modules together, and parsing examines syntactic structures.

Question 9Programming, object modelling and software development

In Scratch programming, which block category contains the block used to prompt a user for input and save the keyboard entry?

  1. Control Blocks
  2. Sensing Blocks Correct answer.
  3. Operators Blocks
  4. Events Blocks

Explanation

In Scratch, the 'ask [question] and wait' block is part of the 'Sensing' (light blue) category. It prompts a text entry bar on the screen and stores the typed response in the built-in variable 'answer'. Control blocks handle loops/conditionals, and operators handle math.

Question 10Programming, object modelling and software development

In standard flowcharting guidelines, which shape is used to represent the start and end boundaries of an algorithm?

  1. Parallelogram
  2. Rectangle
  3. Oval (Terminator) Correct answer.
  4. Diamond

Explanation

An oval (specifically a rounded rectangle or terminator symbol) is used in flowcharts to represent the start or end of an algorithm sequence. Parallelograms show input/output, rectangles show operations, and diamonds indicate conditional branch decisions.

Question 11Programming, object modelling and software development

Which data type is designed to hold only one of two possible states: True or False?

  1. Integer
  2. String
  3. Float
  4. Boolean Correct answer.

Explanation

A Boolean data type represents logical states, containing only one of two values: True (1) or False (0). Integers store whole numbers, Strings store text, and Floats store decimals.

Question 12Programming, object modelling and software development

What is the worst-case time complexity of the classic Quick Sort algorithm, and under what condition does it occur?

  1. O(n log n), when the array is already sorted
  2. O(n^2), when the array is already sorted and the first or last element is chosen as the pivot Correct answer.
  3. O(n log n), when the pivot elements are chosen randomly
  4. O(n^2), when the pivot is the median of the array

Explanation

Quick Sort has a worst-case time complexity of O(n^2). This occurs when the array is already sorted (or reverse sorted) and the pivot is chosen as the extreme element (first or last). This causes highly unbalanced partitions (n-1 and 0 elements), leading to quadratic performance.

Question 13Programming, object modelling and software development

What will be the final value of the variables x and y after executing the following Python code segment? x = 5 y = 10 def swap_and_add(a, b): a = a + b b = a - b a = a - b return a + 2 z = swap_and_add(x, y)

  1. x = 10, y = 5
  2. x = 5, y = 10 Correct answer.
  3. x = 12, y = 10
  4. x = 10, y = 12

Explanation

Python uses pass-by-value (object reference) for immutable objects like integers. The operations inside 'swap_and_add' swap and modify local copies 'a' and 'b'. The original variables 'x' and 'y' in the global scope are unchanged. Thus, x remains 5 and y remains 10.

Question 14Programming, object modelling and software development

What structural property characterizes a Binary Search Tree (BST)?

  1. Every node must have exactly two children
  2. The tree is perfectly balanced and complete
  3. For any given node, all values in its left subtree are less than its value, and all values in its right subtree are greater Correct answer.
  4. Every leaf node is at the exact same depth level

Explanation

A Binary Search Tree (BST) is a node-based binary tree data structure where the left subtree of a node contains only keys with values less than the node's key, and the right subtree contains only keys with values greater than the node's key. This property enables efficient O(log n) searches.

Question 15Algorithms, recursion and complexity

In computer science, abstraction is best described as which of the following?

  1. Hiding unnecessary details so a problem or system can be understood and managed at a higher level Correct answer.
  2. Writing out every single low-level instruction a processor executes
  3. Translating source code into machine language
  4. Measuring the time complexity of an algorithm

Explanation

Abstraction means focusing on the essential features of a problem while ignoring or hiding unnecessary details, which lets people reason about complex systems at a manageable level. The GACE objective treats abstraction as a foundational concept of computer science.

Question 16Algorithms, recursion and complexity

What is the decimal (base-10) value of the binary number 1011?

  1. 11 Correct answer.
  2. 13
  3. 9
  4. 23

Explanation

Each binary digit represents a power of two from right to left: 1x8 + 0x4 + 1x2 + 1x1 = 8 + 0 + 2 + 1 = 11. Converting between number bases is an explicit GACE Algorithms and Computational Thinking objective.

Question 17Algorithms, recursion and complexity

What is the hexadecimal representation of the decimal number 255?

  1. FF Correct answer.
  2. 100
  3. 0F
  4. F0

Explanation

Hexadecimal is base 16, where F equals 15. The value 255 equals 15x16 + 15 = FF, the largest two-digit hexadecimal number. Analyzing and converting representations of numbers in different bases is a GACE objective.

Question 18Algorithms, recursion and complexity

A student breaks the task of building a school website into smaller subtasks: design the layout, write the content, code the navigation, and test the pages. This approach best demonstrates which computational thinking practice?

  1. Problem decomposition Correct answer.
  2. Number base conversion
  3. Data encryption
  4. Operator precedence

Explanation

Problem decomposition is the practice of breaking a large, complex problem into smaller, more manageable subproblems that can be solved individually. Dividing the website project into layout, content, navigation, and testing tasks is a clear example.

Question 19Algorithms, recursion and complexity

An algorithm performs a single pass through a list of n items, doing constant work for each item. Which describes its time complexity?

  1. Linear, O(n) Correct answer.
  2. Quadratic, O(n^2)
  3. Logarithmic, O(log n)
  4. Constant, O(1)

Explanation

When the number of operations grows in direct proportion to the input size n, the running time is linear, written O(n). A single pass doing constant work per element is the canonical example of linear time.

Question 20Algorithms, recursion and complexity

A binary search is performed on a sorted list of 16 elements. What is the maximum number of comparisons needed to determine whether a target value is present?

  1. 5 Correct answer.
  2. 16
  3. 8
  4. 4

Explanation

Binary search halves the search space with each comparison, so the maximum number of comparisons is floor(log2 n) + 1. For 16 elements, log2(16) = 4, giving a maximum of 5 comparisons. Calculating comparisons for binary search is a stated GACE objective.

Question 21Algorithms, recursion and complexity

Which essential component must every recursive algorithm include to avoid running forever?

  1. A base case (stopping condition) Correct answer.
  2. A nested loop
  3. A global variable
  4. A sorting step

Explanation

A recursive algorithm calls itself on smaller inputs and must include a base case, a condition under which it stops recursing and returns a direct result. Without a base case, the recursion never terminates. Identifying the base case is an explicit GACE objective.

Question 22Algorithms, recursion and complexity

Which problem is best characterized as one that cannot be solved exactly within a practical time, making a heuristic solution appropriate?

  1. Finding the absolute shortest route that visits hundreds of cities exactly once (the traveling salesman problem) Correct answer.
  2. Adding two integers together
  3. Finding the largest value in a list of ten numbers
  4. Reversing a short string of characters

Explanation

The traveling salesman problem grows so quickly with the number of cities that finding the guaranteed optimal route becomes computationally impractical for large inputs, so heuristics that find good-enough solutions are used. Recognizing when heuristic solutions are useful is a GACE objective.

Question 23Algorithms, recursion and complexity

A teacher explains the difference between random and pseudorandom numbers. Which statement is correct?

  1. Pseudorandom numbers are generated by a deterministic algorithm from a seed and will repeat if the same seed is used Correct answer.
  2. Pseudorandom numbers can never be reproduced under any circumstances
  3. Truly random numbers are always produced by software loops
  4. Pseudorandom and truly random numbers are identical in every way

Explanation

Pseudorandom number generators use a deterministic algorithm starting from a seed value, so the same seed always produces the same sequence, which makes them reproducible. This distinguishes them from truly random sources, which derive from physical, unpredictable phenomena.

Question 24Algorithms, recursion and complexity

Consider the recursive definition: factorial(0) = 1, and factorial(n) = n * factorial(n - 1) for n > 0. What value does factorial(4) produce?

  1. 24 Correct answer.
  2. 12
  3. 16
  4. 10

Explanation

Tracing the recursion: factorial(4) = 4 * 3 * 2 * 1 * factorial(0) = 4 * 3 * 2 * 1 * 1 = 24. Tracing simple recursive algorithms such as n factorial is an explicit GACE objective.

Question 25Algorithms, recursion and complexity

A flowchart uses a diamond shape at a decision point. What does the diamond most commonly represent in standard flowchart notation?

  1. A condition or decision that branches the flow based on yes/no or true/false Correct answer.
  2. The start or end of the algorithm
  3. A simple process or calculation step
  4. Input or output of data

Explanation

In standard flowchart notation, the diamond represents a decision: a condition is evaluated and the flow branches based on the result, typically yes/no or true/false. Interpreting flowchart symbols and tracing algorithms in different formats is a GACE objective.

Question 26Algorithms, recursion and complexity

A student is given a table showing input values 1, 2, 3, 4 paired with outputs 1, 4, 9, 16. Which rule best describes the pattern that produces the outputs?

  1. Each output is the input squared Correct answer.
  2. Each output is the input plus three
  3. Each output is the input multiplied by four
  4. Each output is double the input

Explanation

Checking the pairs: 1^2 = 1, 2^2 = 4, 3^2 = 9, 4^2 = 16. The output equals the square of the input. Identifying patterns in a table of values and the algorithm that produces them is a GACE pattern-recognition objective.

Question 27Algorithms, recursion and complexity

An algorithm using nested loops compares every element of a list to every other element. As the list size n grows large, which growth rate best describes the number of comparisons?

  1. Quadratic, proportional to n^2 Correct answer.
  2. Linear, proportional to n
  3. Logarithmic, proportional to log n
  4. Constant, independent of n

Explanation

When an inner loop runs n times for each of the n iterations of an outer loop, the total number of comparisons is proportional to n times n, which is n^2, or quadratic growth. The GACE objective asks teachers to identify and compare linear, quadratic, exponential, and logarithmic algorithms.

Question 28Algorithms, recursion and complexity

Which list of items represents an abstraction hierarchy correctly ordered from the lowest (most detailed) level to the highest (most abstract) level?

  1. Transistors, logic gates, integrated circuits, computer Correct answer.
  2. Computer, integrated circuits, logic gates, transistors
  3. Logic gates, transistors, computer, integrated circuits
  4. Integrated circuits, computer, transistors, logic gates

Explanation

Abstraction hierarchies build from the most detailed physical components upward. Transistors combine into logic gates, gates form integrated circuits, and circuits make up the complete computer, moving from low (detailed) to high (abstract). Ordering an abstraction hierarchy is a GACE objective.

Question 29Algorithms, recursion and complexity

An algorithm's running time doubles every time one additional input element is added. Which growth rate does this describe?

  1. Exponential Correct answer.
  2. Linear
  3. Logarithmic
  4. Constant

Explanation

If adding one element doubles the work, the running time grows as a power of two with respect to input size, which is exponential growth. Exponential algorithms quickly become infeasible for large inputs, a key idea in the GACE limitations objective.

Question 30Architecture, logic and embedded systems

Which component of the computer is known as the 'brain' and is responsible for executing instructions?

  1. Random Access Memory (RAM)
  2. Central Processing Unit (CPU) Correct answer.
  3. Hard Disk Drive (HDD)
  4. Motherboard

Explanation

The Central Processing Unit (CPU) is known as the brain of the computer because it performs all arithmetic, logical, and input/output control operations that execute program instructions. RAM is for temporary data storage, HDDs are for long-term storage, and the motherboard provides structural and electrical connections.

Question 31Architecture, logic and embedded systems

Which of the following is strictly an input device?

  1. Monitor
  2. Plotter
  3. Scanner Correct answer.
  4. Projector

Explanation

A scanner is strictly an input device because it converts physical images or documents into digital data. Monitors, plotters, and projectors are output devices that present processed information visually to the user.

Question 32Architecture, logic and embedded systems

Which type of memory is volatile and loses its contents when the computer is powered off?

  1. Read-Only Memory (ROM)
  2. Random Access Memory (RAM) Correct answer.
  3. Flash Memory
  4. Hard Disk Drive (HDD)

Explanation

Random Access Memory (RAM) is volatile, meaning it requires electricity to maintain its state and loses all stored data when the system is powered down. ROM, Flash Memory, and HDDs are non-volatile and retain data permanently without power.

Question 33Architecture, logic and embedded systems

How many bits make up one byte?

  1. 4 bits
  2. 8 bits Correct answer.
  3. 16 bits
  4. 32 bits

Explanation

A byte is a unit of digital information that standardly consists of 8 bits. In computing history, 8 bits was chosen because it was sufficient to represent a single character of text using the ASCII encoding system.

Question 34Architecture, logic and embedded systems

What is the decimal representation of the binary number 1011?

  1. 9
  2. 10
  3. 11 Correct answer.
  4. 13

Explanation

To convert the binary number 1011 to decimal, calculate the sum of the powers of 2 for each active bit position: (1 * 2^3) + (0 * 2^2) + (1 * 2^1) + (1 * 2^0) = 8 + 0 + 2 + 1 = 11.

Question 35Architecture, logic and embedded systems

Which sub-unit of the CPU performs mathematical calculations and logical comparisons?

  1. Control Unit (CU)
  2. Arithmetic Logic Unit (ALU) Correct answer.
  3. Memory Management Unit (MMU)
  4. Instruction Register

Explanation

The Arithmetic Logic Unit (ALU) is the CPU component that executes all mathematical operations (addition, subtraction, multiplication) and logical operations (AND, OR, NOT, comparisons). The Control Unit manages the execution cycle, while the MMU handles memory mapping.

Question 36Architecture, logic and embedded systems

What is the most recommended way to prevent static electricity from damaging sensitive computer hardware during assembly?

  1. Wearing rubber gloves
  2. Using an anti-static wrist strap Correct answer.
  3. Working on a carpeted floor
  4. Keeping the computer plugged into a wall outlet

Explanation

An anti-static wrist strap discharges static electricity buildup from the technician's body to a grounded object, protecting components like CPUs and RAM from Electrostatic Discharge (ESD). Carpets build up static charge, and keeping systems plugged in can present shock hazards.

Question 37Architecture, logic and embedded systems

Which secondary storage device has no moving parts and stores data persistently using solid-state flash memory?

  1. Hard Disk Drive (HDD)
  2. Floppy Disk Drive
  3. Solid State Drive (SSD) Correct answer.
  4. Optical Disc Drive

Explanation

A Solid State Drive (SSD) uses non-volatile flash memory to store data, resulting in faster read/write speeds, lower power consumption, and greater physical durability than HDDs, which use rotating magnetic platters and read/write heads.

Question 38Architecture, logic and embedded systems

What is the hexadecimal equivalent of the decimal number 243?

  1. D3
  2. E3
  3. F3 Correct answer.
  4. B3

Explanation

To convert the decimal number 243 to hexadecimal: 1. Divide 243 by 16: 243 / 16 = 15 with a remainder of 3. 2. The quotient 15 is represented by the letter 'F' in hexadecimal. 3. The remainder is 3. Combining them gives F3.

Question 39Architecture, logic and embedded systems

Which logic gate outputs a binary 0 only when all of its inputs are 1, and outputs a 1 in all other input combinations?

  1. AND gate
  2. NAND gate Correct answer.
  3. OR gate
  4. NOR gate

Explanation

The NAND (Not-AND) gate is a universal logic gate whose output is the inverse of an AND gate. Its output is 0 only when all inputs are 1; if any input is 0, the output is 1. The AND gate outputs 1 only when all inputs are 1.

Question 40Architecture, logic and embedded systems

What is the 8-bit two's complement binary representation of the decimal number -19?

  1. 11101101 Correct answer.
  2. 11101100
  3. 11101011
  4. 11100011

Explanation

To represent -19 in 8-bit two's complement: 1. Represent +19 in binary: 00010011. 2. Invert all bits (one's complement): 11101100. 3. Add 1 to the result: 11101100 + 1 = 11101101.

Question 41Architecture, logic and embedded systems

What is the correct logical sequence of stages in the CPU instruction cycle?

  1. Store, Decode, Fetch, Execute
  2. Fetch, Decode, Execute, Store Correct answer.
  3. Decode, Fetch, Execute, Store
  4. Fetch, Execute, Decode, Store

Explanation

The instruction cycle (machine cycle) operates in the sequence: 1. Fetch (retrieve instruction from memory address in Program Counter), 2. Decode (translate opcode by Control Unit), 3. Execute (ALU or registers perform calculation), 4. Store (write back execution results to memory or registers).

Question 42Architecture, logic and embedded systems

Why is it essential to apply thermal paste between a CPU and its heat sink during PC assembly?

  1. To physically glue the CPU into the socket
  2. To fill microscopic air gaps and facilitate heat transfer from the processor to the heat sink Correct answer.
  3. To shield the CPU from electromagnetic interference
  4. To lubricate the CPU cooling fan

Explanation

Metal CPU lids and heat sink bases have microscopic air pockets on their surfaces. Thermal paste fills these air gaps, which conduct heat poorly. It establishes a contiguous thermal bridge to transfer heat from the hot CPU to the heat sink. It has no adhesive, shielding, or lubrication function.

Question 43Architecture, logic and embedded systems

How many distinct states or values can be represented using a 10-bit binary register?

  1. 512
  2. 1024 Correct answer.
  3. 2048
  4. 4096

Explanation

The number of unique states that can be represented with n bits is calculated using the formula 2^n. For a 10-bit register, 2^10 = 1024 unique values (ranging from 0 to 1023 in unsigned integer representation).

Question 44Architecture, logic and embedded systems

Which touchscreen technology relies on the electrical properties of the human body to detect touch events?

  1. Resistive Touchscreen
  2. Capacitive Touchscreen Correct answer.
  3. Infrared Touchscreen
  4. Surface Acoustic Wave Touchscreen

Explanation

Capacitive touchscreens use a layer of capacitive material that stores electrical charge. When a finger touches the screen, it draws some of the charge, changing the electrostatic field. The system measures this change to calculate coordinate inputs. Resistive touchscreens rely on physical pressure to push conductive layers together.

Question 45Architecture, logic and embedded systems

What is the function of the Program Counter (PC) register in a standard CPU architecture?

  1. It counts the total number of clock cycles executed
  2. It holds the memory address of the next instruction to be fetched Correct answer.
  3. It holds the binary opcode of the instruction currently being executed
  4. It stores intermediate calculation results from the ALU

Explanation

The Program Counter (PC) is a dedicated register that stores the memory address of the next instruction to be fetched from memory. Once the instruction is fetched, the PC automatically increments to point to the subsequent instruction in sequence, control loops notwithstanding.

Question 46Architecture, logic and embedded systems

What is the decimal equivalent of the octal number 157?

  1. 103
  2. 111 Correct answer.
  3. 125
  4. 143

Explanation

To convert the octal number 157 to decimal: (1 * 8^2) + (5 * 8^1) + (7 * 8^0) = 64 + 40 + 7 = 111.

Question 47Architecture, logic and embedded systems

Which basic logic gate produces an output that is always the logical negation of its input?

  1. AND gate
  2. OR gate
  3. NOT gate Correct answer.
  4. XOR gate

Explanation

The NOT gate (also called an inverter) takes a single input and produces the opposite state as output. If input is 1, output is 0; if input is 0, output is 1. AND, OR, and XOR gates require multiple inputs to evaluate output.

Question 48Architecture, logic and embedded systems

An uncompressed video stream runs at 1080p resolution (1920 x 1080 pixels) at 30 frames per second with 24-bit color depth. What is the raw, uncompressed bandwidth required to transmit this video stream in Megabytes per second (using the binary definition where 1 MB = 1,048,576 bytes)?

  1. 178.0 MB/s Correct answer.
  2. 149.3 MB/s
  3. 186.6 MB/s
  4. 59.3 MB/s

Explanation

To calculate raw bandwidth: 1. Find pixels per frame: 1920 * 1080 = 2,073,600 pixels. 2. Find bytes per pixel: 24 bits / 8 = 3 bytes. 3. Find bytes per frame: 2,073,600 * 3 = 6,220,800 bytes. 4. Find bytes per second: 6,220,800 * 30 frames = 186,624,000 bytes/sec. 5. Convert to binary MB/s: 186,624,000 / 1,048,576 = 177.98 MB/s, which rounds to 178.0 MB/s.

Question 49Architecture, logic and embedded systems

Which of the following boolean expressions represents the fully simplified form of the logic function F = (A + B)(A' + C)?

  1. AC + AB + BC
  2. A'B + BC
  3. AC + A'B Correct answer.
  4. AB + AC

Explanation

Expanding the expression: F = (A + B)(A' + C) = AA' + AC + A'B + BC. Since AA' = 0, this reduces to AC + A'B + BC. According to the Boolean consensus theorem, the term BC is redundant (consensus of AC and A'B is BC). Thus, the fully simplified form is AC + A'B.

Question 50Architecture, logic and embedded systems

A CPU executes a program where 20% of the instructions are branches (taking 4 cycles each), 50% are arithmetic (taking 1 cycle each), and 30% are memory access (taking 2 cycles each). What is the Average Cycles Per Instruction (CPI) for this workload?

  1. 1.5 cycles
  2. 1.9 cycles Correct answer.
  3. 2.1 cycles
  4. 2.3 cycles

Explanation

To calculate the Average CPI, compute the weighted average of the instruction cycles: CPI = (0.20 * 4) + (0.50 * 1) + (0.30 * 2) = 0.80 + 0.50 + 0.60 = 1.9 cycles.