Can’t find an answer?

Can’t find an answer?

Ask us to get the answer

  • This forum is empty.

What does %Q{ Learn ruby language } represents?

(a) ” Learn Ruby language ”

(b) “%{ Learn Ruby language }”

(c) ” Learn Ruby language ”

(d) None of the mentioned

This question was posed to me in an interview for job.

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

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

What is the role of ! at the end of the capitalize method?

(a) It is the syntax for using capitalize method

(b) It modifies the value stored in the variable

(c) It indicates the termination of string

(d) None of the mentioned

I got this question by my school principal while I was bunking the class.

I need to ask this question from Formatting String Methods topic in division Ruby Basics of Ruby

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

What is the use of .capitalize method?

(a) It capitalizes the entire string

(b) It capitalize on the first letter of the string

(c) It capitalize the strings which are in small case

(d) All of the mentioned

I got this question by my college director while I was bunking the class.

I’d like to ask this question from Formatting String Methods in chapter Ruby Basics of Ruby

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

Methods should not be written inside double quotes.

(a) True

(b) False

I had been asked this question during an online exam.

Enquiry is from String Methods topic in portion Ruby Basics of Ruby

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

The .upcase and .capitalize method are used for capitalizing the whole string.

(a) True

(b) False

I had been asked this question in an interview for job.

My doubt is from Formatting String Methods topic in chapter Ruby Basics of Ruby

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

The downcase method changes the whole string to smallcase letters.

(a) True

(b) False

I had been asked this question in examination.

Query is from String Methods topic in chapter Ruby Basics of Ruby

  • RUBY
  • November 12, 2023 at 5:06 am

The .length method is used to check number of characters.

(a) True

(b) False

The question was asked during an interview.

The above asked question is from String Methods in section Ruby Basics of Ruby

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

What does the .upcase method do?

(a) Convert the string to uppercase

(b) Convert only lowercase string to uppercase and vice-versa

(c) Convert the string to lowercase

(d) None o the mentioned

I got this question in unit test.

The above asked question is from String Methods in section Ruby Basics of Ruby

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

Which of the following is the valid string method?

(a) The .length method

(b) The .upcase method

(c) The .downcase method

(d) The .irreverse method

I got this question by my school teacher while I was bunking the class.

This key question is from String Methods topic in chapter Ruby Basics of Ruby

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

first_name,Last_name=gets.chomp,gets.chomp is the correct way to get the input from the user.

(a) True

(b) False

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

This question is from Library Functions topic in portion Ruby Basics of Ruby

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

Viewing 15 topics - 16 through 30 (of 73 total)

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