Log In

Don't have an account? Sign up now

Lost Password?

Sign Up

Prev Next

Zensar Interview Guide

Zensar Hiring Process

Overview

Zensar recruits candidates for Junior Software Engineer and Software Test Engineer roles through multiple channels. The selection flow generally includes:

  1. Resume Screening (primarily for Off-Campus & Referral drives)
  2. Online Assessment
  3. Group Discussion (optional depending on need)
  4. Technical Interview
  5. HR Interview

Hiring Channels

Zensar selects candidates through three main routes:

  • On-Campus Recruitment
  • Off-Campus Drives
  • Referral-Based Hiring

Currently, freshers are typically hired for:

  • Junior Software Engineer – 4.2 LPA
  • Software Test Engineer – 4.4 LPA
    (Salary may vary each year based on business conditions.)

Eligibility Requirements

To apply at Zensar, candidates must meet the following criteria:

  • Minimum 60% in 10th, 12th, and graduation/post-graduation.
  • Degrees accepted: BE/B.Tech (all branches), MCA, MCS.
  • Must be open to working on different technology stacks depending on project needs.
  • Since Zensar operates globally with a 24×7 model, candidates must be willing to work in rotational or flexible shifts.

1. Resume Screening (Not required for On-Campus)

Elimination rate: 60%+

For Off-Campus and Referral drives, resumes are filtered using an ATS (Applicant Tracking System) that scores and shortlists candidates.
On-Campus applicants who meet eligibility criteria usually skip this step.


2. Online Assessment

Elimination rate: 65%+

The test is conducted on HirePro and may follow one of two patterns:

Pattern 1

  • Quantitative Aptitude & Logical Reasoning: 30 questions – 30 minutes
  • Technical MCQs: 20 questions – 20 minutes
  • Coding: 2 questions – 45 minutes

Pattern 2

  • Aptitude (Verbal, Logical, Quantitative, Technical): 80 questions – 80 minutes
  • Coding: 2 questions – 30 minutes

3. Group Discussion (GD) – Optional

Elimination rate: 70%+

The GD round is conducted only when necessary:

  • On-Campus: Used when too many students clear the assessment.
  • Off-Campus: Used when openings are limited compared to the number of cleared candidates.

Topics generally revolve around current affairs and recent technological trends, lasting 15–20 minutes.


4. Technical Interview

Elimination rate: 80%+

This round evaluates a candidate’s technical capabilities. It may last up to an hour and includes:

  • Questions on programming languages
  • Coding/problem-solving
  • Resume-based questions
  • Project discussion
  • Internships, certifications, tools, and technologies

Most service-based companies, including Zensar, typically conduct one main technical interview.


5. HR Interview

Elimination rate: 95%+

The final round focuses on personality and cultural fit. Sometimes merged with the technical interview. Questions typically cover:

  • Willingness to relocate
  • Flexibility for night shifts
  • Ability to handle pressure
  • Career goals and general behavioral questions

About Zensar Technologies

  • Zensar Technologies Ltd. is a publicly listed Indian IT and software services company.
  • Founded in 1991.
  • Headquarters: Pune, India.
  • CEO & Managing Director: Ajay S. Bhutoria.
  • Core service areas include Digital Supply Chain, AI, Cloud Solutions, Data Management, and Enterprise Applications.

Most Asked 50 Interview Question in zensar

Question 1:

Do you have any technical certifications?

Explanation:

  • If you have listed certifications in your resume, the interviewer will ask this question.
  • Describe the certifications in detail, including your training, projects, seminars, webinars etc.
  • List only those certifications that are relevant to the job. And co-relate how your certification can help in the job.

Question 2:

What is the extent of your technical expertise?

Explanation:

  • You have to rate your technical skills.
  • The interviewer wants to check how in touch you are with the current technologies.
  • Mention the technologies you have worked with, and how good you are with them.
  • Additionally mentioning technologies like ML, AL, AWS etc which are the most sought after technologies right now will earn you more points.
  • However do not lie, cause they will cross check your answers.

Question 3:

