Filter interviews by
Be the first one to contribute and help others!
I applied via Approached by Company and was interviewed before Dec 2021. There were 3 interview rounds.
n-tier architecture is a software design pattern that divides an application into logical layers.
It separates presentation, application processing, and data management functions.
Each layer can be developed and maintained independently.
Examples include 3-tier and 4-tier architectures.
It improves scalability, maintainability, and flexibility of the application.
I appeared for an interview in Jul 2016.
Assembly language is a low-level programming language that is specific to a particular computer architecture.
Assembly language is a symbolic representation of machine code instructions.
It is used to write programs that directly control the computer's hardware.
Assembly language is platform-dependent and requires knowledge of the computer's architecture.
It provides direct access to the computer's memory and registers.
Exa...
I applied via Campus Placement and was interviewed before Apr 2020. There were 3 interview rounds.
I applied via Naukri.com and was interviewed before Apr 2020. There was 1 interview round.
Swapping two numbers without using a temp variable
Use arithmetic operations to swap the values
Add the two numbers and store the result in the first variable
Subtract the second variable from the result and store it in the second variable
Subtract the second variable from the first variable to get the original value of the second variable
Example: a=5, b=7; a=a+b=12, b=a-b=5, a=a-b=7
I applied via Naukri.com and was interviewed before Jun 2020. There was 1 interview round.
I applied via Naukri.com and was interviewed before Jul 2020. There was 1 interview round.
Name mangling is a technique used by compilers to give unique names to functions and variables to avoid naming conflicts.
Name mangling is used in C++ to support function overloading.
It is also used in Python to avoid naming conflicts in modules.
Name mangling can make it difficult to access variables and functions from outside the class in which they are defined.
In C++, name mangling can be seen by using the 'nm' comman
Abstract Factory is a creational design pattern that provides an interface for creating families of related objects.
Abstract Factory is used when we need to create families of related objects without specifying their concrete classes.
It provides an interface for creating objects of related classes without specifying their concrete classes.
It encapsulates a group of factories that have a common theme.
It promotes loose c...
Range based map iteration can be done using a for-each loop or iterators.
Use a for-each loop to iterate over the map elements.
Alternatively, use iterators to traverse the map.
The range-based for loop is preferred for its simplicity and readability.
Example: for(auto const& [key, value] : myMap) { //do something with key and value }
Detached threads are independent threads that run separately from the main thread. Joined threads are threads that wait for the main thread to finish.
Detached threads are created using pthread_detach() function
Joined threads are created using pthread_join() function
Detached threads do not need to be explicitly terminated
Joined threads must be explicitly terminated using pthread_exit() or return statement
Detached thread...
Static code analysis tools are software programs that analyze source code to find potential issues and improve code quality.
Static code analysis tools scan code without executing it
They can detect issues such as security vulnerabilities, coding errors, and performance problems
Examples of static code analysis tools include SonarQube, ESLint, and Checkstyle
Command to list currently running threads in linux
Use the 'ps' command with the 'H' option to display threads in a hierarchy
Use the 'top' command to display threads in real-time
Use the 'htop' command for an interactive display of threads
No, arithmetic operations cannot be performed on unique pointers.
Unique pointers are used to manage the lifetime of dynamically allocated objects.
They cannot be copied or assigned, only moved.
Arithmetic operations are not defined for pointers, including unique pointers.
I applied via Naukri.com and was interviewed in Dec 2020. There were 4 interview rounds.
TCS
Accenture
Wipro
Cognizant