Which of the following are kinds of instructions? A. Input B. Arithmetic C. Conditional branching D. All of the above E. None of the above

[amp_mcq option1=”Input” option2=”Arithmetic” option3=”Conditional branching” option4=”All of the above E. None of the above” correct=”option4″]

The correct answer is D. All of the above.

Input instructions are used to read data from an input device, such as a keyboard or mouse. Arithmetic instructions are used to perform mathematical operations, such as addition, subtraction, multiplication, and division. Conditional branching instructions are used to control the flow of execution of a program, based on the value of a condition.

Here is a brief explanation of each option:

  • Input instructions are used to read data from an input device, such as a keyboard or mouse. For example, the read() instruction in C reads a character from the keyboard.
  • Arithmetic instructions are used to perform mathematical operations, such as addition, subtraction, multiplication, and division. For example, the add() instruction in C adds two numbers.
  • Conditional branching instructions are used to control the flow of execution of a program, based on the value of a condition. For example, the if() statement in C executes a block of code if a condition is true.

I hope this helps!

Exit mobile version