
Deloitte


20+ Deloitte Software Engineer Interview Questions and Answers
Q1. what are the differences between stored procedure and triggers in SQL?
Stored procedures are precompiled SQL statements that can be executed on demand, while triggers are automatically executed in response to specific events.
Stored procedures are explicitly called by the user, while triggers are automatically invoked by the database system.
Stored procedures can accept parameters and return values, while triggers cannot.
Stored procedures can be executed independently, while triggers are always associated with a specific table or view.
Stored proce...read more
Q2. what are access specifiers in c++
Access specifiers in C++ are keywords that determine the visibility and accessibility of class members.
There are three access specifiers in C++: public, private, and protected.
Public members are accessible from anywhere in the program.
Private members are only accessible within the class itself.
Protected members are accessible within the class and its derived classes.
Access specifiers are used to enforce encapsulation and control the access to class members.
Q3. what is a Kernel in OS
Kernel is the core component of an operating system that manages system resources and provides a bridge between hardware and software.
Kernel is responsible for managing memory, processes, and device drivers.
It provides an interface for applications to access hardware resources.
Kernel operates in privileged mode and has direct access to the hardware.
Examples of popular kernels are Linux kernel, Windows NT kernel, and macOS kernel.
Q4. what is the use of print f() and scan f() functions?
printf() and scanf() are used for input/output operations in C programming language.
printf() is used to print output on the console or terminal.
scanf() is used to take input from the user.
printf() and scanf() are part of the standard input/output library in C.
printf() uses format specifiers to format the output.
scanf() uses format specifiers to read input from the user.
Q5. What is REST API, Difference between Spring MVC and Spring Boot, Abstract class, interfaces etc
Answering questions related to REST API, Spring MVC, Spring Boot, abstract class, and interfaces.
REST API is a set of rules for building web services. It uses HTTP methods to access resources.
Spring MVC is a framework for building web applications using the Model-View-Controller architecture.
Spring Boot is a framework for building standalone, production-grade Spring-based applications.
An abstract class is a class that cannot be instantiated and is meant to be subclassed.
An in...read more
Q6. Explain about Polymorphism
Polymorphism is the ability of an object to take on many forms.
It allows objects of different classes to be treated as if they were objects of the same class.
It can be achieved through method overloading or method overriding.
Example: A shape class can have different subclasses like circle, square, etc. and all can be treated as shapes.
It helps in achieving code reusability and flexibility.
Q7. explain about operator overloading
Operator overloading allows operators to have different meanings based on the operands they work on.
It allows operators to be used with user-defined data types
It can simplify code and make it more readable
Examples include using the + operator to concatenate strings or add numbers
Operators can be overloaded for unary and binary operations
Q8. what are static variables and functions?
Static variables and functions are those that retain their values throughout the program's execution.
Static variables are declared with the 'static' keyword and are initialized only once.
Static functions are also declared with the 'static' keyword and can only be called within the same file.
Static variables and functions have a global scope within the file they are declared in.
Examples of static variables include counters and flags.
Examples of static functions include helper ...read more
Q9. what do you mean by a nested structure?
A nested structure is a data structure that contains other data structures within it.
It is a way of organizing data in a hierarchical manner.
It can be used in programming languages like C, Java, and Python.
Examples include arrays of structures, structures containing arrays, and structures containing other structures.
It can be used to represent complex data such as trees and graphs.
Q10. explain about encapsulation
Encapsulation is the process of hiding implementation details and providing a public interface for accessing the object.
Encapsulation helps in achieving data abstraction and information hiding.
It prevents unauthorized access to the internal state of an object.
It allows for better control over the data and its behavior.
Example: A bank account class with private variables for balance and account number, and public methods for deposit and withdrawal.
Example: A car class with pri...read more
Q11. Simple cobol program.what kind of changes in cobol .
Changes in COBOL programs depend on the specific requirements and goals of the project.
Changes may involve modifying existing code to add new functionality or improve performance.
Updates may also be necessary to ensure compatibility with new hardware or software systems.
Refactoring code to improve readability and maintainability is another common change.
Examples of changes include adding new data fields, modifying conditional statements, and updating file handling procedures.
Q12. Why operator overloading is not possible in java
Java doesn't support operator overloading to maintain simplicity and avoid ambiguity.
Java was designed to be a simple language, and operator overloading can make code more complex and harder to read.
Operator overloading can also lead to ambiguity in code, making it difficult to understand the intended behavior.
Java provides alternative ways to achieve the same functionality as operator overloading, such as using methods with descriptive names.
Other languages like C++ and Pyth...read more
Q13. 3. Define 4 pillars of OOPS with real world example
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: a car with its properties and methods.
Inheritance: Ability of a class to inherit properties and behavior from another class. Example: a child class inheriting from a parent class.
Polymorphism: Ability to present the same interface for different data types. Example: a function that can operate on different...read more
Q14. What are SOLID principles in java
SOLID principles are a set of design principles in object-oriented programming that help in creating maintainable and scalable software.
S - Single Responsibility Principle (SRP)
O - Open/Closed Principle (OCP)
L - Liskov Substitution Principle (LSP)
I - Interface Segregation Principle (ISP)
D - Dependency Inversion Principle (DIP)
Q15. 2. Difference between ASP.NET and ASP.NET Core
ASP.NET is a framework for building web applications using .NET, while ASP.NET Core is a cross-platform, high-performance version of ASP.NET.
ASP.NET is Windows-only, while ASP.NET Core is cross-platform and runs on Windows, macOS, and Linux.
ASP.NET Core is open-source and modular, allowing developers to include only the necessary components in their applications.
ASP.NET Core has better performance and scalability compared to ASP.NET.
ASP.NET Core supports dependency injection ...read more
Q16. 1. What is ASP.NET?
ASP.NET is a web application framework developed by Microsoft for building dynamic web sites, web applications, and web services.
ASP.NET allows developers to build dynamic web applications using languages like C# or VB.NET
It provides a rich set of tools and libraries for building web applications
ASP.NET supports various technologies like Web Forms, MVC, and Web API
It is integrated with Visual Studio for easy development and debugging
ASP.NET Core is the latest version of ASP.N...read more
Q17. fail fast vs fail safe
Fail fast prioritizes speed of detection and resolution, while fail safe prioritizes safety and minimizing harm.
Fail fast approach is commonly used in agile development where quick feedback is essential
Fail safe approach is commonly used in critical systems such as medical devices or aviation
Fail fast can lead to more errors and instability if not properly managed
Fail safe can lead to slower response times and increased complexity
Both approaches have their place depending on ...read more
Q18. Design ui for an application.
Designing a user interface for an application involves creating a visually appealing and user-friendly layout.
Consider the target audience and their needs
Use a clean and intuitive design with easy navigation
Include relevant features and functionalities
Ensure consistency in design elements such as colors, fonts, and spacing
Test the UI for usability and make necessary adjustments
Q19. Able to switch locations
Yes, I am able to switch locations for work if required.
I am open to relocating for the right opportunity
Have previous experience moving for work
Willing to consider different cities or countries for work
Q20. Internal working of Hashmap
HashMap is a data structure that stores key-value pairs and uses hashing to quickly retrieve values based on keys.
HashMap internally uses an array of linked lists to store key-value pairs.
When a key-value pair is added, the key is hashed to determine the index in the array where it will be stored.
If multiple keys hash to the same index, a linked list is used to handle collisions.
To retrieve a value, the key is hashed again to find the index and then the linked list is searche...read more
More about working at Deloitte




Interview Process at Deloitte Software Engineer

Top Software Engineer Interview Questions from Similar Companies








Reviews
Interviews
Salaries
Users/Month

