Online IDE
Free Mock
Events New Scaler
Improve your coding skills with our resources
Compete in popular contests with top coders
Attend free live masterclass hosted by top tech professionals
Explore Offerings by SCALER

Download Interview guide PDF

Before you leave, take this Wipro Interview Questions interview guide with you.
Get a Free Personalized Career Roadmap
Answer 4 simple questions about you and get a path to a lucrative career
expand-icon Expand in New Tab
/ Interview Guides / Wipro Interview Questions

Wipro Interview Questions

Last Updated: Jan 03, 2024
Certificate included
About the Speaker
What will you Learn?
Register Now

Wipro Limited is a prominent global information technology, consulting, and business process services firm (NYSE: WIT, BSE: 507685, NSE: WIPRO). Wipro uses cognitive computing, hyper-automation, robots, cloud, analytics, and emerging technologies to assist its clients in successfully adapting to the digital environment. It has over 200,000 dedicated employees servicing clients across six continents and is known globally for its extensive offering of services, a strong commitment to sustainability, and excellent corporate citizenship. We find new ideas and connect the dots to create a better and more courageous future.

A career at Wipro is an opportunity to realise your full potential, progress consistently, and work on cutting-edge technology alongside some of the industry's brightest brains. Wipro is an exciting workplace because of its inspirational blend of growth potential, ongoing innovation, fair play, and great work culture. Wipro's ability to provide every employee with the freedom to learn, grow, and create their own career path distinguishes it as an organization with no boundaries. Wipro believes the only way to achieve company efficiency is through people and their innovation expertise.

Wipro is the place for you if you have the passion, talent, and ability to work with cutting-edge technology. Please see the list below for the eligibility requirements.

Eligibility Criteria:

  • Candidates with a B.E./B.Tech degree or a 5-year integrated M.Tech degree are eligible.
  • Except for Fashion Technology, Textile Engineering, Agriculture, and Food Technology, all branches are permitted to appear for the recruitment process.
  • The offer is conditional on all backlogs being cleared.
  • A maximum of three years of an educational gap will be permitted (10th to graduation)
  • 60 percent or higher in tenth grade and twelfth grade.
  • Graduation: 60% or 6.0 CGPA or equivalent, as determined by your university's requirements.

Wipro Recruitment Process

1. Interview Rounds

Online Assessment Round

The online assessment test is the first step in the recruitment process. The candidates who clear this round are called for the technical interview rounds. The test is divided into 3 sections:

  • Aptitude: The Aptitude Test is the initial step in the Wipro hiring process. This round is broken down into three sections:
    • Quantitative Aptitude: The candidate's mathematical abilities will be tested in this phase. Time, Speed & Distance, Number Series, Simple & Compound Interest, Probability, Permutation & Combination, Ratios & Proportions, and Percentages are all covered in the Quantitative Aptitude section.
    • Logical Reasoning: The portion will assess the candidate's ability to think critically and logically. In this part, you will be asked questions about the following topics: Coding, Decoding, Series, Analogy and Visual Reasoning, Data Sufficiency, Data Interpretation, ​Data Arrangements, Logical Word Sequence, ​Statements and Inferences, ​Inequalities.
    • Verbal Ability: This section will assess the candidates' English abilities. The following subjects will be the focus of the questions in this section:  Error-Spotting, Sentence Improvement, Sentence Completion, and Para-Jumbles among others.
  • Essay writing: An Essay Writing test is included in the writing portion, and it can be based on any topic or scenario. Candidates must write a 200-400 word essay on the assigned topic. It's also a computer-based examination. A good Wipro essay will feature the following: Excellent planning (structure of the essay), Proper phrasing (grammar, punctuations, and spelling errors), and good vocabulary.
  • Coding: Candidates can take the coding assessment in any of the following programming languages: Java, C, C++, or Python. Fundamentals of Programming must be mastered in at least one programming language of his/her choice. Generally, two or three coding questions are asked in this round. The following are the topics that must be mastered: Decision Making, Looping, Functions,  Arrays, and Strings.

The online assessment round can be skipped for experienced folks based on company requirements and job profiles.