What do you do to improve your technical skills?

Explanation:

  • An employee who is always striving to better themselves, is a valuable asset.
  • The interviewer wants to know how you have tried to better yourself and skills.

Mention methods like :-

  • Reading technical books and journals. (mention the names of a few)
  • Attend online webinars and tutorials regarding the skills.
  • Build a git-hub profile(show your projects to the interviewer)
  • Learning new tools

Question 4:

Give an example of how you apply your technical knowledge in a practical way?

Explanation:

  • This is a behavioral interview type question.
  • You can follow the STAR method to answer questions of this type.
  • Follow the framework and explain how you have applied your technical skills in any project or product. How you did it and what were the results.

Question 5:

What was the recent technical project you worked on? What were your key responsibilities?

Explanation:

  • This is a behavioral interview type question.
  • If you have worked on a project that used the same technologies that were mentioned in the job description/eligibility criteria, try to mention that.
  • Else you can mention any other project.
  • Use the STAR method to answer questions of this type.
  • If the interviewer has mentioned a specific part like your responsibilities, or the challenges you faced, describe that part with more emphasis.

Question 6:

What is the production deployment process you follow?

Explanation:

  • Deployment is the step by step process of making an application ready.
  • It varies from individual to individual and organization to organization.
  • Some of the common models are Waterfall Model, Iterative Model, Agile Model etc.
  • You can follow one of these, or if you have your own mix you can talk about that.
  • Explain your thought process to the interviewer.

Question 7:

What do you like most about the IT industry? What do you enjoy the least about it?

Explanation:

  • Mention the features of IT that you like.
  • For instance you can mention that being able to work with emerging technologies is your favorite feature.
  • Also mention the aspects that you wish would change.

Question 8:

Why is a solution design document important?

Explanation:

  • Solution design document is a document on which the details of a project are written before its implementation.
  • It’s an important document to communicate the technical details of the plan to a team.
  • It also helps organize one’s thoughts before you start working on the project.

Question 9:

Whenever you solve a problem, who do you keep in mind? The end-user, the business, or yourself, and why?

Explanation:

  • The aim of any product is to be of service to someone.
  • It could be the user, the company or the creator.
  • Mention who you think is the one of service.
  • Explain who is the main benefactor for the product developed by you.

Question 10:

How many programming languages do you know?

Explanation:

  • Whatever languages you have mentioned in your resume, tell them here.
  • Sometimes interviewers will ask you to rate yourselves, in the languages you mentioned.
  • Do not rank yourself very high like a 9, because they might ask you advanced level questions which if you are unable to answer will create a negative impression.
  • Whichever language you rate yourself highest in the follow up questions will be mostly from there only.
  • They will also ask questions as to why you prefer that language in particular or why you are stronger there.

Question 11:

What is the use of printf() and scanf() functions?

Explanation:

  • printf() function displays integer, character, float or string values on the screen.
  • %d-displays an integer value
  • %s-displays a string
  • %c-displays a character value
  • %f-displays a floating value.
  • scanf() function takes input from the user.

Question 12:

What is the static variable? What is its use?

Explanation:

A variable which is declared static, is known as a static variable. These variables are able to retain its value between multiple function calls.

Syntax:

static int y=10;//static variable

Static variables are used because these variables can be accessed from anywhere in the program.

Static variables are used as common values and are shared by all the methods.


Question 13:

What is the difference between call by value and call by reference in C?

Explanation:


Question 14:

What is Recursion in C?

Explanation:

Recursion is the process where a function calls itself. This function is known as a recursive function. There are 2 phases of recursion:-

  • Winding phase – when a recursive function calls itself, this phase reaches its end when the condition is fulfilled.
  • Unwinding phase – when the condition is fulfilled, this phase starts and the control is returned to the original call.

Question 15:

What is a pointer in C? What are its uses?

Explanation:

A pointer is a variable referring to the address of a value. When a variable is declared inside a program, the system allocates some memory to it. This memory contains an address number. The variables that hold this address number are called pointer variables.

Syntax: Data_type *p;

