answersLogoWhite

0


Best Answer

1. false

2. true

3. false

4. true, but that statement can be a compound statement, ie a statement-block between {}

5. false

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: The body of for loop 1 Executes at least once 2 Executes zero or more times 3 Can not be executed more than100 times 4 Consists one and only one statement 5 Can not execute infinitely?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is the method used to implement an if else statement in C?

The else statement is an optional part of an if statement that is executed if the primary if condition is false.if (condition) true_statementelse false_statement


Why are the statements in the body of a loop called conditionally executed statements?

These statements are called conditionally executed statements because the may or may not be executed. They will be executed while the boolean (true/false) statement in the beginning of the loop is true, but will not be executed when statement is false.


Which of the following statement is executed after call moduleB?

the first statement in ModuleB


What is the for loop in c plus plus?

In C, also in C++, the for loop executes zero or more times, until the test expression is false...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 */


The arguments in an IF function are?

IF, in C and C++, is not a function - it is a statement. There are two parameters... if (expression) statement; The expression is evaluated. If it has logical result true, or arithmentic result not zero, the statement is executed; if not, the statement is not executed. The statement can be a single statement, in which it is terminated with a semi-colon, or it can be a block of statements, in which it is surrounded by braces.

Related questions

Can you have a if statement where both the if and else part are executed?

No. An if statement executes its target block if the condition is true, and executes its else block if the condition is false. There is no ambiguity. Even if the terms of the condition changed during the execution of the target block, it would not matter because the condition is evaluated only once, at the beginning of the processing of the if statement.


What is the method used to implement an if else statement in C?

The else statement is an optional part of an if statement that is executed if the primary if condition is false.if (condition) true_statementelse false_statement


What are the difference bitween while and do-while statement in c language?

While loop will be executed only the specified conditions atisfies. Do-While loop executes atleast once before checking for condition. So even a condition fails, the loop will be executed once.


Difference between do while and for loop?

for loop it consists of 3 parts 1. initialization 2. condition 3. incrementation like for(i=1;i<=10;i++).This loop executes 10 times. While loop: This is an entry check loop. First it checks for the condition and if the condition is true then only loop will be executed and this continues till the condition becomes false. ex: i=0; while(i<10) {i++; } This loop executes 10 times. Do loop: This is an exit check loop. This executes the loop at least once even when the condition is false. ex: 1=0; do { i++; }while(i<10);


Why are the statements in the body of a loop called conditionally executed statements?

These statements are called conditionally executed statements because the may or may not be executed. They will be executed while the boolean (true/false) statement in the beginning of the loop is true, but will not be executed when statement is false.


Which of the following statement is executed after call moduleB?

the first statement in ModuleB


What is the for loop in c plus plus?

In C, also in C++, the for loop executes zero or more times, until the test expression is false...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 */


The arguments in an IF function are?

IF, in C and C++, is not a function - it is a statement. There are two parameters... if (expression) statement; The expression is evaluated. If it has logical result true, or arithmentic result not zero, the statement is executed; if not, the statement is not executed. The statement can be a single statement, in which it is terminated with a semi-colon, or it can be a block of statements, in which it is surrounded by braces.


What is the syntax of a conditional statement in JavaScript?

In JavaScript we have the following conditional statements:if statement - you would use this statement to execute some code only if a specified condition is trueif...else statement - you would use this statement to execute some code if the condition is true and another code if the condition is falseif...else if....else statement - you would use this statement to select one of many blocks of code to be executedswitch statement - you would use this statement to select one of many blocks of code to be executedFor example: If StatementUse the if statement to execute some code only if a specified condition is true. Syntaxif (condition) {code to be executed if condition is true}If...else StatementUse the if....else statement to execute some code if a condition is true and another code if the condition is not true. Syntaxif (condition) {code to be executed if condition is true}If...else if...else StatementUse the if....else if...else statement to select one of several blocks of code to be executed. Syntaxif (condition1) {code to be executed if condition1 is true}else if (condition2){code to be executed if condition2 is true}else{code to be executed if condition1 and condition2 are not true}else{code to be executed if condition is not true}


How 'if' statement is different from a 'switch' statement in C language?

The if statement is used to select among two alternatives. It uses a boolean expression todecide which alternative should be executed. The switch statement is used to select among multiple alternatives. It uses an int expression to determine which alternativeshould be executed.


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}


What statement causes a function to executed in PHP?

All usable statements in PHP can cause a function to be executed - however, that's not to say that every statement will execute a function. A statement is defined by the programmer, who it is ultimately the one responsible for including a function, more than one function, or no functions.