Choose a topic to test your knowledge and improve your Ruby on Rails skills
Ruby is ?
Ruby is designed by?
Ruby was created in?
Which of the following statement is not a feature of ruby?
When Whitespace characters such as spaces and tabs can not ignored in Ruby code?
Reserved word can not be used as?
Which character is used to give comment in ruby?
Global variables in ruby begin with?
Default value of global variable is?
Local variables in ruby begin with?
Which of the following Ruby Pseudo-Variables is used for The receiver object of the current method?
Which of the following Ruby Pseudo Variables is used to return current line number in the source file?
Which notation is used for Octal notation?
Which of the following datatypes are valid in Ruby?
What is the sequence of ruby strings?
single-quoted strings don`t allow ?
Objects of which class does the integer from the range -2^60 to 2^(60-1) belong to?
Instance variables in ruby begin with?
Class variables in ruby begin with?
Default value of class variables is?
Constants in ruby begin with ?
Which of the following Ruby Pseudo Variables is used to return the name of the current source file?
Why notation is used in Ruby?
Why can not we use quotation marks ("or") with boolean?
What is the output of the given code? my_string=Ruby puts(my_string)
Which type of number(0b1011 ) is ?
Which of the following is not type of operator in ruby?
eql? Operator is used for?
Which of the following is not a type of Bitwise Operators?
In range operator ... is used for ?
Among the following which operator has highest Precedence?
What will be the output of the given code? boolean_var = 15 < 16 && 15 < 15 puts boolean_var
What will be the output of the given code? num=4>>2 puts num
What will be the output of the given code? boolean_var = 3**2 != 2**3 || true puts boolean_var
What will be the output of the given code? boolean_var = !(100 / 10 === 10) puts boolean_var
What will the following expression evaluate to? true || false
Which operator is used to find exponent in ruby?
equal? Operator is used for?
Guess the operator : If Condition is true ? Then value X : Otherwise value Y?
Which operator is used to check variable and method are defined or not?
Among the following which operator has lowest Precedence?
What will be the output of the given code? num=4<<2 puts num
What will be the output of the given code? num=(10<11)||(11===11)? (11===11.0): 0 puts num
What will be the output of the given code? boolean_var = false || -20 > -18 puts boolean_var
What will be the output of the given code? boolean_var = !true || (true || 36 != 6**2) puts boolean_var
What will the following expression evaluate to? !true && !false
Which of the following is not a type of loop in ruby?
What is true about while loop?
Which statement is used to Jumps to the next iteration of the most internal loop?
Which statement is used to restarts the invocation of the iterator call?
What does end represent?
What will be the output of the given code? for num in 1...5 puts num end
What will be the output of the given code? for num in 1...4 puts num*num end
What will be the output of the given code? for i in 1..5 && j in 5..10 puts i+j end
What will be the output of the given code? counter = true while counter !=false puts counter end
What will be the output of the given code? a=1 b=1 while a&&b puts a+b end
What is true about Until loop?
What is the use of break statement?
Which statement is used to Restarts this iteration of the most internal loop, without checking loop condition?
What does the 1..5 indicate?
Which of the following is Exit Controlled loop?
What will be the output of the given code? for i in 1...3 for j in 1..3 puts j end end
What will be the output of the given code? i=1 for i in 6..10 puts i**2 end
What will be the output of the given code? counter = 1 while counter < 5 puts counter counter = counter + 1 end
What will be the output of the given code? while a&&b puts a end
What will be the output of the given code? i = 4 while i > 0 do print i i -= 1 end