P is a pointer variable holding the address number of data_type value.

  Uses of Pointer:-

Pointers are used in accessing elements through an array.  Pointers are used to pass a reference of a variable to another function.


Question 16:

What is a NULL pointer and far pointer?

Explanation:

  • Null Pointer – Null pointer is a pointer that does not refer to any address of value but to NULL.  When “0” is assigned to a pointer of any type, it creates a Null pointer.
  • Far Pointer – A far pointer is a pointer that can access all the 16 segments, i.e. the whole residence memory of the RAM.  It is a 32 bit pointer that obtains information from outside the memory in a given section.

Question 17:

What is a dangling pointer? How is it overcome?

Explanation:

Dangling pointer is a problem that arises when an object is deleted without modifying the value of the pointer. Thus the pointer is now pointing to a deallocated memory.

In other words, if a pointer say A is pointing to a memory location, but another pointer B deletes the memory occupied by A while A is still pointing to that location, A becomes a dangling pointer.

  • The problem is overcome by assigning a NULL value to the dangling pointer.
  • After de-allocating the memory from a pointer variable, the pointer is assigned to a NULL value.
  • Thus the pointer is not pointing to any memory location, therefore it’s no longer a dangling pointer.

Question 18:

What is an infinite loop?

Explanation:

A loop running continuously for an indefinite number of times is called the infinite loop.


Question 19:

What is a command line argument?

Explanation:

The argument passed to the main() function while executing the program is known as a command line argument.


Question 20:

Can we compile a program without the main() function?

Explanation:

We can compile a program without the main() function, however the program won’t be executed. However adding #define, we can compile and run the program without using the main() function.


Question 21:

What is an object and class?

Explanation:

  • Object – It is a collection of methods and classes which represent its state and execute operations.
  • Class – It is used to define new types of data which is then used to create objects.

Question 22:

What do you mean by JVM, JDK and JRE?

Explanation:

  • JVM – Java Virtual Machine. Offers runtime environment for cods to be executed.
  • JRE – Java Runtime Environment. It’s the collection of files that are needed during runtime by JVM.
  • JDK – Java Development Kit. It is a kit which contains the tools necessary to write and execute a program.

Question 23:

How can you restrict inheritance?

Explanation:

