FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Timson wants to create a loop control structure for a thermostat program. He wants the temperature to be set at 72 degrees Fahrenheit when the motion sensors in the building sense movement. What type of statement should be used for this loop?
A
do while
B
if
C
else
D
if/else
Explanation: 

Detailed explanation-1: -Sequence is the default control structure; instructions are executed one after another.

Detailed explanation-2: -In computer programming, a loop is a sequence of instruction s that is continually repeated until a certain condition is reached. Typically, a certain process is done, such as getting an item of data and changing it, and then some condition is checked such as whether a counter has reached a prescribed number.

Detailed explanation-3: -Correct option and explanation: Repetition structure is used when a program needs to repeatedly process on one or more instructions until some conditions are met.

There is 1 question to complete.