FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which group of words denotes decisions?
A
begine, end, input, output, print, read, write
B
for, repeat until, while, while not
C
if, then, else, elseif (elif) when
D
None of these.
Explanation: 

Detailed explanation-1: -if… elif…else are conditional statements that provide you with the decision making that is required when you want to execute code based on a particular condition.

Detailed explanation-2: -In Python, elif is short for “else if” and is used when the first if statement isn’t true, but you want to check for another condition. Meaning, if statements pair up with elif and else statements to perform a series of checks. A full if/elif/else block is in the code example below.

Detailed explanation-3: -The elif keyword is used in conditional statements (if statements), and is short for else if.

There is 1 question to complete.