0% found this document useful (0 votes)
43 views

Ruby

Ruby on rails is a server side application. The superclass of the data type Fixnum is Integer. Ruby was developed in the year 1993. Ruby is an Interpreted language. Local variables are identified using_ or lowerCase letters. Instance variables are identified using @. Modules is a way of grouping methods and classes.

Uploaded by

Ayush Garg
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views

Ruby

Ruby on rails is a server side application. The superclass of the data type Fixnum is Integer. Ruby was developed in the year 1993. Ruby is an Interpreted language. Local variables are identified using_ or lowerCase letters. Instance variables are identified using @. Modules is a way of grouping methods and classes.

Uploaded by

Ayush Garg
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 2

Ruby on rails is a ____ side application.

server

The superclass of the data type Fixnum isInteger

Ruby was developed in the year 1993

Ruby is an Interpreted language.T

Here what is the value of z?51

The superclass of the data type Integer is Numeric T

“Ben” and ‘Ben’ are different strings in Ruby. F

Ruby is a Strongly typed language

In ruby Symbols are identified using :

Class variables are identified using @@

Difference between puts "String" and print "String" Puts adds a new line after "String" whereas Print
does not

How does Ruby compute 2**5 32

Which of the following representations is correct for multi-line comments both

Write the method which prompts for the input from the user gets.chomp

Local variables are identified using_ or lowerCase letters

Global variables are identified using $

Identify the boolean operators in Ruby both

Instance variables are identified using @

Identify the error in the code else if usage is incorrect. It should be elsif

ClassName.new will create a new _____ of the class. instance

____ is a way of grouping methods and classes Modules

____ statement helps in restarting the loop.Redo


Identify valid loops in Ruby Both

Method outside the class is marked default as Public

Identify the incorrect loop Between

Is "Put" a valid command in ruby No. It should be puts.

Convert a string 'Name' to all caps using Name.upcase

You might also like