TMotions Global
IRHPL Interview Questions and Answers
Q1. Setup, Differences and Current project Code first Db vs Database First Db? and How to make changes from code side?
Code first and Database first are two approaches to create a database. Changes can be made from code side using migrations.
Code first approach involves creating the database schema using code and then generating the database from it.
Database first approach involves creating the database schema using a visual designer and then generating the code from it.
Migrations can be used to make changes to the database schema from code side.
Code first approach is more flexible and allows...read more
Q2. CTE vs Temp Table. which one is best in sql stored procedure?
CTE is better for complex queries, temp tables for large data sets.
CTE is more efficient for recursive queries and can improve readability.
Temp tables are better for large data sets and can be indexed for faster performance.
Consider the complexity and size of the data when choosing between CTE and temp tables.
Q3. Find 2nd Element from sql without using where caluse.
Finding 2nd element from SQL without using WHERE clause.
Use OFFSET and LIMIT clauses to skip the first row and select the second row.
Order the result set by the desired column.
Example: SELECT column_name FROM table_name ORDER BY column_name OFFSET 1 LIMIT 1;
Q4. Generic in C#. Use cases and Exmaple.
Generics in C# allow for type-safe programming and code reusability.
Generics allow for creating classes, interfaces, and methods that can work with any data type.
They provide compile-time type safety and eliminate the need for type casting.
Examples include List
, Dictionary , and Nullable . Generics can improve code performance by reducing boxing and unboxing operations.
Q5. Having vs Group clause differences.
HAVING clause filters groups while GROUP BY groups data based on a column.
GROUP BY is used to group data based on a column while HAVING is used to filter groups based on a condition.
HAVING clause is used with GROUP BY clause to filter groups based on a condition.
GROUP BY clause is used to group data based on a column and aggregate functions are used to perform calculations on each group.
Example: SELECT department, COUNT(*) FROM employees GROUP BY department HAVING COUNT(*) > ...read more
Q6. Different between bootstrap and tailwindcss?
Bootstrap is a CSS framework that provides pre-designed components and utilities, while TailwindCSS is a utility-first CSS framework that allows for more customization.
Bootstrap provides pre-designed components like buttons, forms, and navigation bars, while TailwindCSS focuses on utility classes for styling.
TailwindCSS allows for more customization and flexibility in styling compared to Bootstrap.
Bootstrap requires more HTML markup for styling, while TailwindCSS uses utility...read more
Q7. What is the opps?
Opps is a typo, the correct term is OOPs which stands for Object-Oriented Programming.
OOPs stands for Object-Oriented Programming
It is a programming paradigm based on the concept of 'objects', which can contain data in the form of fields (attributes or properties) and code in the form of procedures (methods)
Encapsulation, inheritance, and polymorphism are key principles of OOPs
Interview Process at IRHPL
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month