0

Anyone else having issues with the accuracy of the Ruby questions?

I'm only halfway through the Ruby course but I've lost count of how many quizzes have been set up wrong like methods with no return value yet the question is asking you for the output. some still I'll if I can't figure it out for the life of me I test it out on my laptop and if depending on the sniper of code they look for I either get errors or the wrong value than the answer they are looking for. I had similar issues with the old Advanced Excel course from SoloLearn.

13th Dec 2016, 8:59 PM
Brian Howe
Brian Howe - avatar
4 Antworten
0
Ruby always returns the last computed value of a method, unless a "return" is specified. Example: def example(x) x * x end example(3) #returns 9 ----------------- def example(x) x * x return x + 1 end example(3) #returns 4 (Note: I'm at 40% so I can't tell what comes later on, but this might help you.)
13th Dec 2016, 9:08 PM
Maike
0
still like I said I write their test code in and run it and I'll get an error with some code and with others I'll get a value but not the one they are looking for to the point I have to go through the hints and waste my experience points.
14th Dec 2016, 12:34 AM
Brian Howe
Brian Howe - avatar
0
the same crap happened with me with the Excel one they had before and I just about gave up with SoloLearn then I found out that they dropped it anyways but now I get the same with the Ruby course. I've completed all the other courses from SoloLearn without issue.
14th Dec 2016, 12:39 AM
Brian Howe
Brian Howe - avatar
0
and again I get question that asks for a random number between 1 and 100. the correct answer was: num = 1 + rand (100). problem is that's a random number between 1 and 101 because the random number generator generates upto 100 and then adds the 1, the correct answer should have been: num = 1 + rand (99).
19th Dec 2016, 10:40 AM
Brian Howe
Brian Howe - avatar