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 Campus Placement and was interviewed before Jul 2021. There were 4 interview rounds.
Aptitude test on CS subjects like C programming, DBMS, CN, and OS.
There were 2 input-output based questions of easy to moderate level
Every candidate was given an individual topic and was asked to speak on it
I applied via Company Website and was interviewed before Dec 2020. There were 4 interview rounds.
I applied via Referral and was interviewed before Jan 2021. There was 1 interview round.
I applied via Campus Placement and was interviewed before Feb 2021. There were 3 interview rounds.
Aptitude round consists Logical reasoning, General Aptitude, Grammar related questions etc. All are moderate level questions.
OOPs is a programming paradigm that uses objects to represent real-world entities. Java is an OOPs language.
OOPs stands for Object-Oriented Programming System
Java is a class-based OOPs language
Encapsulation, Inheritance, Polymorphism, and Abstraction are the four pillars of OOPs
Objects have state and behavior
Java supports interfaces, which allow for multiple inheritance
Example: A car can be represented as an object wit...
Java solves machine dependency by using bytecode and virtual machine.
Java code is compiled into bytecode which is platform-independent
The bytecode is executed by the Java Virtual Machine (JVM) which is platform-specific
JVM translates bytecode into machine code for the specific platform
This allows Java code to run on any platform with a JVM installed
Example: A Java program compiled on Windows can run on Linux or Mac as
I applied via Company Website and was interviewed before Jul 2021. There were 3 interview rounds.
Aptitude, reasoning, English, cloud sections
2 questions in which , one has to complete within an 50 minutes
I applied via Campus Placement and was interviewed before May 2021. There were 2 interview rounds.
Numerical ability and logical reasoning followed by some coding mcqs
Printing 1 to 100 without for loop
Use recursion to print numbers from 1 to 99
Print 100 outside the recursion
Use a base case to stop recursion at 100
I applied via Campus Placement and was interviewed before Jun 2021. There were 2 interview rounds.
Simple aptitude test
I applied via Company Website and was interviewed before Jul 2021. There were 2 interview rounds.
Attended the codevita competition in final year of college.
I applied via Naukri.com and was interviewed before Nov 2020. There were 5 interview rounds.
based on 1 interview
Interview experience
3-6 Yrs
Not Disclosed
4-8 Yrs
Not Disclosed
TCS
Accenture
Wipro
Cognizant