Question

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

0 0
Add a comment Improve this question Transcribed image text
Answer #1
Number of times will the following loop execute is 4

A. 4

Add a comment
Know the answer?
Add Answer to:
how many times will the following loop execute? For intCount = To 1 Step -2 'Body...
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
  • 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;...

  • How many times is the loop body of the while statement executed?

     How many times is the loop body of the while statement executed? a. once b. forever C. 49 times d. 50 times e. until a number 50 or larger is entered The value stored in variable s at the end of the execution of the loop could best be described as: a. the average of the numbers scanned b. the sum of the numbers scanned c. the largest of the numbers scanned d. how many numbers were scanned e. the sentinel value The value stored in variable z at the end of the...

  • 5.2 How many times this for loop will execute? for (i = 0; i <= 100;...

    5.2 How many times this for loop will execute? for (i = 0; i <= 100; i++) ANN cout<<i+8<<endl; WA Am } Answer:

  • Question 26 options: How many times will the while loop execute? Type the answer as an...

    Question 26 options: How many times will the while loop execute? Type the answer as an integer, "infinity" or "unknown". int x = 3; while (x < 370) { System.out.print(x + " "); x *= x; }

  • 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

  • computers. 1. How many times will this loop repeat? include <stdlib.h> #include <stdio.h> void main(void) int...

    computers. 1. How many times will this loop repeat? include <stdlib.h> #include <stdio.h> void main(void) int 10 for(= 0; i < 101) printf("d", 1); A. 10 times B. 1 time C. It will run forever D. 0 times 2. What will be the output of this program? #include <stdlib.h> #include <stdio.h> int main() int a = 100, b = 200, C = 300; if(!a >= 500) b = 300; C = 400; printf("%d, 8d, &d", a, b, c); return 0;...

  • C++ Visual Studio 1. How many iterations are in the following "while" loop? int i =...

    C++ Visual Studio 1. How many iterations are in the following "while" loop? int i = 0; while(i < 20) { ++i; } 2. How many iterations are in the following "for" loop? for(int i = 5; i < 17; i = i + 2) { // Work } How many times will '+' be printed? int i = 0; while(true) { if(i == 5) { break; } cout << "+"; ++i; } 3. How many times will '+' be...

  • 6. First try to predict how many times will the following for loops execute? What is...

    6. First try to predict how many times will the following for loops execute? What is the output for (i = 17; i>1; i = i/2) for (i = 2; j <i; j = 1 + 3) cout <<j«<i+j << endl; Then create a main program to include this code, compile and run to check your prediction -7. Write a program to show the first two passes in the execution of the Bubble sort on the following ordered set (show...

  • Your aim is to lose 1 kg of body fat. a) How many times you need...

    Your aim is to lose 1 kg of body fat. a) How many times you need to run the stairs up and down to achieve your aim? b) What is average power output when running up the stairs? c) Is this a good exercise to lose weight? 1 kilocalorie [kcal] = 4186 Joules [J]. Human body metabolizes 1g of fat by releasing 9 kcal. There are 100 steps up the staircase, each step is 10 cm high. Its takes 50...

  • need asap Homework (5) 1. There are two basic forms of loop constructs: - and 2....

    need asap Homework (5) 1. There are two basic forms of loop constructs: - and 2. Which of the following is an alternate and faster way of performing the same function as many MATLAB for loops? a) a. Exhaustive enumeration b) b. Vectorization c) c. Variable declaration d) d. Amortization 3. A while loop is a block of statements that are repeated indefinitely as long as some condition is satisfied. a) True b) False 4. The for loop is a...

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