Can’t find an answer?

Can’t find an answer?

Ask us to get the answer

  • This forum is empty.

Space between 2+5 or 2 + 5 is valid but =begin and = begin is not valid.

(a) True

(b) False

I got this question in an international level competition.

My question is taken from Comments in Ruby in chapter Ruby Basics of Ruby

  • RUBY
  • September 7, 2023 at 5:06 am

Why do we use =begin and =end?

(a) To mark the start and end of multiline comment

(b) To comment multiple lines

(c) To avoid the use of # again and again

(d) All of the mentioned

I have been asked this question during an online exam.

Origin of the question is Comments in Ruby in portion Ruby Basics of Ruby

  • RUBY
  • September 30, 2023 at 5:06 am

This the right way to comment a single line.

(a) “Ruby”.length # I’m a single line comment!

(b) True

(c) False

This question was addressed to me in final exam.

My question comes from Comments in Ruby in portion Ruby Basics of Ruby

  • RUBY
  • August 24, 2023 at 5:06 am

Why do we use comments?

(a) For later use to understand the working of the program

(b) It is an efficient way of programming

(c) It makes easy for the third person to understand

(d) All of the mentioned

This question was posed to me in my homework.

The doubt is from Comments in Ruby topic in section Ruby Basics of Ruby

  • RUBY
  • September 13, 2023 at 5:06 am

How to comment a single line?

(a) Using #

(b) Using begin and end

(c) Using //

(d) None of the mentioned

I got this question during an internship interview.

The doubt is from Comments in Ruby in division Ruby Basics of Ruby

  • RUBY
  • August 29, 2023 at 5:06 am

Which of the following type of comments are valid in ruby?

(a) Single line comments

(b) Multi line comments

(c) Double line comments

(d) All of the mentioned

The question was posed to me in class test.

The origin of the question is Comments in Ruby topic in portion Ruby Basics of Ruby

  • RUBY
  • October 27, 2023 at 5:06 am

How to comment multiple lines in ruby?

(a) Using multiline comments

(b) Using single line comments

(c) No option to comment

(d) All of the mentioned

This question was posed to me during an interview for a job.

The question is from Comments in Ruby in division Ruby Basics of Ruby

  • RUBY
  • October 10, 2023 at 5:06 am

What does %x!ls! represents?

(a) Same as back tick command output `ls`

(b) Same as ‘x’

(c) Same as “xls”

(d) None of the mentioned

I had been asked this question by my school principal while I was bunking the class.

Query is from Formatting String Methods topic in portion Ruby Basics of Ruby

  • RUBY
  • October 22, 2023 at 5:06 am

What does %{Learn ruby language} represents?

(a) “Learn Ruby language”

(b) “%{Learn Ruby language}”

(c) ” Learn Ruby language ”

(d) None of the mentioned

I had been asked this question in an online quiz.

I want to ask this question from Formatting String Methods topic in chapter Ruby Basics of Ruby

  • RUBY
  • October 17, 2023 at 5:06 am

What do we mean by expression substitution?

(a) Embedding the value of Ruby expression into a string using #{}

(b) Substituting string functions

(c) Storing string value

(d) None of the mentioned

This question was addressed to me by my college director while I was bunking the class.

The doubt is from Formatting String Methods in section Ruby Basics of Ruby

  • RUBY
  • September 6, 2023 at 5:06 am

Viewing 15 topics - 1 through 15 (of 73 total)

1 2 3 4 5
  • You must be logged in to create new topics.