Technical Interview Round

  • Candidates who pass the online assessment round will be called to face-to-face technical interviews.
  • Your technical abilities are evaluated during a technical interview, which is usually related to the technical knowledge required for the position that you have applied for. The questions will put your problem-solving and numerical reasoning skills to the test. Interviewers are interested in how candidates approach problems, construct their thought process, and display personal qualities such as communication, in addition to technical knowledge (which is vital).
  • The technical face-to-face interview is the most crucial step in the process. You should be familiar with computer fundamentals such as OOPS, DBMS, CN,  OS, etc, and be able to explain them to the interviewer. It is necessary to be familiar with a programming language. Make sure you know at least one programming language. You do not need to be fluent in all programming languages, but at least one, such as C++, Java, or Python, should be familiar to you. You can be asked to write code too. Your problem-solving skills will also be evaluated by the interviewer. You'll be asked about your previous projects and professional experiences, including what you did, how you employed technology, and how successful you were.
  • The number of technical interviews to be conducted will be based on your performances in previous rounds, job profile, and company requirements.

HR interview round

Every organization conducts an HR interview round to assess your personality, strengths, shortcomings, and ability to handle the task, as well as to assess your background and determine if you're the ideal fit for this position. The HR round will be held for candidates who have cleared the technical interview.  They can also ask questions about Wipro’s history, including when it was created, its goals, principles, and organizational structure, among other things.

