Question

When you write code with conditional execution, the reason why you should use 3 or less...

When you write code with conditional execution,

the reason why you should use 3 or less conditional execution instructions is ( A )

What is A ?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

In the given statement , the reason why we should use 3 or less conditional execution instructions is because :

We can only use conditional keywords and create a block which consists on one or many blocks of instructions which get executed if the the conditions are satisfied. So we use 3 keywords IF-Then-Else to set conditional execution instructions.

for instance, in pseudo code we can say :

if( condition 1 ) {do something in 1}

else if(condition 2) { do something in 2}

else {do something else}

so as we see in the pseudo code above, we can set conditional statements and only that block gets executed if the condition 1 is True. If it is False, ie., the condition 1 does not satisfy, we check in the else if block, if condition 2 is satisfied or true then only that corresponding block gets executed. Otherwise else condition block is executed.

Instead of all 3 of these instructions, we can use just the If block or If and Else block.

This format maintains code readability, saves memory and is much easier to debug through.

Add a comment
Know the answer?
Add Answer to:
When you write code with conditional execution, the reason why you should use 3 or less...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT