Question

When you know the number of times a loop will execute when a program runs, it...

When you know the number of times a loop will execute when a program runs, it is a _________ loop.

a. definite

b. absolute

c. incremented

d. virtual

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

It is calle as definite loop. Because prior entering the loop we know how many times the loop is going to be executed.

If we are not sure then it is indefinite loop.

Add a comment
Know the answer?
Add Answer to:
When you know the number of times a loop will execute when a program runs, it...
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
  • Create a while loop that will execute the following code 12 times using a counter that...

    Create a while loop that will execute the following code 12 times using a counter that starts at 1 and is incremented by 1 each time through the loop. Within the while loop, create a switch statement that will print out the number of days in each of the months of the year. - Use fall through capabilities so that you only have one print statement for all of the months that contain 31 days. Do not worry about leap...

  • Instructions Now, you introducing a "for" loop. This loop runs a pre-determined number of times. The...

    Instructions Now, you introducing a "for" loop. This loop runs a pre-determined number of times. The "for" loop initiates the counter variable, determines how many times the loop will run and generally increments or decrements the counter variable. In this example, the counter is initialized to 1, and it increments by one each time the loop runs. The loop rings the value of the counter variable each time it runs. Here's the Flowchart: Main Integer counter Next counter 1 to...

  • 3. A tor loop is useful when you know in advance the number of iterations to...

    3. A tor loop is useful when you know in advance the number of iterations to be executed. The tor loop consists of three parts each of which is separated by a semicolon (:). The first part is initialization of the variable for iteration, the second part is a test of the iteration variable and if this test fails, the loop is finished. The third part is a counter for the iteration variable. A block can be followed after the...

  • how many times will the following loop execute? For intCount = To 1 Step -2 'Body...

    how many times will the following loop execute? For intCount = To 1 Step -2 'Body of loop Next A. 4 B. 5 C. 9 D. 10

  • whats the answers For the following code, indicate how many times the loop body will execute...

    whats the answers For the following code, indicate how many times the loop body will execute for the following input values: 2 1 0? userNum - 3 while (userNum > 0) { // Do something // Get user um from input } 3 Given the following code, how many times will the inner loop body execute? int row: int col; for (row = 0; row < 2; row - row + 1) { for (col = 0; col < 3;...

  • Write a C program that prompts the user for the number for times the user wants...

    Write a C program that prompts the user for the number for times the user wants to flip a coin. Your program will flip a virtual coin that number of times and return the following: 1) The number of times heads occurred. 2) The number of times tails occured. Then take the coin flip program and modify the random number generator to roll a single 6-sided dice.   DO NOT DISPLAY THE RESULTS OF EACH ROLL. 1) Ask the user how...

  • Suppose your code contains a loop that runs once for each number in a list. Assume...

    Suppose your code contains a loop that runs once for each number in a list. Assume there are 4 basic steps of work to do before the loop and 2 after, and the loop does 3 meaningful steps of work for each iteration of the loop. You may assume that a basic step of work is represented as 1. (a) Write an expression to describe the work of the program in terms of the size of the list. Refer to...

  • C programming Question (Please help if you can) - Create a "loop" that will execute n...

    C programming Question (Please help if you can) - Create a "loop" that will execute n times, displaying numbers starting at b and incrementing by i. The numbers that would result should be inserted into an array for example n = 5 b = 6 i = 4 resulting array= {6 10 14 18 22} -------------------------------- n = 6 b = 10 i = 3 resulting array = {10 13 16 19 22 25}

  • Write a program called SquareIt in C that you execute with a numeric parameter, and that...

    Write a program called SquareIt in C that you execute with a numeric parameter, and that will print out the square of the number. The squaring should be done by a function within your code.

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