Examine your resume to ensure that you have included all relevant information about yourself and that the information you have provided is accurate to the best of your knowledge. Prepare yourself to respond to any question that may be posed based on your résumé. Be confident and truthful about anything you answer. If you're preparing for an HR interview, you can expect to be asked some of the following questions:

  • Please tell me about yourself. (This is the very first question, and it will almost certainly be asked in each round of the interview. Telling the interviewer about your hobbies, skill sets, strengths, qualifications, and successes is the ideal method to answer this question. Start with your current position, achievements, past work history, and academic and personal details if you're an experienced professional.)
  • What is your expectation with respect to this role?
  • Why are you interested in working for Wipro?
  • Are you willing to relocate to various parts of India?
  • Tell me about your internships and projects.
  • Why are you looking for a job change? (This is a popular question among experienced professionals looking for a change. The simplest way to respond to this question is to say that you are leaving your current job to pursue a promotion. Make sure you don't criticize or undermine the company where you're now employed.)
Create a free personalised study plan Create a FREE custom study plan
Get into your dream companies with expert guidance
Get into your dream companies with expert..
Real-Life Problems
Prep for Target Roles
Custom Plan Duration
Flexible Plans

2. Interview Process

The Wipro Recruitment Process generally consists of three rounds of selection:

  • Online assessment round
  • Technical interview round
  • HR interview round.

Wipro Technical Interview Questions: Freshers and Experienced

1. What is the use of a CSS preprocessor? When should a pre-processor be utilised in a project, according to you?

CSS preprocessors are scripting languages that augment CSS's standard functionality. They allow us to employ variables, nesting, inheritance, mixins, functions, and mathematical operations in our CSS code. CSS preprocessors make it simple to automate repetitive activities, eliminate code bloat and errors, develop reusable code snippets, and maintain backward compatibility.

The benefits and drawbacks of using a preprocessor vary depending on the type of project, but the following are some of the benefits and drawbacks.


  • You may add variables and functions to CSS with CSS Preprocessor, which gives it a new dimension and scope, making development easier and more efficient. It also improves the organization and cleanliness of your code.
  • CSS Preprocessors is a unique feature that allows you to combine numerous stylesheets into one. You can make separate files for each screen or page, then combine them in the main CSS file.
  • The CSS Preprocessor assists you in avoiding repetitions. Instead of rewriting common styles, you can write them once and then import them.
  • CSS class nesting makes it simple to target DOM elements and saves time. It's also a lot easier to alter CSS files due to nesting.


  • Preprocessing tools are required for preprocessors. The time they take to recompile can be lengthy.
  • Although the source files may be small, the output CSS may be large, causing the request to take longer to finish.

Choosing a preprocessor comes down to personal choice, and it might be instructive to see how a developer could choose one over the other for your project.

Useful Preparation Resources:




Practice Problems

You can download a PDF version of Wipro Interview Questions.

Download PDF

Your requested download is ready!
Click here to download.

2. How do the commands DROP, TRUNCATE, and DELETE differ in SQL?

DROP is used for deleting a database, table, or a view TRUNCATE is used for deleting all rows of a table DELETE can either delete all of the rows at once or one by one. i.e., we can use it according to our needs.
No data can be rollbacked No data can be rollbacked Data can be rollbacked
It is a Data Definition Language (DDL) command It is a Data Definition Language (DDL) command It is a Data Manipulation Language (DML) command.
It deletes the entire structure of the table. It preserves the structure of the table. It does not affect the structure of the table.

3. What is SQL Profiler?

SQL Server Profiler is a graphical user interface for SQL Trace (SQL Trace is a built-in SQL Server application that monitors and records database activity in SQL Server 6.5. This tool can show server activity, set filters to focus on the operations of specific users, applications, or workstations, and filter SQL commands) that helps in monitoring a Database Engine or Analysis Services instance. You can record and store information about each event to a file or table for subsequent analysis.

The SQL Profiler software allows us to track SQL Server connections and determine actions such as which SQL Scripts are executing, unsuccessful jobs, and so on. SQL databases and their environments are monitored, analyzed, troubleshooted, and tuned with this tool.

Learn via our Video Courses

4. What are the benefits of Hybrid Clouds in Cloud Computing?

A hybrid cloud is computing, storage, and service environment that combines on-premises infrastructure, private cloud services, and a public cloud (such as Amazon Web Services (AWS) or Microsoft Azure) with orchestration among the platforms. Hybrid cloud infrastructure is one that combines public clouds, on-premises computing, and private clouds in your cloud server.

The real value of cloud services comes from their ability to enable a fast-paced digital company to change. There are two agendas in every technology management organization: the IT agenda and the business transformation agenda. Traditionally, the IT agenda has been concentrated on cost-cutting. Digital business transformation plans, on the other hand, are concentrated on making money through investments.

The main advantage of a hybrid cloud is its flexibility. To acquire the agility it requires for a competitive advantage, your company may desire (or need) to integrate public clouds, private clouds, and on-premises resources.

5. What is EUCALYPTUS in cloud computing? List some of its functionalities.

Eucalyptus is commercial and open-source computer software for creating private and hybrid cloud computing environments that are compatible with Amazon Web Services (AWS). It was created by the company Eucalyptus Systems. Eucalyptus stands for Elastic Utility Computing Architecture for Linking Your Programs To Useful Systems. Eucalyptus enables application workloads to be flexibly scaled up or down by pooling compute, storage, and network resources.

Some of its functionalities are:

  • Users can configure computing, network, and storage resources using the Eucalyptus User Console. Using built-in key management and encryption capabilities, development and test teams may control virtual instances.
  • Eucalyptus can run a variety of virtual machine images, including Windows and Linux. Users can create a library of Eucalyptus Machine Images (EMIs) that are detached from infrastructure details, allowing them to run on Eucalyptus clouds.
  • Eucalyptus supports storage area network devices that use storage arrays to boost performance and reliability. Direct-attached storage is also supported by Eucalyptus.
  • New features for AWS compatibility have been added to Eucalyptus 3.3. Resource tagging, for example, allows application developers and cloud managers to add configurable metadata tags to resources like firewalls, load balancers, Web servers, and particular workloads to help them be more easily identified.
  • Maintenance Mode in Eucalyptus 3.3 allows cloud managers to do maintenance on Eucalyptus clouds with no interruption to instances or cloud applications.
  • Better image management and migrating tools, warm upgrade capabilities, a hybrid cloud user console to handle both Eucalyptus and AWS resources, Identity and Access Management (IAM) roles, and enhanced High Availability (HA) capabilities are among the new features in Eucalyptus 3.4.
Advance your career with   Mock Assessments Refine your coding skills with Mock Assessments
Real-world coding challenges for top company interviews
Real-world coding challenges for top companies
Real-Life Problems
Detailed reports

6. Explain the Project Management Life Cycle method in context to Project Management.

The Project Management Life Cycle is a set of activities/tasks that must be completed in order for project objectives or targets to be met. This assists in organizing and streamlining the efforts required to complete the project into a sequence of logical and doable actions. The Project Management Life Cycle is divided into four simple phases, as follows:

  • Initiation: It's the first and most important step in the project's life cycle, where the project's initial scope is determined and resources are allocated.
  • Planning: This step requires you to jot down a sufficient amount of detail for the project in order to plan time, cost, and resources. It calculates the amount of work required and effectively manages risk.
  • Executing: This step contains the processes that are utilized to complete the project management plan's work. It's all about meeting the project's goals. It also entails monitoring, assessing, and regulating the project's progress. You must also promptly recognize possible problems and take necessary action.
  • Closure: This step is a crucial aspect of project management, and it is responsible for completing all project activities. This entails completing all activities across all the steps, disbanding the project team, and using the project closure report to sign off on the project with the customer.

7. What do you understand about RAID in context to Project Management?

RAID stands for Risk, Actions, Issues, and Dependencies in project management. These are extremely crucial aspects for a project manager to understand.

  • Risks are potential pitfalls that could have a good or negative impact on the project, causing the final product to deviate from the original design.
  • The tasks that you do during the project are referred to as actions.
  • Issues are roadblocks that you may encounter over the course of the project that must be effectively resolved or the project will be derailed or fail.
  • Decisions are the actions/tasks you choose in the project.

8. What makes a block-level element different from an inline element in HTML?

Block Inline

A block-level element is drawn as a block that will always start on a new line and will stretch to occupy the full width available to it, i.e. the width of its container.

Examples of block-level elements by default: <div>, <img>, <section>, <form>, <nav>.

Inline items are drawn where they are defined and take up only the space that is required. Looking at how text flows on a page is the simplest approach to understand how they work.

Examples of inline elements by default: <span>, <b>, <strong>, <a>, <input>.

9. Describe the main differences between the LocalStorage and SessionStorage objects in context to HTML.

The following are the main distinctions between localStorage and sessionStorage objects:

  • The data stored in the localStorage object has no expiration date. The sessionStorage object, on the other hand, keeps data for a single session.
  • When a browser window is closed, data in a localStorage object is not deleted. In the case of sessionStorage objects, however, the data is destroyed when the browser window is closed.
  • SessionStorage data is only available in the browser's current window. The data in the localStorage, on the other hand, can be shared across several browser windows.

10. What are the advantages and disadvantages of indexing in DBMS?

Indexing is a technique for improving the database performance by reducing the number of disc accesses needed when a query is run. It's a data structure strategy for finding and accessing data in a database rapidly.

The following are some of the benefits of indexes:

  • An index allows data to be retrieved quickly.
  • When an index is used in a query, the performance usually improves dramatically.
  • They're good for sorting. It is possible to eliminate the need for a post-fetch-sort procedure.
  • The index ensures that each record in the database is uniquely identified.

The cons of indexing are:

  • Inserts, updates, and deletes are all slowed down by indexes.
  • Indexes take up a lot of space (this increases with the number of fields used and the length of the fields).

11. Explain precondition and postcondition to a member function in the context of C++ programming language.

A precondition is a condition that must be met before a member function may be called. If preconditions are never false, a class is appropriately used. If a precondition fails to hold, the following function is not executed. For example, before inserting an element into a stack, we call the isfull() to check if the stack is full or not. Here, the isfull() is an example of a precondition.

A post-condition is a condition that must be true when a member function is exited if the precondition was true when the function was entered. For a code to be correctly implemented, the post-conditions must never be false For example, we know that isempty() must always hold after placing an element onto the stack. This is a push operation post-condition.

12. What makes a macro faster than a function in the C programming language?

Macros are sections of code in a programme that have been given a name. The compiler substitutes this name with the real piece of code whenever it encounters this name. To define a macro, use the '#define' directive. Macros can be defined either before or within the main method. 

Code 1:

#define HRS 24      //Macro  
int main()  
    printf("%d", HRS);  
    return 0;  




In the above code, we defined a macro named HRS to have a value of 24. Now, when we call the macro in the printf function, 24 gets printed in the output terminal.

The above code can be inferred to be the following code without the use of macros.

Code 2:

int hrs()  
    return 24;  
int main()  
    printf("%d", hrs());  //calling  
    return 0;  

Output :



Here, we defined a function named HRS. When we call the HRS function in the printf function, the function returns 24 and so 24 is printed on the output terminal.

Macros are pre-processed, which implies that all macros are processed before the code is compiled, and functions are processed after the code is compiled.

13. 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.

14. 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).

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) 
Postfix ++ – – Left to right
Unary + – ! ~ ++ – – Right to left
Multiplicative * / % Left to right
Additive + – Left to right
Shift << >> Left to right
Relational < <= > >= Left to right
Equality == != Left to right
Bitwise AND & Left to right
Bitwise XOR ^ Left to right
Bitwise OR | Left to right
Logical AND && Left to right
Logical OR || Left to right
Conditional ?: Right to left
Assignment = += -= *= /= %=>>= <<= &= ^= |= Right to left

