Predict The Output III

How many did you get right?

  • Zero

    Votes: 6 37.5%
  • 1

    Votes: 2 12.5%
  • 2

    Votes: 6 37.5%
  • 3

    Votes: 2 12.5%

  • Total voters
    16

Colin Legg

MrExcel MVP
Joined
Feb 28, 2008
Messages
3,507
Office Version
  1. 365
Platform
  1. Windows
Following on from Oorang's thread 'Predict The Output', I thought this might provide some entertainment for those who haven't tried it before.

The same rules, predict the outputs of the procedure and then run it to see how many you get right!

Code:
Sub Predict_The_Output_II()
 
    Debug.Print 2 Or 4
 
    Debug.Print 2 And 4
 
    Debug.Print Not 2
 
End Sub
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Re: Predict The Output II

If it hadn't been you posting it, I suspect I wouldn't have thought hard enough about the last one...:)
 
Re: Predict The Output II

That's just embarrassing! :) (If you'd kept quiet no-one would have known which was which)
 
Re: Predict The Output II

The original 'Predict The Output' thread had a public poll so I copied it for this one. If a private poll would be better then please would you do the honours?


Unless everyone gets 3/3, I'll post an explanation of the results later once everyone who wants to has had a go! :)


EDIT: I just noticed that this thread should really have been called 'Predict The Output III'
 
Re: Predict The Output II

Hmmm... I was expecting the output to be boolean... that surprised me! Will be looking forward to seeing an explanation of this one!
 
Re: Predict The Output II

We'll all be a bit wiser when Colin explains... ;)
 
Re: Predict The Output II

lol Rory... don't give the game away!
 
Re: Predict The Output II

I know - I crack me up. :biggrin:
(I was going to add something about two's comp, three's a crowd..)
 

Forum statistics

Threads
1,222,646
Messages
6,167,311
Members
452,109
Latest member
nathanle89

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top