Ingeniero De Software Backend Interview Questions

9,097 ingeniero de software backend interview questions shared by candidates

It's a question from Ruby on Rails. There is a table named countries(id, name, code) and it contains records like [{1, India, In}, {2, China, Cn}]. Now if someone wants to do Country.India, it should return the corresponding code of that particular record. In the above mentioned case it will be 'In'. How will you implement it?
avatar

Backend Developer

Interviewed at Synup

4.3
Aug 20, 2019

It's a question from Ruby on Rails. There is a table named countries(id, name, code) and it contains records like [{1, India, In}, {2, China, Cn}]. Now if someone wants to do Country.India, it should return the corresponding code of that particular record. In the above mentioned case it will be 'In'. How will you implement it?

Viewing 191 - 200 interview questions

Glassdoor has 9,097 interview questions and reports from Ingeniero de software backend interviews. Prepare for your interview. Get hired. Love your job.