Vaidikalaya

MCQ On Opcode And Operand


Q1. Opcode indicates the operations to be performed..
  1. TRUE
  2. FALSE

Answer: a, TRUE

Solution: Every instruction has an opcode. Additionally, it may have one or more operands and the op code indicates the operation to be performed.

Q2. In instruction, the operation is specified by a binary code, known as the _____.
  1. system bus
  2. mnemonic
  3. opcode
  4. More than one of the above

Answer: c, opcode

Q3. The operation executed on data stored in registers is called.
  1. Macro-operation
  2. Micro-operation
  3. Bit-operation
  4. Byte-operation

Answer: b, Micro-operation

Q4. Each operation has its ____________ opcode:.
  1. Unique
  2. Two
  3. Three
  4. Four

Answer: a, Unique

Q5. ____________ specify where to get the source and destination operands for the operation specified by the ____________:.
  1. Operand fields and opcode
  2. Opcode and operand
  3. Source and destination
  4. Cpu and memory

Answer: a, Operand fields and opcode

Q6. Which part of an instruction format specifies the operation to be performed?.
  1. Opcode
  2. Operand
  3. Addressing mode
  4. Register

Answer: a, Opcode

Q7. In an instruction format, what is the function of the operand field?.
  1. To specify the type of operation
  2. To provide the data or address for the operation
  3. To indicate the execution time
  4. To encode the opcode

Answer: b, To provide the data or address for the operation

Q8. What does the address field in an instruction format typically specify?.
  1. The immediate value
  2. The location of the instruction
  3. The location of the operand
  4. The type of instruction

Answer: c, The location of the operand

Q9. Which of the following is a common component of an instruction format?.
  1. Opcode
  2. Index
  3. Buffer
  4. Flag

Answer: a, Opcode

Q10. The field in an instruction format that determines how the operand is interpreted is known as:.
  1. Addressing mode
  2. Data type
  3. Immediate value
  4. Register

Answer: a, Addressing mode

Q11. In a typical instruction format, which field contains the binary code for the operation?.
  1. Opcode
  2. Address
  3. Operand
  4. Mode

Answer: a, Opcode

Q12. What is the function of the mode field in an instruction format?.
  1. To specify the size of the instruction
  2. To determine the addressing method
  3. To store the result of the operation
  4. To indicate the execution priority

Answer: b, To determine the addressing method

Q13. Which instruction format component specifies the register used in the operation?.
  1. Opcode
  2. Address
  3. Register field
  4. Immediate value

Answer: c, Register field

Q14. What does an instruction format with a variable length allow?.
  1. Fixed-size instruction fields
  2. Dynamic allocation of operands
  3. Uniform size for all instructions
  4. Faster execution times

Answer: b, Dynamic allocation of operands

Q15. In a fixed-length instruction format, each instruction is:.
  1. Of varying length
  2. Always of the same length
  3. Determined by the operand size
  4. Encoded in a variable number of bytes

Answer: b, Always of the same length

Q16. Which field in an instruction format specifies whether an operand is immediate or memory-based?.
  1. Opcode
  2. Address
  3. Mode
  4. Register

Answer: c, Mode

Q17. In which instruction format are the source and destination operands specified?.
  1. Immediate format
  2. Register format
  3. Memory format
  4. Addressing format

Answer: b, Register format

Q18. What does the immediate field in an instruction format specify?.
  1. A direct memory address
  2. The type of operation
  3. A constant value used in the instruction
  4. A register number

Answer: c, A constant value used in the instruction

Q19. Which type of instruction format uses opcode and an immediate value?.
  1. R-format
  2. I-format
  3. J-format
  4. C-format

Answer: b, I-format

Q20. In an instruction format, the field that identifies the register used as a source operand is called:.
  1. Source register field
  2. Destination register field
  3. Index register field
  4. Immediate field

Answer: a, Source register field

Q21. Which instruction format component is used to determine if an operand is a direct or indirect address?.
  1. Addressing mode
  2. Opcode
  3. Immediate value
  4. Register

Answer: a, Addressing mode

Q22. What is typically found in the opcode field of an instruction format?.
  1. The address of the operand
  2. The specific operation to be performed
  3. The size of the operand
  4. The source and destination registers

Answer: b, The specific operation to be performed

Q23. What does the instruction format component ‘address’ typically provide?.
  1. The value of the operand
  2. The operation to be performed
  3. The location of the operand in memory
  4. The mode of addressing

Answer: c, The location of the operand in memory

Q24. In an instruction format, what is the role of the opcode field?.
  1. To define the data size
  2. To specify the address of the operand
  3. To encode the operation to be performed
  4. To indicate the type of register

Answer: c, To encode the operation to be performed

Q25. In instruction formats, the term ‘addressing mode’ refers to:.
  1. The size of the instruction
  2. The way operands are addressed
  3. The operation performed by the instruction
  4. The number of registers used

Answer: b, The way operands are addressed

