
Onward Technologies Inc

Onward Technologies Inc Software Engineer Interview Questions and Answers
Q1. write few simple programs related to class and oop
Programs related to class and OOP
Create a class with attributes and methods
Implement inheritance and polymorphism
Use encapsulation to hide data
Demonstrate the concept of abstraction
Create objects and call their methods
Q2. What's static and runtime polymorphism
Static polymorphism is resolved at compile-time, while runtime polymorphism is resolved at runtime.
Static polymorphism is achieved through function overloading and operator overloading.
Runtime polymorphism is achieved through virtual functions and function overriding.
Static polymorphism is faster as it is resolved at compile-time, while runtime polymorphism incurs overhead at runtime.
Static polymorphism is also known as early binding, while runtime polymorphism is also known ...read more
Q3. what's new and delete operator
New and delete operators are used for dynamic memory allocation in C++.
New operator is used to allocate memory dynamically for an object or an array.
Delete operator is used to deallocate the memory allocated by new operator.
New operator returns a pointer to the allocated memory.
Delete operator takes a pointer to the memory to be deallocated.
If delete is called on a null pointer, no action is taken.
Q4. what are smart pointers
Smart pointers are objects that manage the lifetime of dynamically allocated memory in C++.
Smart pointers automatically deallocate memory when it is no longer needed.
They prevent memory leaks and dangling pointers.
Examples of smart pointers in C++ are unique_ptr, shared_ptr, and weak_ptr.
Q5. Data storage classes in C++
Data storage classes in C++
C++ provides several data storage classes, including 'auto', 'register', 'static', 'extern', and 'mutable'.
The 'auto' storage class is the default and is used for local variables.
The 'register' storage class is used to define local variables that should be stored in CPU registers for faster access.
The 'static' storage class is used for variables that retain their values across function calls.
The 'extern' storage class is used to declare variables th...read more
Q6. Explain Basic OOP's Concepts
OOP's concepts include encapsulation, inheritance, and polymorphism.
Encapsulation: Bundling data and methods together in a class.
Inheritance: Creating new classes from existing ones, inheriting their properties and behaviors.
Polymorphism: Objects of different classes can be treated as objects of a common superclass.
Example: A class 'Car' encapsulates data like 'color' and methods like 'startEngine'.
Example: Class 'SUV' can inherit from 'Car' and add additional properties like...read more
Interview Process at Onward Technologies Inc Software Engineer

Top Software Engineer Interview Questions from Similar Companies








Reviews
Interviews
Salaries
Users/Month

