3
QuizMultiple Choice

Resources for Programmers — Unit test

Question 3 • Introduction to Information Technology - EL3701

Conditional statements are useful to computer programmers because

Answer
A
they eliminate extra coding by reuse of materials.
B
they allow programmers to set conditions to be met for an action to take place.
C
they use shorthand symbols to represent quantities.
D
they are predefined for each programming language.

Explanation

A conditional statement checks whether a condition is true and controls whether an action happens. For example, a program might display a message only if a user enters the correct password. Therefore, the correct choice is “they allow programmers to set conditions to be met for an action to take place.”

AI-written and checked against the verified answer.

Previous
Next