Brain Teasers
Brain Teasers Trivia Mentalrobics Games Community
Personal Links
Submit a Teaser
Your Favorites
Your Watchlist
Browse Teasers
All

Cryptography
Group
Language
Letter-Equations
Logic
Logic-Grid
Math
Mystery
Optical-Illusions
Other
Probability
Rebus
Riddle
Science
Series
Situation
Trick
Trivia

Random
Daily Teasers
Search Teasers

Advanced Search
Add to Google Add to del.icio.us

More ways to get Braingle...

Programmatic Phrase



 

Puzzle ID:#50024
Fun:*** (2.93)
Difficulty:** (1.3)
Category:Other
Submitted By:eighsseAus******
Corrected By:eighsse

 

 

 



Find the common phrase that is represented by the following computer program code. Some amount of computer programming knowledge will help, as certain programming conventions are used. However, it may be solved without, as it is written in a very high-level (i.e., human-like) language.

Begin
yourLocation = 50
fenceLocation = 100
For Each BladeOfGrass
{
If itsLocation > 100
Then itsColor = #009900
Else itsColor = #007700
}
End





What Next?

  
  

See another brain teaser just like this one...

Or, just get a random brain teaser

If you become a registered user you can vote on this brain teaser, keep track of
which ones you have seen, and even make your own.

 



Comments

charlottes-oddAen*
Dec 17, 2013

Trying to solve teasers when your dozed up on medication doesn't work
charlottes-oddAen*
Dec 17, 2013

Trying to solve teasers when your dozed up on medication doesn't work
but another good one!
charlottes-oddAen*
Dec 17, 2013

I didn't mean to put same comment twice... My bad!!
eighsseAus*
Dec 17, 2013

It's okay, I'll attribute the double post to the medication.
Hydra1234Ait*
Mar 02, 2015

Is that Python?
eighsseAus*
Mar 02, 2015

I don't know Python, but it's probably pretty similar. I was just using generic human level language.
hoopyscooptus
Oct 08, 2015

Really enjoyed as computer programming is one of my hobbies!
Babe*
Apr 13, 2016

I have no idea at all what tis teaser is about. I am not computer savvy at all. I can do what my son has taught me and that is it. I let someone else figure out things like this.
gsangreal*
Apr 13, 2016

Nice!
HABS2933Aca*
Apr 13, 2016

am going to age myself here, but the only language I ever learned to program in is BASIC. However, I guessed that the colour codes were for green and was able to solve it with no problem.
lukasiwicz*
Apr 13, 2016

I suspect that many would-be solvers simply wigged out when they saw what looked like computer code, and didn't even try this one.
mrbill51
Apr 13, 2016

I had no idea how to solve this one; I am computer savvy but do not know the programming language; fun and challenging quiz anyway.
eighsseAus*
Apr 13, 2016

Hey thanks everybody for trying my teaser and for the nice comments. Congrats to those who solved it and sorry to those who couldn't make sense of it! I consider this mostly a logic problem, but it does require some trivial knowledge, so don't feel bad if you couldn't get it. Hopefully, after reading the answer/explanation, it makes sense; if not, that's a failure on my part.



Back to Top
   



Users in Chat : isaihtb 

Online Now: 10 users and 478 guests

Copyright © 1999-2014 | Updates | FAQ | RSS | Widgets | Links | Green | Subscribe | Contact | Privacy | Conditions | Advertise

Custom Search





Sign In A Create a free account