Last visit was: 24 Apr 2026, 16:14 It is currently 24 Apr 2026, 16:14
Close
GMAT Club Daily Prep
Thank you for using the timer - this advanced tool can estimate your performance and suggest more practice questions. We have subscribed you to Daily Prep Questions via email.

Customized
for You

we will pick new questions that match your level based on your Timer History

Track
Your Progress

every week, we’ll send you an estimated GMAT score based on your performance

Practice
Pays

we will pick new questions that match your level based on your Timer History
Not interested in getting valuable practice questions and articles delivered to your email? No problem, unsubscribe here.
Close
Request Expert Reply
Confirm Cancel
User avatar
Swagatalaxmi
Joined: 05 Sep 2023
Last visit: 17 Dec 2025
Posts: 133
Own Kudos:
1,075
 [66]
Given Kudos: 332
Location: India
Concentration: Healthcare, General Management
GMAT Focus 1: 695 Q85 V88 DI80
GPA: 3.19
WE:Medicine and Health (Healthcare/Pharmaceuticals)
Products:
4
Kudos
Add Kudos
61
Bookmarks
Bookmark this Post
Most Helpful Reply
User avatar
gmatophobia
User avatar
Quant Chat Moderator
Joined: 22 Dec 2016
Last visit: 19 Apr 2026
Posts: 3,173
Own Kudos:
11,462
 [11]
Given Kudos: 1,862
Location: India
Concentration: Strategy, Leadership
Posts: 3,173
Kudos: 11,462
 [11]
5
Kudos
Add Kudos
6
Bookmarks
Bookmark this Post
General Discussion
User avatar
GMATinsight
User avatar
Major Poster
Joined: 08 Jul 2010
Last visit: 24 Apr 2026
Posts: 6,977
Own Kudos:
Given Kudos: 128
Status:GMAT/GRE Tutor l Admission Consultant l On-Demand Course creator
Location: India
GMAT: QUANT+DI EXPERT
Schools: IIM (A) ISB '24
GMAT 1: 750 Q51 V41
WE:Education (Education)
Products:
Expert
Expert reply
Schools: IIM (A) ISB '24
GMAT 1: 750 Q51 V41
Posts: 6,977
Kudos: 16,914
Kudos
Add Kudos
Bookmarks
Bookmark this Post
User avatar
KarishmaB
Joined: 16 Oct 2010
Last visit: 23 Apr 2026
Posts: 16,442
Own Kudos:
Given Kudos: 485
Location: Pune, India
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 16,442
Kudos: 79,404
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Swagatalaxmi


­Step 1: Assign a value for x and a value for y
Step 2: If x < y, then go to Step 5; otherwise, go to step 3
Step 3: Divide by 2 and set the result to be the new value of x
Step 4: Go to step 2
Step 5: Write the value of x
Step 6: End
If the algorithm above is applied, assigning 100 as the value of x and 3 as the value of y, how many times is step 2 performed before step 5 is reached?

A. Three
B. Four
C. Five
D. Six
E. Seven

 
­It is an iterative algorithm in which the value of x is written after it is made smaller than y. The important thing to evaluate is how many times we encounter step 2, not just how many times division by 2 is done. 

We start with x = 100 in step 1 and go to step 2 for the first time with x = 100. Since x < y, we will go to step 3 and make x = 50. 
Next we will got o step 2 again with 50. 

Now count on your fingers: 100, 50, 25, 12.5, 6.75, 3.something (still greater than y so will be divided again), 1.5something (Now it is less than y so will be printed)

Hence 7 times we will arrive at step 2.

Answer (E)
 
User avatar
daynesj24
Joined: 26 May 2024
Last visit: 22 Dec 2024
Posts: 15
Own Kudos:
3
 [2]
Given Kudos: 5
Posts: 15
Kudos: 3
 [2]
2
Kudos
Add Kudos
Bookmarks
Bookmark this Post
This one isn't too challenging, however, how would I know the first 100 and 3 counts as one iteration?
User avatar
HarshavardhanR
Joined: 16 Mar 2023
Last visit: 24 Apr 2026
Posts: 489
Own Kudos:
Given Kudos: 67
Status:Independent GMAT Tutor
Affiliations: Ex - Director, Subject Matter Expertise at e-GMAT
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 489
Kudos: 576
Kudos
Add Kudos
Bookmarks
Bookmark this Post
daynesj24
This one isn't too challenging, however, how would I know the first 100 and 3 counts as one iteration?
­That first 100 and 3 should count, logically.

Step 1: x = 100; y = 3.
Step 2: is x < y? No (100 is not < 3). So move to Step 3.

We are going through Step 2 for the first time right here. This would count as the first time step 2 is executed.

Overall ->

(1) x = 100; 100 not < 3; so, new x = 100/2 = 50
(2) x = 50; 50 not < 3; so, new x = 50/2 = 25
(3) x = 25; 25 not < 3; so, new x = 25/2 = 12.5
(4) x = 12.5; 12.5 not < 3; so, new x = 12.5/2 = 6.25
(5) x = 6.25; 6.25 not < 3; so, new x = 6.25/2 = 3.125
(6) x = 3.125; 3.125 not < 3; so, new x = 3.125/2 = 1.something
(7) x = 1.something; it is < 3; so, finally, move to step 5 (value of x) and end the algo.

How many times was step 2 performed (from the start of the algo) before step 5 was reached? 7.

___
Harsha
Passionate about all things GMAT | Exploring the GMAT space | My website: gmatanchor.com
User avatar
wicoci2835
Joined: 14 Aug 2024
Last visit: 07 Nov 2024
Posts: 1
Own Kudos:
2
 [2]
Location: Nepal
Posts: 1
Kudos: 2
 [2]
2
Kudos
Add Kudos
Bookmarks
Bookmark this Post
­I did it like this,
here, 100 is divided by 2 until it reaches a value less than 3, which can be represented as
[100][/2^n] <3
n has to be equal to six.
So, in the sixth iteration, 100 becomes less than 3 in step 3.
However, until it goes to step 2 again, it doesn't go to step 5, so in iteration 7, 100<3 is verified.
Answer: Seven.
User avatar
froppy
Joined: 10 Jun 2024
Last visit: 20 Apr 2025
Posts: 5
Own Kudos:
4
 [1]
Given Kudos: 163
Posts: 5
Kudos: 4
 [1]
1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Why would the starting value be a step..................
User avatar
sarthak1701
Joined: 11 Sep 2024
Last visit: 14 Apr 2026
Posts: 108
Own Kudos:
Given Kudos: 18
GMAT Focus 1: 575 Q77 V81 DI78
GMAT Focus 1: 575 Q77 V81 DI78
Posts: 108
Kudos: 65
Kudos
Add Kudos
Bookmarks
Bookmark this Post
The key to note here is that ASSESSING whether x is larger than y is the 2nd step and NOT dividing the value of x by 2.
User avatar
bumpbot
User avatar
Non-Human User
Joined: 09 Sep 2013
Last visit: 04 Jan 2021
Posts: 38,974
Own Kudos:
1,117
 [1]
Posts: 38,974
Kudos: 1,117
 [1]
Kudos
Add Kudos
1
Bookmarks
Bookmark this Post
Automated notice from GMAT Club BumpBot:

A member just gave Kudos to this thread, showing it’s still useful. I’ve bumped it to the top so more people can benefit. Feel free to add your own questions or solutions.

This post was generated automatically.
Moderators:
Math Expert
109818 posts
Tuck School Moderator
853 posts