Ask Question

The body of a while ( ...) { ... } loop will always executes atleast once, no matter what test condition is stated.

Select one:

a. TRUE

b. FALSE

+2
Answers (1)
  1. 11 May, 23:30
    0
    The correct answer for the given question is false.

    Explanation:

    In the while loop if the condition is true then it executes the loop otherwise not so it is entry control loop.

    syntax:

    while (condition)

    {

    / / statement

    / / increment and decrement

    }

    For example

    int i=1;

    while (i<=5)

    {

    cout<<"hello";

    i++;

    }

    In this example variable i is initialized by 1 1<=5 which is true it execute the statement and print hello after that increment the value of i = i+1 so i=2 i<=5 which is again true and print hello this will continue untill the condition in while loop is false when condition is false it terminate the loop.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “The body of a while ( ...) { ... } loop will always executes atleast once, no matter what test condition is stated. Select one: a. TRUE b. ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers