answersLogoWhite

0


Best Answer

for loop and while loop need the expression to be true for further execution of the program.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What loop should no execute if the test expression is false to begin with?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What happens if the controlling expression in a do while loop is initially false?

The do-while loop is designed specifically for such situations, where you want the loop to execute once irrespective of the loop expression. The loop would execute once and then terminate because, the loop controlling expression is false. If you note the syntax properly do { ... ... ... } while(condition) The condition is executed only after one iteration of the loop and hence the code would execute once irrespective of the loop expression result.


What expression has a value of either true or false?

In C, any non-zero expression is true and any zero expression is false.


Algorithm for method of false position?

One way to begin evaluating problems in algebra and calculus is to test the values for the variables that should not be there. This is known as the "false position method".


What is looping in c plus plus?

A loop in computer languages is a set of statements that execute repeatedly, based on some criteria.In C and C++, the three looping statements are while, do, and for...while (test-expression) statement;/* statement executes zero or more times, until test-expression is false, test first */do statement while (test-expression);/* statement executes one or more times, until test-expression is false, test last */for (init-expression, test-expression, loop-expression) statement;/* init-expression executed once, at beginning *//* statement executes zero or more times, until test-expression is false, test first *//* loop-expression evaluated at end of each iteration */Often, statement, is a set of statements, such as...while (test-expression) {... statements}


Define an expression that evaluates to true when i equals j?

In Java, or C, the expression is simply:i == jIf the two are equal, this expression will evaluate to true; if not, it will evaluate to false.In Java, or C, the expression is simply:i == jIf the two are equal, this expression will evaluate to true; if not, it will evaluate to false.In Java, or C, the expression is simply:i == jIf the two are equal, this expression will evaluate to true; if not, it will evaluate to false.In Java, or C, the expression is simply:i == jIf the two are equal, this expression will evaluate to true; if not, it will evaluate to false.

Related questions

What happens if the controlling expression in a do while loop is initially false?

The do-while loop is designed specifically for such situations, where you want the loop to execute once irrespective of the loop expression. The loop would execute once and then terminate because, the loop controlling expression is false. If you note the syntax properly do { ... ... ... } while(condition) The condition is executed only after one iteration of the loop and hence the code would execute once irrespective of the loop expression result.


How If and else run at a time?

The standard syntax is:if( conditional_expression )statement;[[else if( conditional_expression )statement;[else if...]]else statement;][] denotes optional components. Each statement may be a single statement, or may be multiple statements surrounded by braces {}.The if( conditional expression ) statement; is the only required component. In plain English, this reads: if the conditional expression is true, then execute the following statement, otherwise skip to the line following the statement.If the next line is an else statement, then the line reads: if the conditional expression is true, then execute the statement and skip over the else statement. But if the conditional expression is false, then skip over the statement and execute the else statement instead.if( conditional_expression )statement; // execute when conditional expression is trueelsestatement; // execute when conditional expression is falseThe statement following the else can be another ifstatement (a nested if):if( conditional_expression_1 )statement; // execute when conditional_expression_1 is true.else if( conditional_expression_2)statement; // execute when conditional_expression_1 is false and _2 is true.elsestatement; // execute when both _1 and _2 are both false.Note that if an else statement is used without a following if statement, it must appear after all other else if statements.


Should sicentific research begin with a theory?

No (False)


What expression has a value of either true or false?

In C, any non-zero expression is true and any zero expression is false.


Can you Compare while and do-while?

The 'while' statement evaluates its expression at the beginning of the loop, while a 'do while' statement evaluates its expression at the end of the loop. The 'while' statement might execute no times. The 'do while' statement will execute at least one time. It depends on what you want to do, and on how you want to use the side effects, if any, of the expressions in the expression. (Before or after)


Is this True or false after a highway route been selected erosion control considerations should now begin?

False


True or False After a highway route has been selected erosion control considerations should now begin?

false


What is an expression evaluates as either true or false?

Boolean expression


In evaluating a logical expression of type Boolean expression1 Boolean expression2 Both the Boolean expressions are not always evaluated True False?

FALSE.... cuz in && operator the compiler chk both of the expression if any of the expression is false then answer will be false.. for true result both of d expression must be true... by warrior2pnk


Does The House of Representatives must send all appropriations bills to the Senate for them to begin the legislative process?

It is not true that in order for the Senate to begin the legislative process of all the bills is that it must be sent by the House of Representatives. It should be first reviewed and approved to by the committee it was assigned to.


What is any value or expression that can be evaluated as being true or false?

A logical test is any value or expression that can be evaluated as being true or false.


When you begin to feel anxious you should admit your feeling and try to reduce your tension true or false?

True!