examveda.com
Login

Login with Google

Menu
  • H
    Home
  • Competitive Exams MCQs
    • A
      Aptitude
    • E
      English
    • V
      Verbal Reasoning
    • N
      Non Verbal Reasoning
    • G
      GK
    • C
      Computer Fundamentals
    • D
      DI
    • S
      StateWise GK
    • H
      History GK
    • G
      Geography GK
    • P
      Physics GK
    • C
      Chemistry GK
    • B
      Biology GK
    • B
      Banking Awareness
  • C
    Current Affairs
  • Computer MCQs
    • C
      Computer Fundamentals
    • N
      Networking
    • S
      SQL
    • M
      MySQL
    • D
      Database
    • D
      Data Science
    • M
      Machine Learning
    • C
      Cloud Computing
    • A
      Artificial Intelligence(AI)
  • Engineering & GATE MCQs
    • C
      Computer Science
    • E
      ECE
    • M
      Mechanical Engineering
    • C
      Civil Engineering
    • E
      Electrical Engineering
    • C
      Chemical Engineering
    • A
      Automobile Engineering
    • B
      Biotechnology Engineering
    • M
      Mining Engineering
    • G
      Geological Engineering
    • M
      Metallurgical Engineering
    • E
      Engineering Maths
    • E
      Engineering Physics
    • E
      Engineering Chemistry
  • Programming MCQs
    • V
      Visual Basic
    • C
      C Program
    • C
      C++ Program
    • C
      C# Program
    • J
      Java Program
    • R
      Ruby Programming
    • D
      Data Science
    • P
      Python Program
    • C
      Cloud Computing
    • M
      Machine Learning
    • I
      IoT(Internet on Things)
    • H
      HTML
    • C
      CSS
    • J
      Javascript
    • P
      PHP Program
    • H
      Hadoop
    • R
      R Programming
  • Graduation & PG MCQs
    • C
      Commerce
    • M
      Management
    • L
      Law
    • M
      Mass Communication
    • P
      Political Science
    • S
      Sociology
    • P
      Psychology
    • A
      Agriculture
    • P
      Pharmacy
    • H
      Home Sciecne
    • P
      Philosophy
  • I
    Interview
  • B
    Blog
  • A
    Ask Question
  • Home
  • Competitive Exams
    • Aptitude
    • English
    • Verbal Reasoning
    • Non Verbal Reasoning
    • GK
    • Computer Fundamentals
    • DI
    • StateWise GK
    • History GK
    • Geography GK
    • Physics GK
    • Chemistry GK
    • Biology GK
    • Banking Awareness
  • Current Affairs
  • Computer
    • Computer Fundamentals
    • Networking
    • SQL
    • MySQL
    • Database
    • Data Science
    • Machine Learning
    • Cloud Computing
    • Artificial Intelligence(AI)
  • Engineering & GATE
    • Computer Science
    • ECE
    • Mechanical Engineering
    • Civil Engineering
    • Electrical Engineering
    • Chemical Engineering
    • Automobile Engineering
    • Biotechnology Engineering
    • Mining Engineering
    • Geological Engineering
    • Metallurgical Engineering
    • Engineering Maths
    • Engineering Physics
    • Engineering Chemistry
  • Programming
    • Visual Basic
    • C Program
    • C++ Program
    • C# Program
    • Java Program
    • Ruby Programming
    • Data Science
    • Python Program
    • Cloud Computing
    • Machine Learning
    • IoT(Internet on Things)
    • HTML
    • CSS
    • Javascript
    • PHP Program
    • Hadoop
    • R Programming
  • Graduation & PG
    • Commerce
    • Management
    • Law
    • Mass Communication
    • Political Science
    • Sociology
    • Psychology
    • Agriculture
    • Pharmacy
    • Home Sciecne
    • Philosophy
  • Interview
  • Blog
  • Ask Question

What is the output of the expression 5 to i +...

Home / Ruby Programming / Data Types And Variables In Ruby / Question
Examveda
Examveda

What is the output of the expression: "5".to_i + 2 in Ruby?

A. 7

B. "52"

C. +7

D. Error

Answer: Option A


This Question Belongs to Ruby Programming >> Data Types And Variables In Ruby

Join The Discussion

Related Questions on Data Types and Variables in Ruby

Which of the following is NOT a valid data type in Ruby?

A. Integer

B. Float

C. Boolean

D. Double

View Answer
  View Answer

What is the data type of the value 3.14 in Ruby?

A. Integer

B. Float

C. String

D. Boolean

View Answer
  View Answer

What is the default value of a variable in Ruby if not initialized?

B. nil

C. "undefined"

D. FALSE

View Answer
  View Answer

Which symbol is used to declare a variable in Ruby?

A. $

B. &

C. @

D. #

View Answer
  View Answer
More Related Questions on Data Types and Variables in Ruby

Read More: MCQ Type Questions and Answers

  •   Arithmetic Ability
  •   Competitive Reasoning
  •   Competitive English
  •   Data Interpretation
  •   General Knowledge
  •   State GK
  •   History
  •   Geography
  •   Current Affairs
  •   Banking Awareness
  •   Computer Fundamentals
  •   Networking
  •   C Program
  •   Java Program
  •   SQL
  •   Database
  •   HTML
  •   CSS
  •   Javascript
  •   PHP
  •   Computer Science
  •   Electronics and Communications Engineering
  •   Electrical Engineering
  •   Mechanical Engineering
  •   Civil Engineering
  •   Chemical Engineering
  •   Automobile Engineering
  •   Biotechnology Engineering
  •   Mining Engineering
  •   Commerce
  •   Management
  •   Law
  •   Philosophy
  •   Agriculture
  •   Sociology
  •   Political Science
  •   Pharmacy
Copyright © 2026   Examveda.com
  • About Us |
  • Terms & Condition |
  • Privacy Policy |
  • Contact Us