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
I applied via Company Website and was interviewed in Dec 2020. There was 1 interview round.
I appeared for an interview before Dec 2020.
Round duration - 45 minutes
Round difficulty - Hard
All mcqs should answer with in time limit should have a lot of practice to solve in exam
You have two water jugs with capacities X
and Y
liters respectively, both initially empty. You also have an infinite water supply. The goal is to determine if it is possible to...
The Water Jug Problem involves determining if a specific amount of water can be measured using two jugs of different capacities.
Start by considering the constraints and limitations of the problem.
Think about how the operations allowed can be used to reach the target measurement.
Consider different scenarios and test cases to come up with a solution.
Implement a function that takes the capacities of the jugs and the targe...
Round duration - 60 minutes
Round difficulty - Easy
Easy and just basic questions very easy round
Given two sparse matrices MAT1
and MAT2
of integers with dimensions 'N' x 'M' and 'M' x 'P' respectively, the goal is to determine the resulting matrix produced by their multipl...
Implement a function to multiply two sparse matrices and return the resulting matrix.
Create a function that takes two sparse matrices as input and returns the resulting matrix after multiplication.
Iterate through the non-zero elements of the matrices to perform the multiplication efficiently.
Ensure to handle the sparse nature of the matrices to optimize the multiplication process.
Consider the constraints provided to en...
Tip 1 : preapre core subjects
Tip 2 : be confident and answer clearly
Tip 3 : be strong with projects
Tip 1 : good projects in ml and ai
Tip 2 : practical experience
I applied via Naukri.com and was interviewed in Dec 2020. There was 1 interview round.
Flexbox is a CSS layout module that allows for flexible and responsive web design.
Flexbox allows for easy alignment and positioning of elements within a container.
It uses a set of properties to define the layout, such as display: flex and flex-direction.
Flexbox is particularly useful for creating responsive designs that adapt to different screen sizes.
It can also be used in combination with other CSS layout modules, su...
I applied via Campus Placement and was interviewed before May 2020. There was 1 interview round.
I applied via Campus Placement and was interviewed before Aug 2020. There were 3 interview rounds.
A bit is the smallest unit of digital information. It can have a value of either 0 or 1.
A bit is a binary digit, represented as either 0 or 1.
It is the basic unit of information used in computing and digital communications.
A group of 8 bits is called a byte.
The size of a bit is dependent on the architecture of the computer system.
C is a programming language and does not have a fixed number of bits.
C is a high-level programming language that can be compiled to run on different architectures with varying bit sizes.
The number of bits in C depends on the hardware architecture it is compiled for.
For example, C code compiled for a 32-bit architecture will have 32-bit integers, while code compiled for a 64-bit architecture will have 64-bit integers.
I applied via Naukri.com and was interviewed in Nov 2020. There was 1 interview round.
I applied via Campus Placement and was interviewed in Apr 2020. There were 4 interview rounds.
based on 1 interview
Interview experience
Software Developer
3
salaries
| ₹1.2 L/yr - ₹9.5 L/yr |
TCS
Accenture
Wipro
Cognizant