15. How can you make a request for garbage collection in Java?

There are two ways to ask the JVM to run the Garbage Collection.

  • The garbage collection methods are available in the Runtime class given by Java. For any Java program code, the Runtime class is a singleton. A singleton instance of the Runtime class is returned by the function getRuntime(). This instance of Runtime can be used to call the gc() function to request garbage collection.
  • Request the JVM to perform GC using the System class System.gc() function.
 public class Sample
    public static void main(String[] args) throws InterruptedException
        Sample s1 = new Sample();
        Sample s2 = new Sample();
        // Making the reference variable as null
        s1 = null;
        // Calling the system call function for garbage collection
        // Making the reference variable as null
        s2 = null;
        // Calling for garbage collection through the getRuntime() method
    // This method is called on object once before garbage collecting it
    protected void finalize() throws Throwable
        System.out.println("Garbage collector has been called");
        System.out.println("The Object whose garbage has been collected is : " + this);


Garbage collector has been called
The Object whose garbage has been collected is : Sample@4251f172
Garbage collector has been called
The Object whose garbage has been collected is : Sample@481e8172


In the above code, we create two instances of a class and then re-initialize it to null. Then we call for the garbage collection using the two methods specified above. Thus, we get the above output.

16. Explain Aggregation vs Composition in Java.

