First 50 of 200 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 1Computer Fundamentals and Organization
In the UPMSP Intermediate computer syllabus, which unit of memory is exactly 1024 bytes?
- One word
- One megabyte
- One kilobyte Correct answer.
- One nibble
Explanation
In binary memory measurement, one kilobyte equals 2^10 bytes, which is exactly 1024 bytes. Larger units such as the megabyte are built from 1024 kilobytes, so they are far bigger than 1024 bytes.
Question 2Computer Fundamentals and Organization
Which number system uses only the digits 0 and 1 and is the internal representation used by digital computers?
- Decimal
- Hexadecimal
- Binary Correct answer.
- Octal
Explanation
The binary system has base 2 and only two symbols, 0 and 1, which map directly onto the two voltage states of digital circuits. Decimal, octal and hexadecimal are all positional systems but use ten, eight and sixteen symbols respectively.
Question 3Computer Fundamentals and Organization
Which component of a computer is described as the 'brain' that fetches, decodes and executes instructions?
- The Central Processing Unit Correct answer.
- The SMPS power supply
- The Random Access Memory
- The hard disk drive
Explanation
The CPU contains the control unit and the arithmetic logic unit, and it performs the fetch-decode-execute cycle on program instructions. RAM only stores data temporarily, the disk stores data permanently, and the SMPS only supplies power.
Question 4Computer Fundamentals and Organization
Which of these devices is classified as an input device in a computer system?
- A monitor
- A graphics tablet Correct answer.
- A laser printer
- A plotter
Explanation
An input device sends data from the user into the computer; a graphics tablet converts pen strokes into digital coordinates. Printers, monitors and plotters all work in the opposite direction, presenting processed output to the user.
Question 5Computer Fundamentals and Organization
What is the standard size of a single byte in a computer?
- 4 bits
- 16 bits
- 8 bits Correct answer.
- 32 bits
Explanation
By convention a byte is a group of 8 bits, which can represent 256 distinct values from 0 to 255. Four bits form a nibble, while 16 and 32 bits are word lengths used by some processors.
Question 6Computer Fundamentals and Organization
Which type of software is the Windows operating system an example of?
- Application software
- Programming language
- Utility firmware
- System software Correct answer.
Explanation
An operating system is system software because it manages hardware, files and processes and provides a platform for other programs. Application software such as a word processor runs on top of the operating system rather than managing the machine itself.
Question 7Computer Fundamentals and Organization
Which of the following is an example of primary memory in a computer?
- Random Access Memory Correct answer.
- A DVD-ROM disc
- A pen drive
- A magnetic tape cartridge
Explanation
Primary memory is directly accessible by the CPU and holds currently running programs; RAM is the standard example. DVDs, pen drives and tapes are secondary storage, which the CPU cannot address directly and which retains data without power.
Question 8Computer Fundamentals and Organization
Which generation of computers is characterised by the use of integrated circuits?
- First generation
- Fifth generation
- Third generation Correct answer.
- Second generation
Explanation
Third-generation machines replaced discrete transistors with integrated circuits, which packed many components onto a single chip. The first generation used vacuum tubes, the second used transistors, and the fifth relies on very large scale integration and artificial intelligence techniques.
Question 9Computer Fundamentals and Organization
The decimal number 13 is written in binary as which of the following?
- 1001
- 1110
- 1011
- 1101 Correct answer.
Explanation
Converting 13 by repeated division by 2 gives remainders 1, 0, 1, 1 read upwards, so 13 equals 8+4+1, which is 1101 in binary. Checking the place values 8, 4, 2, 1 confirms only the 8, 4 and 1 positions are set.
Question 10Computer Fundamentals and Organization
A student adds the two binary numbers 1011 and 0110. What is the correct 4-bit result?
- 10001 Correct answer.
- 10011
- 11001
- 10101
Explanation
Adding bit by bit from the right: 1+0=1, 1+1=0 with carry 1, 0+1+1=0 with carry 1, and 1+0+1=0 with carry 1, giving 10001. In decimal terms 11 plus 6 equals 17, and 10001 in binary is 16+1=17, which confirms the answer.
Question 11Computer Fundamentals and Organization
Which register in the CPU holds the memory address of the next instruction to be fetched?
- The Program Counter Correct answer.
- The Instruction Register
- The Accumulator
- The Memory Data Register
Explanation
The program counter stores the address of the next instruction and is incremented after each fetch so execution proceeds in sequence. The accumulator holds operands and results, the memory data register buffers data moving to or from memory, and the instruction register holds the instruction currently being decoded.
Question 12Computer Fundamentals and Organization
Which memory is volatile, meaning its contents are lost when power is switched off?
- A hard disk platter
- Flash memory
- Static RAM Correct answer.
- Read Only Memory
Explanation
SRAM is volatile because it depends on continuous power to hold each bit in a flip-flop; switching off the supply clears it. ROM, flash memory and hard disks are non-volatile and retain their contents without power.
Question 13Computer Fundamentals and Organization
Which of these is an example of system software that helps manage and maintain a computer's resources?
- A disk defragmenter utility Correct answer.
- A photo editor
- A web browser
- A spreadsheet program
Explanation
Utilities such as a disk defragmenter belong to system software because they maintain the machine's storage and performance. Spreadsheets, browsers and photo editors are application software aimed at user tasks.
Question 14Computer Fundamentals and Organization
What is the main function of the Arithmetic Logic Unit inside a processor?
- Displaying output on the monitor
- Storing the operating system permanently
- Performing arithmetic and logical operations on data Correct answer.
- Converting AC power into DC power
Explanation
The ALU carries out arithmetic operations such as addition and logical operations such as AND, OR and comparison on the operands supplied to it. Permanent storage, power conversion and display are handled by other subsystems entirely.
Question 15Computer Fundamentals and Organization
Which of the following correctly orders these storage devices from fastest access to slowest access?
- Main memory, cache memory, magnetic tape, hard disk
- Hard disk, cache memory, main memory, magnetic tape
- Cache memory, main memory, hard disk, magnetic tape Correct answer.
- Magnetic tape, hard disk, main memory, cache memory
Explanation
Access time increases as one moves away from the CPU: cache is fastest, then main memory, then the hard disk, and tape is slowest because it is accessed sequentially. Cost per bit follows the opposite trend, which is why large fast memory is kept small.
Question 16Computer Fundamentals and Organization
Which logic gate produces a HIGH output only when both of its inputs are HIGH?
- The XOR gate
- The OR gate
- The NOT gate
- The AND gate Correct answer.
Explanation
An AND gate outputs 1 only for the input combination 1,1, and outputs 0 for every other combination. An OR gate outputs 1 when at least one input is 1, and a NOT gate has only one input.
Question 17Computer Fundamentals and Organization
A computer has a 12-bit address bus. How many distinct memory locations can it directly address?
- 1024
- 8192
- 4096 Correct answer.
- 2048
Explanation
With n address lines the processor can select 2^n distinct locations, so 2^12 equals 4096. Each additional address line doubles the addressable space, which is why 11 lines give 2048 and 13 lines give 8192.
Question 18Computer Fundamentals and Organization
Which type of computer is designed to handle a very large volume of input data with high reliability, typically used by banks and airlines?
- A palmtop computer
- A laptop computer
- A desktop computer
- A mainframe computer Correct answer.
Explanation
Mainframes are built for high-volume transaction processing, centralised storage and continuous availability, which suits banks and reservation systems. Palmtops, desktops and laptops are general-purpose personal machines without that scale of throughput and reliability.
Question 19Computer Fundamentals and Organization
Which statement best describes the difference between a compiler and an interpreter?
- A compiler runs source code directly, while an interpreter produces an object file
- A compiler is hardware, while an interpreter is firmware
- A compiler works only on binary code, while an interpreter works only on machine instructions
- A compiler translates the whole program at once, while an interpreter translates and runs it line by line Correct answer.
Explanation
A compiler converts the entire source program into machine code before execution, whereas an interpreter translates and executes statements one at a time. This makes compiled programs faster to run but slower to modify, while interpreted programs are easier to debug interactively.
Question 20Computer Fundamentals and Organization
Which of these is an example of a secondary storage device?
- The cache memory
- A solid state drive Correct answer.
- The control unit
- A CPU register
Explanation
A solid state drive stores data permanently using flash memory and is therefore secondary storage. Cache, registers and the control unit are internal processor resources that hold data only temporarily.
Question 21Computer Fundamentals and Organization
The hexadecimal number 2F is equal to which decimal value?
- 38
- 62
- 45
- 47 Correct answer.
Explanation
In hexadecimal, 2F means 2 times 16 plus 15, since F represents 15, giving 32 plus 15 equals 47. Hexadecimal is used because one hex digit maps exactly onto four binary bits, so 2F is 0010 1111 in binary.
Question 22Computer Fundamentals and Organization
A processor fetches an instruction from memory. Which sequence of events correctly describes the remainder of the instruction cycle?
- Decode the instruction, fetch any operand, execute the operation, store the result Correct answer.
- Store the result, fetch the operand, execute the operation, decode the instruction
- Execute the operation, decode the instruction, fetch the operand, store the result
- Decode the instruction, store the result, execute the operation, fetch the operand
Explanation
After the fetch stage, the control unit decodes the opcode, then obtains any required operands, executes the operation in the ALU, and writes the result back. Execution cannot precede decoding because the processor would not yet know which operation to perform.
Question 23Computer Fundamentals and Organization
Using two's complement 8-bit representation, what is the result of adding 0111 1111 and 0000 0001?
- 1000 0000, which represents -128 because signed overflow has occurred Correct answer.
- 1111 1111, which represents -1
- 0000 0000, which represents zero
- 1000 0001, which represents -127
Explanation
Adding 127 and 1 gives the bit pattern 1000 0000, but in 8-bit two's complement that pattern denotes -128 rather than +128. The true sum exceeds the maximum positive value 127, so signed overflow occurs and the result is mathematically invalid.
Question 24Computer Fundamentals and Organization
Which statement about the von Neumann architecture is correct?
- Instructions are stored in a separate memory from data at all times
- Memory is bypassed entirely because all operands live in registers
- The processor executes data values directly without fetching instructions
- Instructions and data share the same memory and are carried on the same bus Correct answer.
Explanation
In the von Neumann model, program instructions and data occupy a single common memory and travel over shared buses, which is why the CPU must distinguish them by context. The separate-memory approach is the Harvard architecture, which is a different design.
Question 25Computer Fundamentals and Organization
Which factor most directly explains why cache memory improves performance despite being much smaller than main memory?
- It permanently replaces main memory in the memory hierarchy
- It stores the entire contents of the hard disk for instant retrieval
- It slows the clock so that memory can keep pace with the processor
- It exploits locality of reference by keeping recently used data close to the CPU Correct answer.
Explanation
Programs tend to reuse the same instructions and data repeatedly, so a small fast cache holding recent items satisfies most requests. Because cache access is much quicker than main memory access, the average memory latency falls even though the cache is tiny.
Question 26Computer Fundamentals and Organization
In computer organization, which unit of storage is exactly equal to 1024 megabytes (MB)?
- One nibble
- One terabyte (TB)
- One kilobyte (KB)
- One gigabyte (GB) Correct answer.
Explanation
Memory sizes in computing scale in powers of two, and each step upward multiplies by 1024. Therefore 1024 MB combine to form one gigabyte, while a terabyte is 1024 GB and a kilobyte is far smaller. A nibble is only 4 bits, so it cannot equal a megabyte-scale quantity.
Question 27Computer Fundamentals and Organization
A keyboard, a mouse and a scanner all belong to which broad category of hardware?
- Output devices
- Input devices Correct answer.
- Processing devices
- Secondary storage devices
Explanation
Input devices are hardware that send data or commands from the user into the computer for processing. Keyboards, mice and scanners all capture information from the outside world and pass it to the CPU. Output devices instead present results, and storage devices retain data rather than capture it.
Question 28Computer Fundamentals and Organization
A computer's main memory holds 4096 words, and each word is 16 bits wide. What is the total capacity of this memory in bits?
- 262144 bits
- 65536 bits Correct answer.
- 4096 bits
- 8192 bits
Explanation
Total capacity equals the number of words multiplied by the width of each word. Here 4096 words times 16 bits per word gives 65536 bits, which is also 8 kilobytes. Multiplying only the word count or only the width gives an incomplete answer.
Question 29Computer Fundamentals and Organization
In the stored-program concept, what is kept in main memory alongside the data being processed?
- The physical wiring of the control unit
- Only the operating system kernel
- The program instructions that the CPU will execute Correct answer.
- Only the contents of the cache
Explanation
The stored-program concept means that both instructions and data reside in the same main memory in binary form. The CPU fetches instructions from memory one by one, which allows a machine to run different programs without rewiring. Data alone would not tell the processor what operations to perform.
Question 30Computer Fundamentals and Organization
A system uses a 16-bit address bus and a word-addressable memory in which each addressable word is 8 bits. How large is the directly addressable memory space?
- 16 kilobytes
- 64 kilobytes Correct answer.
- 32 kilobytes
- 8 kilobytes
Explanation
A 16-bit address bus can select 2^16 distinct addresses, which equals 65536 locations. Because each location holds one 8-bit byte, the space is 65536 bytes, or 64 KB. Treating the address width itself as the capacity leads to the incorrect answers.
Question 31Data Representation and Number Systems
In the binary number system, what is the place value (weight) of the fourth position counted from the right, starting at position 1?
- 2
- 16
- 4
- 8 Correct answer.
Explanation
Binary is base-2, so each position doubles in weight as you move left. Position 1 has weight 2^0 = 1, position 2 has 2, position 3 has 4, and position 4 has 2^3 = 8.
Question 32Data Representation and Number Systems
What is the decimal value of the binary number 1101?
- 13 Correct answer.
- 15
- 11
- 12
Explanation
Add the place values where a 1 appears: 8 + 4 + 1 = 13. The zero in the 2's position contributes nothing, so the total is 13.
Question 33Data Representation and Number Systems
Which digits are valid in the octal number system?
- 0 and 1
- 0 to 8
- 0 to 7 Correct answer.
- 0 to 9
Explanation
Octal is base-8, so it uses exactly eight symbols: the digits 0 through 7. The digit 8 is not allowed because it would immediately carry into the next position.
Question 34Data Representation and Number Systems
What is the hexadecimal digit that represents the decimal value 12?
- D
- C Correct answer.
- E
- B
Explanation
Hexadecimal extends the digits with letters A=10, B=11, C=12, D=13, E=14, F=15. Therefore decimal 12 is written as C.
Question 35Data Representation and Number Systems
Which of the following is the correct 8-bit binary representation of the decimal number 45?
- 01001101
- 00101101 Correct answer.
- 00101011
- 00111101
Explanation
45 = 32 + 8 + 4 + 1, so the bits at weights 32, 8, 4 and 1 are set. Reading from 128 down to 1 gives 00101101.
Question 36Data Representation and Number Systems
How many bits are needed to store a single hexadecimal digit in binary form?
- 4 Correct answer.
- 16
- 8
- 3
Explanation
Each hexadecimal digit covers 16 values (0-15), and 2^4 = 16, so exactly 4 bits are required. This is why hexadecimal is a compact shorthand for binary.
Question 37Data Representation and Number Systems
Convert the octal number 247 to decimal.
- 167 Correct answer.
- 175
- 169
- 183
Explanation
Evaluate positionally: 2×8^2 + 4×8^1 + 7×8^0 = 128 + 32 + 7 = 167. Each step left multiplies the weight by 8.
Question 38Data Representation and Number Systems
What is the decimal equivalent of the hexadecimal number 2F?
- 31
- 63
- 47 Correct answer.
- 45
Explanation
Hexadecimal 2F means 2×16 + 15 = 32 + 15 = 47, since F represents 15. The left digit carries a weight of 16.
Question 39Data Representation and Number Systems
Convert the decimal number 100 into binary.
- 1100010
- 1110100
- 1100100 Correct answer.
- 1010000
Explanation
100 = 64 + 32 + 4, so the bits at weights 64, 32 and 4 are set. Reading from 64 down to 1 yields 1100100.
Question 40Data Representation and Number Systems
Using 8-bit two's complement representation, what is the binary form of -5?
- 00000101
- 11111011 Correct answer.
- 10000101
- 11111010
Explanation
Write +5 as 00000101, invert the bits to get 11111010, then add 1 to obtain 11111011. In two's complement the leading 1 marks the value as negative.
Question 41Data Representation and Number Systems
What is the result of adding the two binary numbers 1011 and 0110?
- 10001 Correct answer.
- 11001
- 10011
- 10101
Explanation
Adding column by column: 1011 + 0110 = 10001, which is decimal 17. Carries propagate left as in decimal addition, but each carry is worth 2.
Question 42Data Representation and Number Systems
Which decimal value does the BCD (binary-coded decimal) code 10010111 represent?
- 151
- 127
- 97 Correct answer.
- 1001
Explanation
In BCD each group of 4 bits encodes one decimal digit: 1001 = 9 and 0111 = 7, giving 97. BCD is not a pure binary value, so the bits are read in nibbles.
Question 43Data Representation and Number Systems
The ASCII code of the character 'A' is 65. What is the ASCII code of the character 'D'?
- 67
- 68 Correct answer.
- 69
- 70
Explanation
Uppercase letters occupy consecutive ASCII codes, so 'D' is three positions after 'A'. Adding 3 to 65 gives 68.
Question 44Data Representation and Number Systems
Convert the binary number 101101 into hexadecimal.
- 2D Correct answer.
- 2B
- 5B
- 1D
Explanation
Group the bits into nibbles from the right: 0010 1101. The nibble 0010 is 2 and 1101 is D (13), so the hexadecimal form is 2D.
Question 45Data Representation and Number Systems
What is the 8-bit binary representation of the decimal fraction 0.5?
- 0.00000001
- 0.11000000
- 0.10000000 Correct answer.
- 0.01000000
Explanation
0.5 equals 2^-1, so the first fractional bit (weight one-half) is set and the rest are zero. The result is 0.10000000.
Question 46Data Representation and Number Systems
In the IEEE 754 single-precision floating-point format, how many bits are allocated to the exponent field?
- 23
- 11
- 1
- 8 Correct answer.
Explanation
Single precision uses 32 bits in total: 1 sign bit, 8 exponent bits and 23 mantissa bits. The 8-bit exponent is stored with a bias of 127.
Question 47Data Representation and Number Systems
Subtract the binary number 0011 from 1010 using binary arithmetic. What is the result?
- 0101
- 1101
- 1001
- 0111 Correct answer.
Explanation
1010 equals 10 and 0011 equals 3, so the difference is 7, written as 0111. Borrows occur when 0 must give 1 to a neighbour, and each borrow is worth 2.
Question 48Data Representation and Number Systems
An 8-bit register stores the signed value 11110000 in two's complement form. What is its decimal value?
- -15
- -16 Correct answer.
- -112
- 240
Explanation
The leading 1 indicates a negative number, so invert the bits (00001111) and add 1 to get 00010000, which is 16. The value is therefore -16.
Question 49Data Representation and Number Systems
The 8-bit two's complement representation of a number is 10000000. What decimal value does it represent?
- -127
- 128
- -128 Correct answer.
- 0
Explanation
In 8-bit two's complement the range is -128 to +127, and 10000000 is the smallest value, -128. Inverting and adding 1 gives 10000000 again, confirming -128.
Question 50Data Representation and Number Systems
A binary number has n bits. Which expression gives the total number of distinct unsigned values it can represent?
- 2n
- 2^n Correct answer.
- n^2
- 2^(n-1)
Explanation
Each bit doubles the number of combinations, so n bits give 2^n distinct patterns, covering 0 to 2^n - 1. For example, 8 bits give 256 values from 0 to 255.