Autocoder

Zensar Interview Questions for Freshers

Last updated 2026-11-19

Zensar's fresher interviews, as commonly reported for IT services firms, mix programming fundamentals, SQL and basic web and cloud knowledge with HR. These eleven worked practice questions cover that range.

For general preparation read how to crack the technical interview; for coding practice use Zensar coding round questions.

RoundsNot published; test plus technical and HR commonly reported
Typical focusPython/Java, SQL, web and cloud basics
CareersCompany's own careers site

Zensar rounds as commonly reported

Zensar's fresher process is not documented in a source we could cite, so this is general: prep material for IT services drives describes an online test with aptitude and coding or technical questions, then technical and HR interviews. Role names, rounds and difficulty vary by campus and cycle, and the invitation you receive is the authority on what to expect.

Focus areas

Hiring status

This page does not track Zensar drives or dates. For anything time-sensitive, use Zensar's own careers site (the careers section of zensar.com) and treat any date quoted on social media or listing sites as unconfirmed until it appears there.

No hiring figures are quoted on this page because there is no sourced statement to cite.

Zensar Interview Questions for Freshers: questions with worked answers

  1. 1

    Why Zensar?

    easy

    Zensar is a mid-sized IT services company, so a fresher can credibly say they want closer exposure to real projects and mentors than very large organisations may offer, without claiming anything you cannot verify. Tie it to a skill you want to grow, such as cloud or data engineering, and to what you have done already. Avoid comparing it unfavourably with other companies.

  2. 2

    Explain class variables versus instance variables in Python.

    medium

    A class variable is defined in the class body and shared by all instances; an instance variable is set on self, usually in __init__, and belongs to one object. Reading an attribute looks on the instance first, then the class. A well-known trap: assigning self.count = 1 creates an instance variable that hides the class one, while a mutable class variable such as a list is shared by every object. Use class variables for constants and counters, and instance variables for per-object state.

  3. 3

    Python is dynamically typed: what is duck typing and how does it relate to polymorphism?

    medium

    Duck typing means an object's suitability depends on the methods it has, not on its declared class: if it has a quack() method, it can be used where a duck is expected. This gives polymorphism without inheritance: len() works on lists, strings and any object defining __len__. The trade-off is that errors appear at run time, so use tests, type hints and tools like mypy to catch them earlier.

  4. 4

    What is the diamond problem and how does Java handle it with default methods?

    hard

    If a class implements two interfaces that both provide a default method with the same signature, the compiler cannot choose, so the class must override the method and may call a specific one with InterfaceName.super.method(). Java avoids the classic C++ diamond problem for state by disallowing multiple inheritance of classes. Python resolves it with the method resolution order (MRO), computed by C3 linearisation.

  5. 5

    List departments that have no employees.

    medium

    Use a LEFT JOIN from departments to employees and keep rows where the employee side is NULL, or use NOT EXISTS. Both express an anti-join; NOT EXISTS is robust against NULLs and often optimised well. Do not use NOT IN with a nullable subquery, since one NULL makes the whole predicate unknown and returns nothing.

    sql
    SELECT d.id, d.name
    FROM departments d
    LEFT JOIN employees e ON e.dept_id = d.id
    WHERE e.id IS NULL;
  6. 6

    Explain recursion using factorial, the call stack and tail recursion.

    easy

    A recursive function solves a problem by calling itself on a smaller input with a base case to stop: fact(n) = n * fact(n - 1) with fact(0) = 1. Each call adds a frame to the call stack, so fact(100000) can cause a stack overflow; Python's default limit is about 1000 frames. Tail recursion has the recursive call as the last action so a compiler could reuse the frame, but neither Python nor Java does this optimisation, so convert deep recursion to loops.

  7. 7

    How does ping work, and what does traceroute show?

    medium

    ping sends ICMP echo request packets and measures the round-trip time to the replies, showing reachability and latency. traceroute sends packets with increasing TTL values; each router that decrements TTL to zero returns an ICMP time-exceeded message, revealing the path hop by hop. Some routers do not answer, shown as asterisks, which does not always mean a fault. Useful for diagnosing where delay or loss begins.

  8. 8

    What is serverless computing? Give an example and a limitation.

    easy

    Serverless means you deploy functions or containers and the cloud provider handles servers, scaling and, typically, billing per execution (AWS Lambda is an example). Benefits: no capacity planning, scale to zero, pay for use. Limitations: cold-start latency, execution time and memory limits, vendor-specific tooling, and difficulty running long stateful workloads. It suits event-driven tasks such as image resizing after an upload.

  9. 9

    Cookies, sessions and JWTs: what is the difference?

    medium

    A cookie is a small piece of data the browser stores and sends with each request to that site. A session keeps user state on the server, usually identified by a session ID stored in a cookie. A JWT is a signed token carrying claims (user ID, expiry) that the server can verify without a lookup, which suits stateless APIs, but cannot be revoked easily before expiry, so keep lifetimes short and use refresh tokens. Store tokens carefully: HttpOnly, Secure cookies reduce XSS exposure.

  10. 10

    What is the time complexity of nested loops and loops that halve the range?

    easy

    Two nested loops of n iterations each cost O(n squared). A loop that multiplies or divides the counter by two each time, such as while (i < n) i *= 2, runs about log2 n times, so O(log n). A loop with an inner loop that halves costs O(n log n). Sequential loops add, nested loops multiply. Always state what n is and consider space as well, for example recursion depth.

  11. 11

    What would you do if you disagreed with your manager's technical approach?

    medium

    Respect the hierarchy but speak up with evidence: prepare a short comparison of options with trade-offs, raise it privately and politely, listen to the reasons, and if the decision stands, commit fully while documenting the risk. If the issue is a serious risk, escalate through the proper channel. Avoid saying you would simply follow orders, or that you would go over their head immediately.

Frequently asked questions

What does Zensar ask freshers?

There is no published list. Expect programming basics, SQL, your project and HR questions.

Is Python or Java preferred?

Use the one on your resume that you can explain deeply.

Does Zensar have a coding round?

Prep material for IT services drives commonly reports one; confirm with your invitation.

Where can I check openings?

On Zensar's own careers site.

Related guides

More in Company Interview Questions

See all in this section