An association is a relationship that exists between two distinct classes and is established through their Objects. One-to-one, one-to-many, many-to-one, and many-to-many associations are all possible.

An Object communicates with other Objects to leverage the capabilities and services provided by that object in Object-Oriented programming. Association has two forms and they are composition and aggregation.

Aggregation is a unique type of association in which:

  • It denotes a Has-A relationship.
  • It's a one-way relationship or a unidirectional association.
  • In Aggregation, both entries can persist independently, implying that terminating one entity will have no influence on the other.

In the above image, we can clearly see that each teacher is associated with a college, and each student is also associated with a college. Thus, both the entities, the student and the teacher can exist independently. 

Composition is a type of Aggregation in which two entities are extremely reliant on one another.

  • It denotes a part-of-relationship.
  • Both entities are reliant on one another in composition.
  • When two entities come together to form a composition, the composite object cannot exist without the other.

In the above image, we can clearly see that both Tyre and Engine form an integral part of a vehicle. Both are reliant on each other. Without either of them, the Vehicle entity is useless.

17. What are the differences between error and exception in Java?

An error occurs when a user performs an unauthorised action that causes the code to behave abnormally. Errors in programming are frequently unnoticed until the code is compiled or run. Some of the errors make it impossible to compile or run a program. As a result, errors should be removed before compiling and running a program. Out of memory and system crash are two examples of errors.

In Java, an exception is an unwelcome or unexpected occurrence that occurs during the program execution, or during run time, and disturbs the usual flow of the program's instructions. Exceptions are circumstances that arise during the program execution and may result in its termination. However, try, catch, and throw keywords can be used to recover them.

Unchecked exceptions (exceptions which are not checked at compile time), such as ArrayIndexOutOfBoundException, are known to the compiler at runtime, whereas checked exceptions (exceptions which are checked at compile time), such as IOException, are known to the compiler at compile time.

Errors Exceptions
It is not feasible to recover from an error during compilation and execution. Exceptions can be recovered by utilising a try-catch block or by throw keyword.
In Java, all errors are of the unchecked type. There are exceptions for both checked and unchecked types.
The environment in which the code is running is the most common cause of errors. Exceptions are generated by the code itself.

Errors can arise both at compile and run time.

Compile Time: eg Syntax Error

Run Time: Logical Error.

All exceptions occur at runtime.
Errors are defined in the java.lang.Error package. Exceptions are defined in the java.lang.Exception package
Examples : java.lang.StackOverflowError, java.lang.OutOfMemoryError Examples : Checked Exceptions : SQLException, IOException Unchecked Exceptions : ArrayIndexOutOfBoundException, NullPointerException, ArithmeticException.

18. Differentiate between strings and char arrays in Java.

