Which of the following is supported by Ruby?
Multiple Programming Paradigms
Dynamic Type System
Automatic Memory Management
All of the Mentioned
Browse topic-based Ruby practice sets.
96 practice sets · Page 5 of 5
Which of the following is supported by Ruby?
Multiple Programming Paradigms
Dynamic Type System
Automatic Memory Management
All of the Mentioned
Ruby is an object oriented general purpose programming language.
True
False
Ruby does not support ++ operator, it only supports += operator.
True
False
What does the **= assignment operator do?
Multiplies the value twice
It is used as exponent like 2**3=8
It is the multiplication operator.
None of the mentioned
Which of the following is a valid assignment operator?
+=
-=
*=
All of the mentioned
Array of arrays are called multidimensional arrays.
True
False
Each element in an array has an index and the starting index is index 1.
True
False
Arrays can be used to store multiple values in one single variable.
True
False
What does %x!ls! represents?
Same as back tick command output ls
Same as 'x'
Same as "xls"
None of the mentioned
What does %Q{ Learn ruby language } represents?
" Learn Ruby language "
"%{ Learn Ruby language }"
"%Q{ Learn Ruby language }"
None of the mentioned
What does %{Learn ruby language} represents?
"Learn Ruby language"
"%{Learn Ruby language}"
" Learn Ruby language "
None of the mentioned
What do we mean by expression substitution?
Embedding the value of Ruby expression into a string using #{ }
Substituting string functions
Storing string value
None of the mentioned
What is the role of ! at the end of the capitalize method?
It is the syntax for using capitalize method
It modifies the value stored in the variable
It indicates the termination of string
None of the mentioned
What is the use of .capitalize method?
It capitalizes the entire string
It capitalize on the first letter of the string
It capitalize the strings which are in small case
All of the mentioned
The .upcase and .capitalize method are used for capitalizing the whole string.
True
False
It is possible to make array of booleans.
True
False