Interview questions for Wipro Company

1. What are the differences between an object-oriented programming language and object-based programming language?

The following are the main differences between object-oriented and object-based languages.
• Object-oriented languages adhere to all Object Oriented Programming concepts, but object-based languages do not adhere to all Object Oriented Programming concepts such as inheritance, polymorphism, etc.
• Object-oriented languages lack built-in objects, but object-based languages do. For example, JavaScript contains a built-in window object.
Java, C#, Smalltalk, and others are examples of object-oriented programming languages while JavaScript, VBScript, and others are examples of object-based languages.

2. What is Memory management in C in Wipro?

The C programming language manages memory statically, automatically, or dynamically.
Static-duration variables are allocated in main memory, usually along with the executable code of the program, and persist for the lifetime of the program
Automatic-duration variables are allocated on the stack and come and go as functions are called and return.
For static-duration and automatic-duration variables, the size of the allocation is required to be compile-time constant.
Dynamic memory allocation in which memory is more explicitly (but more flexibly) managed, typically, by allocating it from the heap, an area of memory structured for this purpose.
In C, the library function malloc is used to allocate a block of memory on the heap. The program accesses this block of memory via a pointer that malloc returns. When the memory is no longer needed, the pointer is passed to free which deallocates the memory so that it can be used for other purposes.

3. What is polymorphism?

In an object-oriented programming language, polymorphism is a characteristic which means one name with many forms.
We can say that polymorphism shows different behavior in a different scenario.
There are two types of Polymorphism.
• Compile time polymorphism: It is known as method overloading.
• Runtime polymorphism: it is also known as method overriding.

4. How is C++ struct different from C++ class?

A struct is a bundle. It is a combination of all related elements that need to work together in a particular context. Such as, the restricted number of arguments context can pass to a function:
If you don’t specify the access modifier, visibility (public, private or protected) of the members will be public in the struct and private in the class.
The visibility by default goes just a little further than members: for inheritance, if you don’t specify anything then the struct will inherit publicly from its base class, while the class will do private inheritance:

5. What is DOM?

DOM stands for Document Object Model. It is a programming API for the HTML and XML documents. DOM provides the logical structure of the document and the way in which a document is accessed and manipulated.
DOM represents a table in the hierarchical form.

6. What do you understand about order of precedence and associativity in Java, and how do you use them?

Order of precedence:
The operators are arranged in order of precedence. When a number of operators are employed in an expression, the priorities of the operators determine how the expression is evaluated. In an expression containing multiple operators with various precedences, operator precedence decides which one is executed first.
Order of precedence example:
(4 > 2 + 8 && 3)
The following expression is the same as:
((4 > (2 + 8)) && 3)
The expression (2 + 8) will be executed first, yielding a value of 10.
After the first half of the equation (4 > 10) executes, the output is 0 (false).
Finally, (0 && 3) runs and returns 0. (false).
Associativity:
When two operators with the same precedence exist in an expression, associativity is employed. Left to right or right to left associativity is possible. To determine whether an expression is evaluated from left to right or right to left, associativity is used.
Associativity example:
12 * 2 / 4
Operators * and / have the same precedence in this case. “*” and “/” are both left to right associative, which means that the expression on the left is executed first and then moves to the right.
As a result, the preceding expression is identical to:
((12 * 2) / 4)
i.e., (12 * 2) executes first and the result will be 24 (true)
then, (24 / 4) executes and the final output will be 6 (true)

7. When you are attending to a multinational company like Wipro?

When you are attending to a multinational company like Wipro it is always good to maintain positive attire, eye contact, body language, confidence while answering and the most important aspect is Integrity.
These are some of the questions related to written test. Written test is very important because it gives you a chance to speak with the technical HR from where you can exhibit your skills. So it is imperative that you pass the written test. Here are some questions which are related to written test.

8. What are the advantages of a thread? How to achieve multitasking in Java?

These are the following advantages of a Thread:
1.It provides efficient communication.
2.It minimizes the context switching time.
3.By using thread, we can get the concurrency within a process.
4.Thread allows utilization of multiprocessor architectures to a greater scale and efficiency.
5.A process that executes multiple threads simultaneously is known as multithreading.
6.A thread is a lightweight sub-process, the smallest unit of processing.

Many of the candidates appearing for WIPRO fail to pass through the Technical interview due to lack of basics.

 Questions are easy if you have basic understanding of object oriented languages and Java. They are also recognized for their extensive background check of a candidate. They thoroughly check the credentials of the candidate and it is also good to be honest before the interviewer. Working in WIPRO gives a candidate global exposure and makes them much more favorable for other Indian companies

To achieve multitasking in java, we have two ways:
Multiprocessing and multithreading
One process may contain more than one thread and execute simultaneously is known as multi-threading.

9.What are Multi-Processing and Multitasking?

Multitasking: As the name indicates multiple tasks run on a single CPU. We use multitasking to utilize the CPU.
Multitasking can be achieved in two ways:
• Process-based Multitasking (Multiprocessing)
• Thread-based Multitasking (Multithreading)
Multi-processing: Multi-processing refers to the ability of a system to support more than one central processing unit at the same time.
Multithreading: As the name indicates multiple threads run concurrently.
A thread is a lightweight sub-process, the smallest unit of processing.

10.What is a process and what is a thread?

A thread is a lightweight sub-process, the smallest unit of processing. It is a separate path of execution.
Threads are independent that means if there is an exception in one thread, it doesn’t affect other threads. It uses a shared memory area.
The process is heavyweight and can consists of multiple threads. It is a small part of a program.

leave your comment


Your email address will not be published. Required fields are marked *