Strings Character Arrays
A string is a sequential collection of characters that are represented as a single data type. A Character Array is a collection of char data types in sequential order.
Strings are immutable which means the data or state of a String object can't be modified once it has been created; instead, a new String object is generated. Character Arrays are mutable which means the contents of a char array can be changed.
Strings can be used with built-in functions like substring() and charAt(). In Java, there are no built-in functions for working with Character Arrays.
The '+' operator can be used to join two strings together to generate a new one. Appending two Character Arrays with '+' is not possible.
The charAt() method is used to access characters in a String at a specific index. [] can be used to access the characters in a Character Array in the same way it can in any other language.
Strings can be stored in memory in any manner. Character Array elements are sequentially stored at increasing memory places.
The String Constant Pool contains all Strings. The Heap contains all Character Arrays.

The toCharArray() function of the String class can be used to transform a String into a Character Array.

Eg: String s = “GEEKS”;

char [] ch = s.toCharArray();

The code above converts a string into a char array.

A String Constructor can be used to transform a Character Array to a String.

Eg: char[] a = {‘G’, ‘E’, ‘E’, ‘K’, ‘S’};

String A = new String(a);

The code above converts a char array into a string.

19. What do you understand about Stack Unwinding in C++?

Stack Unwinding is the process of eliminating function entries from the function call stack at runtime. Exception Handling is often associated with Stack Unwinding. When an exception occurs in C++, the function call stack is searched linearly for the exception handler, and any entries before the function with the exception handler are deleted from the function call stack. If the exception is not handled in the same code, stack unwinding is required (where it is thrown).

20. Explain free() vs delete () in C++.

Both delete() and free() are used to dynamically deallocate memory.

  • The free() function is a C library function that can also be used in C++, whereas the keyword "delete" is a C++ keyword.
  • The delete operator deletes a pointer that was allocated using the new operator or a NULL pointer, whereas the free() function deletes a pointer that was allocated with the malloc(), calloc(), or realloc() functions or a NULL pointer.
  • The delete operator in C++ invokes the class's destructor when it destroys the allocated memory, but the free() function does not; it just frees the memory from the heap.

21. Explain copy constructor vs assignment operator in C++.

A copy constructor is a member function that uses another object of the same class to initialise an object. Assignment operators are used to giving a variable a value. The assignment operator's left side operand is a variable, while the assignment operator's right side operand is a value.

 // C++
using namespace std; 
class IB
    IB() {} 
    IB(const IB &b) 
        cout<<"Copy constructor is called "<<endl; 
    IB& operator = (const IB &b)
        cout<<"Assignment operator is called "<<endl;
        return *this;
// Driver code
int main() 
    IB b1, b2; 
    b2 = b1; 
    IB b3 = b1; 
    return 0; 


Assignment operator is called
Copy constructor is called

When a new object is generated from an existing object as a copy of the old object, the copy constructor is called. When an already initialised object is given a new value from another object, the assignment operator is used.

22. Write the code to find the LCM of an array of numbers.

We know that LCM (x, y) = (x * y) / GCD (x, y). We have to extend this idea to an array of numbers.

Let's imagine we have an array arr[] with n members for which the LCM must be calculated.

Our algorithm's major steps are as follows:

  • Set res = arr[0] as the first value.
  • Iterate over all of the array's elements, from i = 1 to i = n-1.
    Our lcm, which is stored in res, is LCM of (arr[0], arr[1],........, arr[i-1]) at the ith iteration. LCM (arr[0], arr[1],...., arr[i]) = LCM (ans, arr[i]). As a result, we only need to do res = LCM (ans, arr[i]) = (ans * arr[i]) / gcd at the i'th iteration (ans, arr[i]).
//C++ program to find the LCM of n elements of an array
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
//the function that finds
//GCD of 'x' and 'y'
int GCD(int x, int y)
    if (y == 0)
        return x;
    return GCD(y, x % y);
//Driver Code
int main()
    int a[] = { 11, 7, 3, 9, 4 };
    int len = sizeof(a) / sizeof(a[0]);
    // Initializing result which will store the lcm
    ll res = a[0];
    // res contains LCM of a[0], ..a[i]
    // after i'th iteration,
    for (int i = 1; i < len; i++)
        res = (((a[i] * res)) /
                (GCD(a[i], res)));
    return 0;



23. Get the nth Fibonacci number in O(n) time and O(1) space complexity.

