Wipro
10+ Assumere Consultants Interview Questions and Answers
Q1. what is the difference between overloading and overriding?
Overloading is when multiple methods have the same name but different parameters, while overriding is when a subclass provides a specific implementation of a method already defined in its superclass.
Overloading is compile-time polymorphism, while overriding is runtime polymorphism.
Overloading is achieved within the same class, while overriding occurs between a superclass and its subclass.
Overloading is used to provide different ways of calling the same method, while overridin...read more
Q2. What is local variable What is global variables What is array What is pointer
Local variables are variables declared within a function or block. Global variables are declared outside of any function or block.
Local variables have a limited scope and can only be accessed within the function or block they are declared in.
Global variables can be accessed from any part of the program.
Arrays are a collection of similar data types stored in contiguous memory locations.
Pointers are variables that store the memory address of another variable.
Q3. what is the oops concept and explain briefly?
OOPs is a programming paradigm based on the concept of objects, which can contain data and code.
OOPs stands for Object-Oriented Programming.
It focuses on creating objects that interact with each other to solve a problem.
It has four main concepts: encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation is the process of hiding data and methods within an object.
Inheritance allows a new class to be based on an existing class, inheriting its properties and methods...read more
Q4. What is OOPS in Java? What is meant by Palindrome Number? Write a program on Palindrome Number.
OOPS stands for Object-Oriented Programming System in Java. Palindrome number is a number that remains the same when its digits are reversed.
OOPS is a programming paradigm that focuses on objects and their interactions.
Java is an object-oriented programming language that supports OOPS concepts.
Palindrome number examples: 121, 1221, 12321, etc.
To check if a number is palindrome, reverse the number and compare it with the original number.
Q5. What is Operater overloading and overriding
Operator overloading is the ability to redefine operators for user-defined types. Operator overriding is redefining inherited operators.
Operator overloading allows operators to be used with user-defined types, such as adding two objects together.
Overriding allows a subclass to provide a different implementation of a method that is already defined in its superclass.
Examples of overloaded operators include +, -, *, /, and =.
Examples of overridden methods include toString(), equ...read more
Q6. What is Oops and explain itβs features?
Oops stands for Object-Oriented Programming System. It is a programming paradigm based on the concept of objects.
Oops is based on the concept of classes and objects.
It allows for encapsulation, inheritance, and polymorphism.
Objects can have attributes (data) and methods (functions).
Example: In a car class, attributes could be color and model, and methods could be start() and stop().
Q7. What is Java? Write its features .
Java is a popular programming language known for its platform independence and object-oriented features.
Java is platform-independent, meaning it can run on any device with a Java Virtual Machine (JVM)
It is object-oriented, allowing for modular and reusable code
Java is known for its robust standard library, providing a wide range of pre-built functionality
It supports multithreading, allowing for concurrent execution of tasks
Java is statically typed, catching errors at compile ...read more
Q8. In SQL how to find second largest number?
Use the ORDER BY clause with DESC and LIMIT to find the second largest number in SQL.
Use the ORDER BY clause to sort the numbers in descending order.
Use the LIMIT clause to limit the result to the second row.
Example: SELECT column_name FROM table_name ORDER BY column_name DESC LIMIT 1, 1;
Q9. Write a program forgetting reverse of a number .
Program to reverse a number
Use modulus operator to extract the last digit of the number
Multiply the reversed number by 10 and add the extracted digit
Repeat until all digits are processed
Q10. What is java and how it is platform independent
Java is a high-level programming language known for its platform independence due to its ability to run on any device with a Java Virtual Machine (JVM).
Java is a class-based, object-oriented language used for developing applications and software.
It is compiled into bytecode that can run on any device with a JVM, making it platform independent.
Java programs are written once and can run on any platform without the need for recompilation.
Examples of platform independent Java app...read more
Q11. What is pointer to pointer?
Pointer to pointer is a variable that stores the address of another pointer variable.
It is used to allocate memory dynamically.
It is used in multi-level pointer referencing.
It is denoted by ** in C/C++.
Example: int **ptr;
Example: char **names;
Q12. What is loop in c++ language
A loop in C++ is a programming structure that repeats a set of instructions until a specific condition is met.
There are three types of loops in C++: for, while, and do-while.
For loop is used when the number of iterations is known beforehand.
While loop is used when the number of iterations is not known beforehand.
Do-while loop is similar to while loop, but it executes the code block at least once before checking the condition.
Loops can be nested within each other to create com...read more
Q13. Difference between c and python
C is a low-level programming language while Python is a high-level programming language.
C is compiled while Python is interpreted
C is faster and more memory-efficient than Python
Python has simpler syntax and is easier to learn than C
C is used for system programming, embedded systems, and game development while Python is used for web development, data analysis, and artificial intelligence
C requires manual memory management while Python has automatic memory management
Q14. What is encapsulation
Encapsulation is the concept of bundling data and methods that operate on the data into a single unit, preventing direct access to the data from outside the unit.
Encapsulation helps in data hiding and abstraction
It allows for better control over data by restricting access to certain components
Example: In object-oriented programming, classes encapsulate data and methods to create objects
Q15. How to create an array
An array is a data structure that stores a collection of elements of the same type in a contiguous memory location.
Declare an array by specifying the data type of the elements and the size of the array.
Initialize the array by assigning values to each element.
Access elements in the array using their index, starting from 0.
Example: String[] names = new String[3]; names[0] = "Alice"; names[1] = "Bob"; names[2] = "Charlie";
Q16. Explain call by value.
Call by value is a method of passing arguments to a function where the actual value of the argument is copied to the formal parameter of the function.
The value of the actual parameter is copied to the formal parameter of the function
Changes made to the formal parameter inside the function do not affect the actual parameter
Primitive data types like int, float, char are passed by value
Q17. What is oops meaning
OOPs stands for Object-Oriented Programming, a programming paradigm based on the concept of objects.
OOPs focuses on creating objects that contain data and methods to manipulate that data.
Encapsulation, inheritance, and polymorphism are key principles of OOPs.
Examples of OOPs languages include Java, C++, and Python.
Q18. What is inheritance
Inheritance is a concept in object-oriented programming where a class can inherit attributes and methods from another class.
Inheritance allows for code reusability and promotes the concept of hierarchy in programming.
A subclass can inherit attributes and methods from a superclass, but can also have its own unique attributes and methods.
For example, a 'Vehicle' class can be a superclass, with subclasses like 'Car' and 'Truck' inheriting attributes like 'color' and methods like...read more
Q19. Classs in python
Classes in Python are used to create new types of objects with their own attributes and methods.
Classes are defined using the 'class' keyword followed by the class name.
Attributes are variables that belong to the class and are accessed using 'self'.
Methods are functions defined within the class and can operate on the class's attributes.
Inheritance allows a class to inherit attributes and methods from another class.
Encapsulation allows data hiding by restricting access to cert...read more
Top HR Questions asked in Assumere Consultants
Interview Process at Assumere Consultants
Top Trainee Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month