Introduction to Computing MCQs with Answers
Practice important Introduction to Computing MCQs with answers and explanations.
Chapter: 36
Q581:
What is indicated by a JUMP instruction in the execution of a program?
A. The order of instructions should be ignored
B. The CPU should fetch the next instruction from a different address
C. The current instruction should be repeated
D. The data should be processed before the instruction
Correct Answer:
B
Chapter: 36
Q582:
What does a machine cycle involve according to Figure 44?
A. Fetching, decoding, and executing instructions
B. Only fetching instructions
C. Only decoding instructions
D. Only executing instructions
Correct Answer:
A
Chapter: 36
Q583:
Which of the following is NOT a special-purpose register?
A. Data Register
B. Instruction Register
C. Program Counter
D. Address Register
Correct Answer:
A
Chapter: 37
Q584:
What does the CPU do during the execution step of the machine cycle in the example?
A. Fetches the next instruction
B. Loads data into the instruction register
C. Performs the addition operation
D. Increments the program counter
Correct Answer:
C
Chapter: 37
Q585:
In the given example, what is the contents of the instruction register after loading instruction from address A2?
A. 166D
B. 6C
C. 5056
D. C000
Correct Answer:
A
Chapter: 37
Q586:
What is the value of the Program Counter after the instruction 166D is loaded?
A. A2
B. A4
C. A6
D. AA
Correct Answer:
B
Chapter: 37
Q587:
What does the instruction 166D do according to the example?
A. Load register 5 with data from address 6C
B. Load register 6 with data from address 6D
C. Store data from register 5 to memory
D. Add contents of register 5 and register 6
Correct Answer:
B
Chapter: 37
Q588:
Where is the sum stored after the addition operation is completed?
A. Register 0
B. Memory location 6E
C. Register 5
D. Register 6
Correct Answer:
B
Chapter: 37
Q589:
What does the instruction 306E do in the program execution example?
A. Halt the machine
B. Load register 5
C. Store the result in memory location 6E
D. Increment the Program Counter
Correct Answer:
C
Chapter: 37
Q590:
What action does the CPU perform when it encounters the halt instruction (C000)?
A. Continues fetching instructions
B. Stops execution and halts
C. Loads data into registers
D. Fetches data from memory
Correct Answer:
B
Chapter: 37
Q591:
What happens to the Program Counter after fetching instruction from address A6?
A. It is decremented to A4
B. It remains at A6
C. It is incremented to A8
D. It is reset to A2
Correct Answer:
C
Chapter: 37
Q592:
In the execution example, which register holds the result of the addition operation?
A. Register 5
B. Register 6
C. Register 0
D. Memory location 6E
Correct Answer:
C
Chapter: 37
Q593:
What is the content of the instruction register just before the halt instruction is executed?
A. 5056
B. 306E
C. 166D
D. C000
Correct Answer:
D
Chapter: 38
Q594:
What is the result of ANDing the bit patterns 10011010 and 11001001?
A. 10001000
B. 11011001
C. 10001001
D. 11001000
Correct Answer:
A
Chapter: 38
Q595:
What does the OR operation do in bitwise operations?
A. Sets bits to 0
B. Sets bits to 1
C. Inverts bits
D. Duplicates bits with 0s
Correct Answer:
B
Chapter: 38
Q596:
What is the purpose of using the AND operation with a mask in bit manipulation?
A. To duplicate a part of a bit string while setting 1s
B. To copy a part of a bit string while setting 0s
C. To mask off bits and set specific bits to 1
D. To invert all bits in the string
Correct Answer:
B
Chapter: 38
Q597:
Which operation is used to form the complement of a bit string?
A. AND
B. OR
C. XOR
D. NOT
Correct Answer:
C
Chapter: 38
Q598:
In the example, what happens when you AND a byte with the mask 00100000?
A. The third bit from the high-order end is set to 1
B. The third bit from the high-order end is set to 0
C. The entire byte is set to 0
D. The entire byte is set to 1
Correct Answer:
B
Chapter: 38
Q599:
How does ORing a byte with 11110000 affect the result?
A. It sets the least significant four bits to 1
B. It sets the most significant four bits to 1
C. It duplicates the least significant four bits
D. It inverts all the bits
Correct Answer:
B
Chapter: 38
Q600:
What is the effect of XORing a byte with a mask of all 1s?
A. It leaves the byte unchanged
B. It inverts all the bits of the byte
C. It sets all bits to 1
D. It sets all bits to 0
Correct Answer:
B