function fib(n){
  let [x, y] = [0, 1]
  while (n > 0){
    [x, y] = [y, x + y]
    n -= 1
  return x

This solution has a linear time complexity of O(n) and a constant space complexity of O(1). The number of loops required to determine the nth fib number will still increase linearly as n increases, but as we extend the sequence out, we are overriding the previous numbers in the sequence, keeping the space complexity constant for any input n. It is often referred to as the Iterative Top-Down Approach.

24. List the important functionalities/features of an operating system.

The following are some of the most important features of an operating system:

  • The operating system allows diverse applications and peripheral devices to share the computer's memory and central processing unit time.
  • Between the user and the computer hardware, an Operating System serves as a communication bridge (interface). A user interface, such as a graphical user interface or a command line, is provided by an operating system.
  • The ability to boot the computer is part of an operating system.
  • It manages the peripheral devices and does some simple activities like keeping a track of all devices connected to the system, designating a program called the Input/Output Controller that is responsible for every device, and so on.
  • It offers file management, which is the process by which an operating system maintains, fetches, manipulates, and saves data.

25. What are the advantages and disadvantages of time slicing in CPU Scheduling in OS?

Time slicing allows a task to run for a set amount of time before returning to the pool of ready tasks. The scheduler then determines the executable job depending on the priority and a variety of other factors. A task in a time-slicing method runs for a predetermined amount of time. If there is another task with a higher priority after that task is completed, the scheduler runs the priority task next, based on priority and other considerations. 

The advantages of time slicing in CPU Scheduling are:

  • CPU resources are distributed fairly. The kernel of our CPUs does not simply allocate all of our PCs' resources to a single task or service. Because the CPU is always running multiple processes that are required for it to function, our kernel manages these processes without delay.
  • It prioritizes all processes equally. The CPU accomplishes this by running processes one at a time, slice by slice. A time slice is a brief period of time that is allotted to a process and executed by the CPU.
  • It's simple to integrate into the system.
  • After a process has run for a set amount of time, it is interrupted and another process runs for the same amount of time. To save the states of preempted processes, the context switching approach is utilised. Hence, the states of the preempted processes are not lost.

The disadvantages of time slicing in CPU Scheduling are:

  • The processor output will be delayed if the slicing time is short.
  • It spends a lot of time switching between contexts.
  • The time quantum/slice has a significant impact on process management.
  • Processes do not have defined priorities.
  • Priority is not given to more vital jobs.
  • It's challenging to come up with an adequate time quantum/slice.

26. What are the different types of Shells in Linux?

SHELL is a program that acts as the interface between the user and the operating system. It is a command-line interface to the Unix operating system. It collects data from you and runs programs depending on that data. The output of the program is displayed once it has completed its execution.

Shell allows us to run commands, programs, and shell scripts. Kernel maintains resources between processes and regulates all-important computer operations. It also restricts hardware access, organizes all performing utilities, and manages resources between processes. Only kernel users have access to the operating system's utilities.

Types of Shells:

  • The C Shell: It included aliases and command history, among other features. It has features like built-in math and C-like expression syntax that make programming easier.
  • The Bourne Shell: It's the very first UNIX shell. It is more convenient and faster. It lacks interactive features such as the ability to recall past commands. It also has no built-in support for arithmetic and logical expressions. It is the default shell for the Solaris operating system.
  • The Korn Shell: The Bourne shell is a subset of it. As a result, everything in the Bourne shell is supported. It includes interactive elements. Built-in arithmetic and C-like arrays, functions, and string manipulation facilities are among the features. It is more efficient than a C shell. It works with scripts written in the C shell.
  • The GNU Bourne-Again Shell: It can be used with the Bourne shell. It incorporates Korn and Bourne shell features.

Wipro Interview Preparation

1. Interview Preparation Tips

  • Understand the role for which you are applying. Gather as much information as you can about the job position you're applying for, such as the skill set required, educational requirements, and so on.
  • "Self-confidence" is the first step toward a successful interview. If you're confident enough, you've already completed half of the task. Maintain a positive attitude and a smile on your face at all times.
  • The more you prepare for the interview, the more likely you are to succeed. Acquire a thorough understanding of interview stages, rounds, and questions, among other things. Prepare answers to common HR and management interview questions in advance. Pay close attention to your technical subjects and a final project. You can also read about the company's accomplishments, organizational structure, vision, work-life balance, and so on.
  • Examine your resume to ensure that you have included all pertinent information about yourself and that the information you have provided is accurate to the best of your knowledge. Prepare yourself to respond to any question that may be posed based on your résumé.
  • Make certain you're up to date on the latest technology advancements. You should have a fundamental understanding of current technology trends such as artificial intelligence (AI), big data, and other such topics. Be familiar with the basic computer science principles and programming languages. Practice coding too.

Frequently Asked Questions

1. Is the Wipro interview easy?

It makes no difference whether the Wipro interview is difficult or simple. The truth is that the more you prepare for the interview, the more likely you are to succeed. Acquire a thorough understanding of interview stages, rounds, and questions, among other things. Topics covered include programming languages, logical thinking, computer fundamentals and products/software/projects on which the candidate has recently or previously worked, etc.

2. How to apply for Wipro off campus?

You can also apply to Wipro through recruitment websites, applying on the company's website, attending recruiting drives, using the employee referral system, or consulting with placement experts or groups.

3. What are your strengths and weaknesses?

This is one of the most common questions asked in an HR interview. You should not come across as overconfident in your response to this question. At the same time, addressing your flaws should not make you appear unreliable. Being truthful is a good thing. However, being overly honest during the interview may work against you.

Some of the strengths that can be mentioned in an interview include:-

  • Versatile and focused.
  • Communication skills.
  • Ability to handle pressure.
  • Leadership skills.

The following are some of the flaws that people mention in an interview.

  • Too detail-oriented.
  • Fear of speaking in front of an audience.
  • Self-critical.
    While it's vital to acknowledge your flaws, it's also crucial to explain how you've been working to address them. That's when they'll see you as a person who is continually striving to better himself.

4. Why Wipro?

Wipro is ranked third among India's top IT companies. It is a fantastic company to work for. Here, your qualities will be valued. The organization has good policies and possibilities, and it works in a range of fields and countries. Once inside, you'll have a variety of options based on your skills. Wipro's infrastructure and team management are unquestionably excellent. Work-life balance is excellent too at Wipro.

5. Why should we hire you?

The interviewer is attempting to determine whether or not you are a good fit for their organization. As a result, you must persuade them. You can begin your response by saying, "I am a quick learner who can quickly absorb something new to me." When communicating with someone, remember that it's not just about the words; it's also about how you say them. You can also mention your ability to solve problems, ability to handle pressure, leadership abilities among others. 

6. Where do you see yourself in 5 years?

You should be able to persuade them that you will be staying with the company for a longer period of time. You may say something along the lines of, "I want to be more skilled, more confident, and hold a strong position in your firm."  For experienced professionals, you can start by saying “I want to be recognized as an authority in this field within the next five years. This position will undoubtedly give me an excellent opportunity to do so. I'm looking forward to taking on managerial responsibility in the next few years, especially because I've already worked for a few years. Furthermore, I have the ability to lead initiatives, and if I can deliver, I am confident that this firm will provide me the opportunity to be one of the forerunners.”

7. What is the Wipro Elite Test?

Wipro has launched the Wipro Elite NLTH Hiring Process for freshers across India. It is a National Level Talent Hunt Test to attract the greatest talent in the country. In Wipro Elite, all qualified candidates would have to go through an online evaluation process with three rounds of selection.

  • Aptitude Exam
  • Written Communication  Test
  • Coding test.

Coding Problems

View All Problems
Excel at your interview with Masterclasses Know More
Certificate included
What will you Learn?
Free Mock Assessment
Fill up the details for personalised experience.
Phone Number *
OTP will be sent to this number for verification
+91 *
Change Number
Graduation Year *
Graduation Year *
*Enter the expected year of graduation if you're student
Current Employer
Company Name
College you graduated from
College/University Name
Job Title
Job Title
Engineering Leadership
Software Development Engineer (Backend)
Software Development Engineer (Frontend)
Software Development Engineer (Full Stack)
Data Scientist
Android Engineer
iOS Engineer
Devops Engineer
Support Engineer
Research Engineer
Engineering Intern
QA Engineer
Product Manager
Product Designer
Backend Architect
Program Manager
Release Engineer
Security Leadership
Database Administrator
Data Analyst
Data Engineer
Non Coder
Please verify your phone number
Resend OTP
By clicking on Start Test, I agree to be contacted by Scaler in the future.
Already have an account? Log in
Free Mock Assessment
Instructions from Interviewbit
Start Test