Q26. Which instruction format uses a combination of an opcode and a memory address for specifying operands?.
  1. Immediate format
  2. Register format
  3. Memory format
  4. Hybrid format

Answer: c, Memory format

Q27. The field that contains the actual operation to be performed is known as:.
  1. Address field
  2. Register field
  3. Opcode
  4. Immediate value

Answer: c, Opcode

Q28. Which field in an instruction format helps in identifying the operation type and its parameters?.
  1. Address field
  2. Opcode
  3. Immediate value
  4. Mode field

Answer: b, Opcode

Q29. What does the mode field in an instruction format usually determine?.
  1. The size of the operand
  2. The addressing method used
  3. The opcode of the instruction
  4. The register used

Answer: b, The addressing method used

Q30. What is the primary role of the opcode in an instruction format?.
  1. To specify the data type
  2. To determine the memory location
  3. To encode the operation to be executed
  4. To identify the register used

Answer: c, To encode the operation to be executed

Q31. Which field in an instruction format specifies the operation code to be executed?.
  1. Address field
  2. Immediate value
  3. Opcode
  4. Register field

Answer: c, Opcode

Q32. A CPU supports 8 instructions. How many bits are required for the opcode?.
  1. 13
  2. 16
  3. 4
  4. 3

Answer: d, 3

Q33. A processor requires 12 distinct instructions. Find the opcode length..
  1. 3
  2. 6
  3. 5
  4. 4

Answer: d, 4

Q34. A CPU supports 45 instructions. How many bits are needed for the opcode?.
  1. 3
  2. 4
  3. 6
  4. 5

Answer: c, 6

Q35. A processor uses a 16-bit instruction format. Out of these:5 bits for opcode, 3 bits for register,Remaining for addressing. How many maximum instructions can be represented by this opcode?.
  1. 32
  2. 64
  3. 8
  4. 16

Answer: a, 32

Q36. A machine has a 32-bit architecture, with 1-word long instructions. It has 64 registers, each of which is 32 bits long. It needs to support 45 instructions, which have an immediate operand in addition to two register operands. Assuming that the immediate operand is an unsigned integer, the maximum value of the immediate operand is _____..
  1. 16383
  2. 16383
  3. 16383
  4. 16383

Answer: a, 16383

Q37. A processor has 64 registers and uses 16-bit instruction format. It has two types of instructions: I-type and R-type. Each I-type instruction contains an opcode, a register name, and a 4-bit immediate value. Each R-type instruction contains an opcode and two register names. If there are 8 distinct I-type opcodes, then the maximum number of distinct R-type opcodes is _____..
  1. 14
  2. 14
  3. 14
  4. 14

Answer: a, 14

Q38. A CPU has 12 registers and uses 6 addressing modes. RAM is 64K × 32. What is the maximum size of the op-code field in the instruction if the instruction has a register operand and a memory address operand?.
  1. 8 bits
  2. 9 bits
  3. 10 bits
  4. 11 bits

Answer: b, 9 bits

Q39. A computer uses a memory unit of 512 K words of 32 bits each. A binary instruction code is stored in one word of the memory. The instruction has four parts: an addressing mode field to specify one of the two-addressing mode (direct and indirect), an operation code, a register code part to specify one of the 256 registers, and an address part. How many bits are there in addressing mode part, opcode part, register code part, and the address part?.
  1. 1, 3, 9, 19
  2. 1, 4, 9, 18
  3. 1, 4, 8, 19
  4. 1, 3, 8, 20

Answer: c, 1, 4, 8, 19

Q40. A micro instruction format has micro operation field which is divided into 2 subfields F1 and F2, each having 15 distinct microoperations, condition field CD for four status bits, branch field BR having four options used in conjunction with address field AD. The address space is of 128 memory words. The size of micro instruction is:.
  1. 19
  2. 18
  3. 17
  4. 20

Answer: a, 19

Q41. Consider the following: Operation code Source operand reference Result operand reference Next instruction reference Which of the above are typical elements of machine instructions?.
  1. 1, 2 and 3 only
  2. 1, 2 and 4 only
  3. 3 and 4 only
  4. 1, 2, 3 and 4

Answer: d, 1, 2, 3 and 4

Q42. Consider a 32-bit processor which supports 70 instructions. Each instruction is 32 bits long and has 4 fields namely opcode, two register identifiers and an immediate operand of unsigned integer type. Maximum value of the immediate operand that can be supported by the processor is 8191. How many registers does the processor have?.
  1. 32
  2. 64
  3. 128
  4. 16

Answer: b, 64

Q43. A Computer uses a memory unit with 256K word of 32 bits each. A binary instruction code is stored in one word of memory. The instruction has four parts: an indirect bit, an operation code and a register code part to specify one of 64 registers and an address part. How many bits are there in operation code, the register code part, and the address part?.
  1. 7, 7, 18
  2. 18, 7, 7
  3. 7, 6, 18
  4. 6, 7, 18

Answer: c, 7, 6, 18