A.Which of the following is not an arithmetic law?
A. Identity law B. Distributive law
C. Commutative law D. Law of negation
B. Which of the following components is actually responsible for executing an instruction?
A. Software B. Hardware
C. Flip-fl ops D. Counter
C. Which of the following are the building blocks of digital circuit?
A. Flip-fl ops B. Logic gates
C. Register D. None of the above
D. Which of the following types of operations can be performed by logic gates?
A. Assignment operation B. Arithmetical operation
C. Logical operation D. Shift operation
E. Which of the following digital circuits is used to add binary numbers?
A. Register B. Logic gates
C. Adder D. All of the above
F. Which of the following logic gates is also known as inverter?
A. AND B. OR
C. NAND D. NOT
G. Remove the semicolon at the end of the printf statement in the program of Fig. 3.2 and
execute it. What is the output?
H. In the Sample Program 2, delete line-5 and execute the program. How helpful is the error
message?