Home / MCQ Bank / Computer
Computer Basic Syntax In Ruby

What is the output of the given code? print "What's your address" city,state,pin=gets.chomp,gets.chomp,gets.chomp puts "Iam from #{city} city, #{state} state, pincode: #{pin} "

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • What's your address? Chennai Tamilnadu 600048 Iam from Chennai city, Tamilnadu state, pincode: 600048

Related Computer Questions

What happens if the following C++ program is compiled? #include <iostream> #include <string> using namespace std; class A { int a; public: A(){ a = 0; } void show(){ a++; cout<<"a: "<<a<<endl; } }; class B: private A { public: void show(){ show(); } }; int main(int argc, char const *argv[]) { B b; b.show(); return 0; } The term 'polling' in a computer means a process by which a computer system Which is the worst method of choosing a pivot element? Which header file is used to manipulate the vector algebra in c++? Which of these keywords is used to make a class?