UBS
10+ Delict Technology Services Interview Questions and Answers
You are given an array of size ‘n’ which is an array representation of min-heap. You need to convert this min-heap array representation to a max-heap array representation.
For Exampl...read more
Q2. What is a dangling pointer? What if we try to dereference it?
A dangling pointer is a pointer that points to a memory location that has been deallocated or freed. Dereferencing it can cause a program to crash.
Dangling pointers occur when memory is freed or deallocated, but the pointer still points to that memory location.
Dereferencing a dangling pointer can cause a segmentation fault or access violation.
Dangling pointers can be avoided by setting the pointer to NULL after freeing the memory it points to.
Q3. How is runtime polymorphism implemented?How does the compiler understand this?
Runtime polymorphism is implemented through virtual functions and dynamic binding.
Virtual functions are declared in base class and overridden in derived class
Dynamic binding is used to determine which function to call at runtime
Compiler uses virtual function table to understand runtime polymorphism
What are the types of polymprphism?
What is a dangling pointer in C?
Q6. difference between function overloading and overriding
Function overloading is having multiple functions with the same name but different parameters. Function overriding is having a derived class implement a method with the same name and parameters as a method in the base class.
Function overloading is a compile-time polymorphism concept.
Function overriding is a run-time polymorphism concept.
Function overloading is used to provide different ways of calling the same function.
Function overriding is used to provide a specific impleme...read more
What is a Null Pointer?
What is function overloading?
What is a virtual function?
What are templates in C++?
Q12. What is a NULL pointer
A NULL pointer is a pointer that does not point to any memory location.
It is represented by the value 0 or NULL.
Dereferencing a NULL pointer results in a segmentation fault.
It is commonly used to indicate the end of a linked list or array.
Q13. What is virtual function
A virtual function is a function in a base class that is overridden in a derived class.
Virtual functions allow polymorphism in C++
They are declared using the virtual keyword
The function is resolved at runtime based on the object type
Virtual functions can be pure virtual, meaning they have no implementation in the base class
Example: virtual void print() = 0; // pure virtual function
Q14. how function overloading works
Function overloading allows multiple functions with the same name but different parameters.
Functions with the same name but different parameters can be defined in the same scope
The compiler determines which function to call based on the number and types of arguments passed
Overloading can improve code readability and reduce the need for multiple function names
Example: void print(int x), void print(float x), void print(char x)
Example: int sum(int a, int b), float sum(float a, f...read more
Q15. What is equity,derivative etc
Equity refers to ownership in a company, while derivatives are financial contracts based on the value of an underlying asset.
Equity represents ownership in a company and can be in the form of stocks or shares.
Derivatives are financial contracts that derive their value from an underlying asset such as stocks, bonds, or commodities.
Examples of derivatives include futures, options, and swaps.
Derivatives are often used for hedging or speculation purposes.
Both equity and derivativ...read more
Q16. Scenarios for a manager to handle
Managers may face various scenarios in their work. Here are some pointers to handle them.
Identify the problem and its root cause
Develop a plan of action
Communicate effectively with team members
Delegate tasks appropriately
Monitor progress and adjust plan as needed
Provide feedback and recognition
Handle conflicts and difficult conversations
Stay organized and prioritize tasks
Q17. What is a V-table?
A V-table is a virtual table used in programming languages to implement polymorphism.
It is used in object-oriented programming languages like C++ and Java.
It contains pointers to functions that can be overridden by derived classes.
It allows objects of different classes to be treated as if they are of the same class.
It is used to implement dynamic binding or late binding.
It is also known as a virtual function table or dispatch table.
Q18. What is polymrphism
Polymorphism is the ability of an object to take on many forms.
Polymorphism allows objects of different classes to be treated as if they are of the same class.
It is achieved through method overriding and method overloading.
Examples include method overriding in inheritance and implementing interfaces in Java.
Polymorphism helps in achieving loose coupling and flexibility in code design.
Q19. What are templates
Templates are pre-designed documents or files that serve as a starting point for creating new documents or files.
Templates can be used for various purposes such as creating resumes, business cards, invoices, and presentations.
They save time and effort by providing a pre-designed layout and structure.
Templates can be customized to fit specific needs and preferences.
They are commonly used in software applications like Microsoft Word, PowerPoint, and Excel.
Templates can also be ...read more
Top HR Questions asked in Delict Technology Services
Top Business Technology Analyst Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month