ION Group
THE GUJARAT RESEARCH & MEDICAL INSTITUTE Interview Questions and Answers
Q1. what data structure you would use to store phone number along side with names
Use a hash table to store phone numbers alongside names for quick lookups.
Use a hash table where the keys are the phone numbers and the values are the corresponding names.
This allows for constant time lookups of names based on phone numbers.
Example: {"555-1234": "John Doe", "555-5678": "Jane Smith"}
Q2. What is OOPs? And its properties
OOPs stands for Object-Oriented Programming. It is a programming paradigm based on the concept of objects.
Encapsulation: Bundling data and methods that operate on the data into a single unit.
Inheritance: Ability of a class to inherit properties and behavior from another class.
Polymorphism: Ability to present the same interface for different data types.
Abstraction: Hiding the complex implementation details and showing only the necessary features.
Q3. what is a trie
A trie is a tree data structure used for storing a dynamic set of strings.
Trie stands for retrieval tree or prefix tree
Each node in a trie represents a single character
Tries are commonly used in autocomplete features and spell checkers
Q4. SNAKE AND LADDER PROBLEM
Snake and ladder is a classic board game where players move their tokens based on the outcome of a dice roll.
Players take turns rolling a dice and moving their token along the board.
If a player lands on a ladder, they move up to a higher-numbered square.
If a player lands on a snake, they move down to a lower-numbered square.
The first player to reach the final square wins the game.
Q5. PUZZLE PROBLEM OF GFG
The puzzle problem of GFG involves solving a challenging puzzle on GeeksforGeeks.
Read the problem statement carefully and understand the requirements.
Break down the problem into smaller subproblems if possible.
Try different approaches and algorithms to solve the puzzle.
Test your solution with different test cases to ensure correctness.
Optimize your solution if possible to improve efficiency.
Q6. 4 pillars of OOPS
Encapsulation, Inheritance, Polymorphism, Abstraction are the 4 pillars of OOPS
Encapsulation: Bundling data and methods that operate on the data into a single unit. Example: Class in Java
Inheritance: Ability of a class to inherit properties and behavior from another class. Example: Parent class and child class relationship
Polymorphism: Ability to present the same interface for different data types. Example: Method overloading and method overriding
Abstraction: Hiding the compl...read more
Top SDE Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month