Inlogic Technologies
Idfy Interview Questions and Answers
Q1. What is the SQL query to retrieve the maximum salary from a database?
SQL query to retrieve the maximum salary from a database
Use the SELECT statement with the MAX function to retrieve the maximum salary
Specify the column name for the salary field in the table
Example: SELECT MAX(salary) FROM employees
Q2. What are the key concepts of Object-Oriented Programming (OOP)?
Key concepts of OOP include encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation: Bundling data and methods that operate on the data into a single unit (class). Example: Class with private fields and public methods.
Inheritance: Creating new classes based on existing classes, inheriting their attributes and behaviors. Example: Subclass extending a superclass.
Polymorphism: Objects of different classes can be treated as objects of a common superclass. Example:...read more
Q3. What are the available access modifiers in programming?
Access modifiers control the visibility and accessibility of classes, methods, and variables in programming.
Public - accessible from anywhere
Private - accessible only within the same class
Protected - accessible within the same class and its subclasses
Internal - accessible within the same assembly
Protected Internal - accessible within the same assembly or subclasses
Q4. What is your understanding of normalization in SQL?
Normalization in SQL is the process of organizing data in a database to reduce redundancy and improve data integrity.
Normalization is a technique used to eliminate redundant data and ensure data integrity.
It involves breaking down a table into smaller tables and defining relationships between them.
There are different normal forms such as 1NF, 2NF, 3NF, and BCNF.
For example, in a database of students and courses, instead of storing student details in the course table, a separa...read more
Q5. What is the difference between procedures and functions?
Procedures do not return a value, while functions return a value.
Procedures are used to perform an action, while functions are used to calculate and return a value.
Functions have a return type specified, while procedures do not.
Example: Procedure to display a message on the screen vs Function to calculate the sum of two numbers.
Q6. Difference between substr() and charindex()?
substr() extracts a substring from a string based on start and length, while charindex() finds the position of a character or substring within a string.
substr() is used in SQL Server to extract a portion of a string based on the starting position and length.
charindex() is used in SQL Server to find the position of a specific character or substring within a string.
Example: SELECT SUBSTRING('Hello World', 1, 5) will return 'Hello'.
Example: SELECT CHARINDEX('o', 'Hello World') w...read more
Interview Process at Idfy
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month