By the following methods:

  • Using the final keyword.
  • Making the method final.
  • Using private constructor.
  • Using (//) Javadoc comment

Question 24:

What are static methods and static variables?

Explanation:

They are methods and variables shared by all the objects in a class. Their static nature comes from the class and not from the object itself.


Question 25:

What is enumeration?

Explanation:

It is an interface you can use to access original data structure.


Question 26:

What is the use of ‘this’ keyword in JAVA?

Explanation:

‘this’ keyword is used to refer to a current object, to invoke the current class method or class constructor.

It is also used to pass on as an argument into methods or constructors.


Question 27:

What is the final variable?

Explanation:

In Java, the  final variable is used to restrict the users from updating the variable.  The final variable once assigned can not be changed after that.


Question 28:

Why is JAVA platform independent?

Explanation:

Java is platform independent because of its byte codes which can run on any system regardless of its operating systems.


Question 29:

What are access modifiers in Java?

Explanation:

Access modifiers are special keywords that can restrict the access of a class, constructor, data member and method in another class. They are of 4 types:-

  • Default
  • Private
  • Protected
  • Public.

Question 30:

What is method overloading?

Explanation:

It is a polymorphism technique that allows us to create multiple methods with the same name but different signatures.


Question 31:

What is interpreted language?

Explanation:

An interpreted language executes its statements line by line. Interpreted language codes can run directly from the source code with no intermediary compilation step.


Question 32:

What are lists and tuples?

Explanation:

Lists and tuples are sequence data types.  The objects stored in both the sequences can have different data types.

  • List are represented by square brackets [“”,’’]
  • Tuples are represented by round brackets (“”,””)
  • The difference between the two is that lists are mutable while tuples are immutable. Which means that lists can be modified while tuples can not be modified.

Question 33:

What is pass in Python?

Explanation:

Pass keyword represents a null operation in python. Used for the purpose of filling up empty block code which may execute during runtime, but are yet to be written


Question 34:

What is self in Python?

Explanation:

Self is a keyword that defines an instance of an object of a class. It is explicitly used as the first parameter.


Question 35:

What is slicing in Python?

Explanation:

Slicing is used to break up a list or tuple.

  • Start: it is the starting index from where the list is sliced
  • Stop: It is the ending index where the list is stop
  • Step: It is the number of steps to jump

Syntax:

[start:stop:step]


Question 36:

What is the use of break statement?

Explanation:

  • It is used to terminate the execution of the current loop.
  • Break statement, breaks the current execution and transfer control to outside the current block.

Question 37:

What is an operator in Python?

Explanation:

Operator is a symbol, which is used on some values and produces an output as a result. Operator works on operands.

Operators are of unary, binary or ternary types depending on the number of operands required.

They include:-

  • Arithmetic
  • Relational
  • Assignment
  • Logical
  • Identify
  • Bitwise

Question 38:

What is swapcase() function in Python?

Explanation:

  • It is a string function which converts all uppercase characters into lowercase and vice versa.
  • It is used for altering the existing case of the string.
  • This method creates a copy of the string which contains all the characters in the swap case.

Question 39:

What is the  Python decorator?

Explanation:

It is a powerful tool that allows you to add functionality in an existing code. It is also known as meta-programming.


Question 40:

What is the difference between Python Arrays and lists?

Explanation:


Question 41:

What is DBMS?

Explanation:

DBMS stands for Database Management System. It carries out operations like creation, maintenance and use of a database.


Question 42:

What are tables, fields and record?

Explanation:

  • Tables: Data organized in a model with Rows and Columns is called a table. Rows are horizontal while tables are vertical.
  • Fields: In a table there are a specified number of columns known as fields.
  • Records: There are infinite number of rows which is called a record.

Question 43:

What is Foreign Key?

Explanation:

Foreign Key is a key which links 2 tables.

It is a field or a collection of fields in a table that corresponds to the Primary Key of another table.


Question 44:

What is the difference between DELETE and TRUNCATE?

Explanation:


Question 45:

What is a constraint?

Explanation:

Constraints are limitations on the data type of a given table. Samples of constraints are:

  • Not Null
  • Check
  • Default

Question 46:

What is ACID property in a database?

Explanation:

  • Atomicity – It states each transaction is all or nothing. If one part of the transaction fails, the entire transaction fails.
  • Consistency – It states that data must follow all validation rules. A transaction never leaves the database without being completed.
  • Isolation – Isolation provides concurrency control. It ensures that concurrent property of execution should not be met.
  • Durability – Once a transaction is committed it will remain committed regardless of the situation, power loss, crashes etc.

Question 47:

What is SQL?

Explanation:

SQL stands for Structured Query Language and is used to communicate with the Database. It is a standard language for accessing and manipulating databases.


Question 48:

What is a unique key?

Explanation:

  • A Unique key constraint identifies each record in the database. It provides for the column or set of columns.
  • A unique key is a set of one or more than one field of a table that can uniquely identify a record in a database table.

Question 49:

What is a relationship and what are they?

Explanation:

Relationship is the interconnection of tables within the database. There are various relationships,

  • One to One Relationship.
  • One to Many Relationship.
  • Many to One Relationship.
  • Self-Referencing Relationship.

Question 50:

What is a query?

Explanation:

A query is really a request for data. A DB query is a code written in order to get the information back from the database. You ask the database for something and it answers in the best way it knows with data as a result of a query.


Question 51:

What is Machine Learning?

Explanation:

Machine Learning is the science of getting computers to act in a real-time situation without being programmed explicitly. It is an application of AI and it enables systems to learn automatically and to improve from previous experience.


Question 52:

What is Supervised, Unsupervised and Semi-Supervised learning?

Explanation:

  • Supervised learning – The model is trained on labeled data, and then it predicts based on the labeled data, Therefore it requires a supervisor to train the data.
  • Unsupervised learning – The model is trained on unlabeled data. The model tries to find patterns and relationships in the data and classify them accordingly.
  • Semi-Supervised Learning – It uses some amount of labeled data and a large amount of unlabeled data. The goal is to classify unlabeled data with the help of labeled data.

Question 53:

What are training set and test set in Machine Learning and why are they important?

Explanation:

  • Training set is a set given to the model for training, analyzing and learning.
  • Test set is a set used for testing the model locally before using it in a real time application.

Question 54:

Explain the stages of building a Machine Learning model.

Explanation:

  • Data Collection: Appropriate data is collected using either some algorithm or manually.
  • Data Processing: The collected data is processed by handling all the null values, categories etc.
  • Model Building: The algorithms to create the model is decided and built.
  • Model Evaluation: The model is evaluated using techniques such as accuracy score, z score etc.
  • Model Saving and Testing: The model is saved for future use and real time testing is done.

Question 55:

How does IoT work?

Explanation:

Iot is built on the concept of AI. An IoT device has a sensor which collects data, the cloud facilitates the network between the devices, the software processes and stores the data and finally the UI enables the device to respond to the stimulation.


Question 56:

What is Natural Language Processing?

Explanation:

Natural language processing is a branch of Artificial Intelligence that deals with the conversion of Human Language to Machine Understandable language, so it can be processed by Machine Learning models.


Question 57:

What is IIOT?

Explanation:

IIOT(Industrial Internet of Things) are large scale IoT structures or systems that are used at the industrial level.


Question 58:

What is Deep Learning?

Explanation:

Deep Learning is a subset of machine learning. It is a neural network with multiple layers, which creates a stimulation of the human brain, allowing the model to lean from large amounts of data.


Question 59:

What is Arduino?

Explanation:

It is an open source electronics platform based on easy-to-use hardware and software. Arduino boards can read input and turn it into an output.


Question 60:

What is Neural Network?

Explanation:

Neural Network is a replication of the firing of neurons in our brain, which facilitates learning, although on a less complex scale.


Question 61:

What do you mean by Open-source Hardware?

Explanation:

  • Open source hardware is similar to open source software.
  • Ardunio is open source. The source code for which the Java environment is released under the GPL and C/C++ is under LGPL.

Question 62:

What is Raspberry Pi?

Explanation:

Raspberry Pi is a microcomputer that can be connected to a peripheral device. We can execute a number of tasks in a Raspberry Pi including, creating spreadsheets,  coding, games etc.


Question 63:

How is Raspberry Pi used in IoT?

Explanation:

Raspberry Pi is a platform to develop many IoT based applications. IoT requires a network of devices and software to connect and exchange data. Raspberry Pi can provide this platform for it.


Question 64:

List any two real-life applications of Natural language processing.

Explanation:

  • Google Translate
  • Chat bots
  • Siri, Alexa

Question 65:

What is Ethical Hacking?

Explanation:

Ethical Hacking is when a person is allowed to hack the system with the permission of the owner to find any bug in the system and to fix it.


Question 66:

What is the difference between IP and MAC address?

Explanation:

  • IP Address –  IP address is assigned to a device so that it can be located on the network.
  • MAC Address – MAC Address is a unique serial number assigned to every network interface on every device.

Question 67:

Explain LAN

Explanation:

LAN or Local Area Network is used to connect devices such that they are able to share resources and exchange information. LAN is of two types, wireless LAN and wired LAN.


Question 68:

What is VPN?

Explanation:

VPN or Virtual Private Network is a private Wide Area Network built on the Internet. It allows the creation of a secured tunnel between different networks using the internet. VPN allows a client to connect to a network remotely.


Question 69:

What are Private and Special IP addresses?

Explanation:

  • Private Address: These are specific IPs that are reserved specifically for private use only. These are non rout-able and cannot be used by the devices on the internet.
  • Special Address: IP Range from 127.0.0.1 to 127.255.255.255 are network testing addresses also known as loop-back addresses. These are the special IP addresses.

Question 70:

What is DNS?

Explanation:

DNS is the Domain Name System. It basically translates the domain name of their corresponding IPs. It uses port 53 by default.


Question 71:

What is the main purpose of an OS? What are the different types of OS?

Explanation:

The function of an OS is to execute user programs and make it easier for the users to interact with the system. It is designed to ensure that the system performs better by managing all computational activities.

Types of OS:

  • Batched OS (Example: Payroll System, Transactions Process, etc.
  • Multi-Programmed OS (Example: Windows O/S, UNIX O/S, etc.)
  • Timesharing OS (Example: Multics, etc.
  • Distributed OS (LOCUS, etc.)
  • Real-Time OS (PSOS, VRTX, etc.)

30 Most Asked technical Interview question

1. What is the difference between process and thread?

Explanation:
A process has its own memory space; a thread shares memory within the same process. Threads are lightweight; processes are heavier.


2. Explain deadlock. How do you prevent it?

Explanation:
Deadlock occurs when 4 conditions hold simultaneously: Mutual exclusion, Hold and wait, No preemption, Circular wait.
Prevention breaks at least one of these conditions.


3. What is the difference between an abstract class and an interface?

Explanation:
Abstract class → can have concrete + abstract methods.
Interface → only abstract methods (in older versions), supports multiple inheritance.


4. What is polymorphism? Explain compile-time vs runtime.

Explanation:
Compile-time → method overloading.
Runtime → method overriding via dynamic binding.


5. Explain ACID properties in a database.

Explanation:
Atomicity, Consistency, Isolation, Durability → ensures reliable transactions.


6. What is an index in SQL? Why can indexes slow down INSERT operations?

Explanation:
Indexes speed up SELECT but require updates on INSERT, causing overhead.


7. What is the difference between Primary Key and Unique Key?

Explanation:
PK → no nulls + unique.
Unique Key → allows one null (depends on DB engine).


8. Explain normalization. What problem does it solve?

Explanation:
Removes redundancy and anomalies (update, delete, insert).


9. What is a join? Explain different types of joins.

Explanation:
INNER, LEFT, RIGHT, FULL OUTER joins combine rows based on conditions.


10. Explain difference between TCP and UDP.

Explanation:
TCP → reliable, connection-oriented.
UDP → faster, connectionless, no acknowledgment.


11. What happens when you type a URL into a browser?

Explanation:
DNS resolution → TCP handshake → HTTP request → server processing → response → rendering.


12. Explain multithreading. Why is synchronization required?

Explanation:
Threads run in parallel; synchronization prevents race conditions.


13. What is a Binary Search Tree? What makes it inefficient?

Explanation:
If unbalanced, becomes a linked list → O(n) search.


14. How does HashMap handle collisions?

Explanation:
Using chaining (linked lists) or trees (balanced BST) when large.


15. Explain time complexity of QuickSort.

Explanation:
Best/Average: O(n log n)
Worst: O(n²) (when pivot selection poor)


16. What is dynamic programming? Give an example.

Explanation:
Breaks down problems into overlapping subproblems, stores solutions.
Example: Fibonacci, knapsack.


17. What is the difference between microservices and monolithic architecture?

Explanation:
Microservices → independent deployment, scalable.
Monolithic → tightly coupled, single deployable unit.


18. What is REST API?

Explanation:
Uses HTTP methods, stateless architecture, resource-based URLs.


19. Explain garbage collection in Java.

Explanation:
Automatically removes unused objects to free memory; uses mark-and-sweep.


20. What are design patterns? Explain Singleton.

Explanation:
Reusable solutions to common problems.
Singleton ensures only one instance of class exists.


21. What is a race condition?

Explanation:
Output depends on execution order of threads → requires locks/ synchronization.


22. What is virtual memory?

Explanation:
Uses disk as extension of RAM → paging → avoids memory overflow.


23. Explain OS paging vs segmentation.

Explanation:
Paging → divides memory into fixed blocks.
Segmentation → divides into logical variable-size segments.


24. Explain foreign key constraint.

Explanation:
Ensures referential integrity between tables.


25. What is a stored procedure? Why use it?

Explanation:
Precompiled SQL code → faster, secure, reusable.


26. What is cloud computing? Explain IaaS vs PaaS vs SaaS.

Explanation:
IaaS → infrastructure
PaaS → platform for developers
SaaS → ready software for users


27. How does a compiler differ from an interpreter?

Explanation:
Compiler → translates entire program.
Interpreter → executes line by line.


28. What is an API gateway in microservices?

Explanation:
Single entry point that handles routing, authentication, load balancing.


29. Explain CAP theorem.

Explanation:
Distributed systems can only guarantee two:
Consistency, Availability, Partition Tolerance.


30. What is exception handling? Why is it important?

Explanation:
Used to manage runtime errors and keep program from crashing ungracefully.

Zensar Coding questions

Question 1:

Coding Question: Maximum Number of Handshakes

In this task, you are required to write a  program to calculate the maximum number of handshakes in a meeting. The user will input the number of people (integer n) present in the meeting. Your program should then determine the possible number of handshakes that can occur after everyone is settled.

Write a program that takes an integer input n representing the number of people in a meeting and outputs the maximum number of handshakes possible.


Question 2:

In this task, you are required to write a program that checks whether a given positive integer can be expressed as the sum of two prime numbers. The user will input a positive integer, and your program should determine whether it can be expressed as the sum of two prime numbers.

Write a program that takes a positive integer as input and outputs whether it can be expressed as the sum of two prime numbers. If it is possible, print a message indicating that the integer can be expressed as the sum of two prime numbers.


Question 3:

In this task, you are required to write a program that finds the occurrence of a specific digit in a given number. The user will input an integer, and your program should determine the occurrence count of a digit specified by the user.

Write a program that takes an integer as input and a digit to search for. The program should output the count of occurrences of the specified digit in the given number. If the digit does not occur, the program should output 0.


Question 4:

In this task, you are required to write a program  to find the Nth row of Pascal’s Triangle. Pascal’s Triangle is a mathematical construct where each number is the sum of the two directly above it. The user will input a non-negative integer representing the row number (zero-based index), and your program should output the corresponding row of Pascal’s Triangle.

Write a program that takes a non-negative integer as input and outputs the Nth row of Pascal’s Triangle.


Question 5:

In this task, you are required to write a program  that calculates the factorial of a given number using recursion. The user will input a non-negative integer, and your program should use recursion to find and print the factorial of that number.

Write a program that takes a non-negative integer as input and calculates its factorial using recursion.


Question 6:

In this task, you are required to write a program to sort the elements in an array based on their frequency in descending order. The user will input an array of elements, and your program should sort the elements based on their frequency, with higher frequency elements appearing first.

Write a program that takes an array of elements as input and sorts them in descending order of their frequency.


Question 7:

In this task, you are required to write a program that finds the repeating elements in an array. The user will input an array of elements, and your program should identify and print the elements that occur more than once.

Write a program that takes an array of elements as input and outputs the repeating elements in the array.


Question 8:

In this task, you are required to write a program that removes duplicate elements from an array. The user will input an array of elements, and your program should output the array after removing the duplicate elements.

Write a program that takes an array of elements as input and outputs the array after removing duplicates.


Question 9:

In this task, you are required to write a program that calculates the maximum scalar product (dot product) of two arrays. The user will input two arrays, and your program should find and print the maximum scalar product of the two arrays.

Write a program that takes two arrays as input and calculates their maximum scalar product.


Question 10:

In this task, you are required to write a program that determines whether one array is a subset of another array. The user will input two arrays, and your program should check if all the elements of the second array are present in the first array.

Write a program that takes two arrays as input and checks if the second array is a subset of the first array.


Question 11:

In this task, you are required to write a program that replaces each element in an array with its corresponding rank. The user will input an array of elements, and your program should replace each element with its rank. The rank is determined by the order of elements, with the minimum element having the highest rank.

Write a program that takes an array of elements as input and replaces each element with its rank.


Question 12:

In this task, you are required to write a program that performs both left and right rotations on an array. The user will input an array of elements and the number of positions to rotate. Your program should then rotate the array to the left and right by the specified number of positions.

Write a program that takes an array of elements and the number of positions to rotate as input, and outputs the array after both left and right rotations.


Question 13:

In this task, you are required to write a program that rotates an array using the Juggling Algorithm. The user will input an array of elements and the number of positions to rotate. Your program should use the Juggling Algorithm to rotate the array by the specified number of positions.

Write a program that takes an array of elements and the number of positions to rotate as input, and outputs the array after rotation using the Juggling Algorithm.


Question 14:

In this task, you are required to write a program that counts the sum of numbers in a given string. The user will input a string, and your program should iterate through each character of the string, identifying numeric values and calculating their sum.

Write a program that takes a string as input and outputs the sum of the numbers present in the string.


Question 15:

In this task, you are required to write a program that checks whether two strings are anagrams or not. Two strings are considered anagrams if they contain the same characters, only the order of characters is different. To determine this, your program should count the frequencies of each letter in both strings and check if the frequencies match.

Write a program that takes two strings as input and outputs whether they are anagrams or not.


Question 16:

In this task, you are required to write a program that replaces a particular word in a given string with another word. The user will input a string and two words: the word to be replaced and the word to replace it. Your program should then replace all occurrences of the specified word in the string with the new word.

Write a program that takes a string and two words as input, and outputs the string after the replacement.


Question 17:

In this task, you are required to write a program that finds the maximum profit by buying and selling a share at most twice. The user will input an array representing the prices of the share on different days. Your program should maximize the profit by making at most two transactions, where the second transaction can only start after the first transaction is completed (Buy->Sell->Buy->Sell).

Write a program that takes an array of share prices as input and outputs the maximum profit that can be obtained with at most two transactions.


Question18:

In this task, you are required to write a program that finds the smallest subarray with a sum greater than a given value. The user will input an array of integers and a target sum value. Your program should determine whether there exists a subarray whose sum is greater than the given value. If such a subarray is present, your program should print true, otherwise, print false.

Write a program that takes an array of integers and a target sum as input, and outputs whether there exists a subarray with a sum greater than the given value.


Question 19:

In this task, you are required to write a program that finds the median of two sorted arrays of equal size. The user will input two arrays (arr1[] and arr2[]) of the same size n. Your program should merge these arrays and calculate the median.

Write a program that takes two sorted arrays of the same size as input and outputs the median of the merged array.


Question 20:

In this task, you are required to write a program that finds the maximum value of mat(c, d) – mat(a, b) over all choices of indexes in an n x n matrix mat[n][n], where c > a and d > b. The user will input the matrix of integers.

Write a program that takes an n x n matrix as input and outputs the maximum value of mat(c, d) – mat(a, b) over all valid choices of indexes.


Question 21:

Write a program to perform insertion at the beginning of the singly linked list.


Question 22:

Write a program to perform deletion from the beginning of the singly linked list


Question 23:

Write a program that reverses the linked list by creating a vector, storing the elements of the linked list, and then changing the linked list node data by iterating through the vector in reverse.


Question 24:

Write a program that explores and implements different methods for inserting nodes in the middle of a singly linked list in C.


Question 25:

Write a program that reverses subgroups of nodes in the linked list according to a user-given size. 


Question 26:

Write a program that explores and implements different methods for inserting a node at a given position in a singly linked list


Question 27:

Write a program that allows users to input a new node into the doubly linked list at a specified position according to their demand, considering the position and node data. Explore and implement different methods for achieving this in the C language.


Question 28:

Write a program that covers all possible scenarios for insertion and deletion at various positions within a doubly linked list. Consider insertion and deletion at the beginning, end, and at arbitrary positions to provide a thorough understanding of these operations.


Question 29:

Write a program in the C language to perform insertion at the beginning of a circular linked list, covering both scenarios of an empty list and an already existing list.


Question 30:

Write a program in the C language to perform insertion in the middle of a circular linked list. Consider different scenarios, such as inserting in an empty list or at various positions in an already existing list.

Leave a Comment