Filter interviews by
I applied via Naukri.com and was interviewed in Oct 2024. There were 2 interview rounds.
Meta programming is writing code that can modify or generate other code during runtime.
Meta programming allows for dynamic code generation and modification at runtime.
Common examples include defining methods or classes dynamically, modifying existing classes or objects, and creating DSLs.
Metaprogramming is often used in frameworks like Ruby on Rails to provide powerful abstractions and flexibility.
include is used to add instance methods to a class, while extend is used to add class methods to a class.
include is used to mix in module methods as instance methods in a class.
extend is used to mix in module methods as class methods in a class.
Example: include ModuleName adds ModuleName's instance methods to the class, while extend ModuleName adds ModuleName's class methods to the class.
Monkey patching is the practice of modifying or adding methods to existing classes or modules at runtime.
Monkey patching can be used to add functionality to third-party libraries without modifying their source code.
It can lead to unexpected behavior and conflicts if not done carefully.
Example: Adding a custom method to the String class in Ruby.
Optimizing the database involves indexing, query optimization, denormalization, and caching.
Use indexing on frequently queried columns to improve search performance.
Optimize queries by avoiding unnecessary joins and using efficient SQL queries.
Consider denormalizing data to reduce the number of joins needed for queries.
Implement caching mechanisms to store frequently accessed data in memory for faster retrieval.
Concerns in Ruby on Rails are used to group common functionality that can be shared across multiple models.
Concerns help in keeping the code DRY (Don't Repeat Yourself) by extracting reusable code into separate modules.
They are used to encapsulate shared methods, scopes, validations, callbacks, etc.
Concerns are included in models using mixins, which allow the shared functionality to be easily added to multiple classes.
...
Top trending discussions
posted on 14 May 2022
I applied via Naukri.com and was interviewed before May 2021. There was 1 interview round.
I applied via Walk-in and was interviewed before Apr 2020. There were 5 interview rounds.
I was interviewed before Sep 2020.
Round duration - 140 minutes
Round difficulty - Medium
Test timing was at 2:00 pm , it was conducted in a college and the environment was good for the test. Camera was a primary part of test, so no suspicious activity.
Given two numbers in the form of two arrays where each element of the array represents a digit, calculate the sum of these two numbers and return this sum as an ar...
Given two numbers represented as arrays, calculate their sum and return the result as an array.
Iterate through the arrays from right to left, adding digits and carrying over if necessary
Handle cases where one array is longer than the other by considering the remaining digits
Ensure the final sum array does not have any leading zeros
Round duration - 20 minutes
Round difficulty - Easy
The round was conducted at around 12 p.m. I was called at the college location and then it was conducted. The interviewer was quite polite and frank.
Round duration - 8 minutes
Round difficulty - Easy
This round was conducted right after finishing and clearing the technical round at the same place and on the same day.
Tip 1 : Practice atleast 2-3 Coding problems daily so your logic building becomes stronger.
Tip 2 : Exercise problems based on OOPS concepts and others too.
Tip 3 : If you can have your own project built, then it's the major point and will act as a plus point.
Tip 1 : Your resume should be in standard form, short and simple will be more effective.
Tip 2 : Whatever you have learned, you need to mention it in your resume as that will be your primary source of selection and having project on your resume is important.
I applied via Recruitment Consultant and was interviewed before Sep 2020. There were 3 interview rounds.
I applied via Naukri.com and was interviewed in Jul 2020. There were 4 interview rounds.
I applied via Job Portal and was interviewed before Apr 2021. There was 1 interview round.
Solid principles are a set of design principles for writing maintainable and scalable code in C#.
Single Responsibility Principle (SRP) - a class should have only one reason to change
Open/Closed Principle (OCP) - a class should be open for extension but closed for modification
Liskov Substitution Principle (LSP) - derived classes should be substitutable for their base classes
Interface Segregation Principle (ISP) - client...
I applied via Campus Placement and was interviewed before May 2020. There were 4 interview rounds.
I applied via Naukri.com and was interviewed before Apr 2020. There were 5 interview rounds.
I applied via Campus Placement and was interviewed before Jan 2020. There were 4 interview rounds.
based on 1 interview
Interview experience
3-6 Yrs
Not Disclosed
4-8 Yrs
Not Disclosed
TCS
Accenture
Wipro
Cognizant