Learn › Software Testing › Interview Questions › Company-wise › Cognizant Cognizant Software Testing Interview Questions & Answers Curated interview practice questions with answers. These are practice scenarios, not a verified list of past interview questions.
Solved for Cognizant Start practicing
3 QUESTIONS FREE Sign up or log in to unlock the full question bank and track your progress. Unlock every question and answer, then continue practising company-wise and package-wise.
Sign up free Log in
01 Write test cases for an online money transfer. Show answerValid transfer, insufficient balance, daily limit, wrong beneficiary, OTP failure, network drop mid-transaction, duplicate click and statement update.
02 How do you test an application with no documentation? Show answerTalk to developers and users, explore the product, review similar systems, create notes and mind maps, confirm assumptions and write test cases as you learn.
03 What are the characteristics of a good test case? Show answerClear, concise, independent, repeatable, traceable to a requirement, with precise expected results and tested data.
04 What do you check when testing an API in Postman? Show answerStatus code, response body and schema, headers, response time, error messages for invalid input, authentication (401/403) and that data is saved in the database.
05 What is decision table testing? Show answerList conditions and actions in a table and cover every combination of conditions (rules) — ideal for business rules like loan approval: salary > X AND credit score > Y → approve.
06 What are positive and negative test cases? Show answerPositive cases use valid inputs to confirm expected behaviour; negative cases use invalid inputs to confirm the system handles errors gracefully.
07 What is use case testing? Show answerDesigning tests from user flows described in use cases to verify complete real-world interactions.
08 What is configuration testing? Show answerVerifying the application works across different hardware, software and settings combinations.
09 How do you use JIRA in testing? Show answerLog and track bugs, link them to stories, build dashboards and filters with JQL, manage sprints and generate reports.
10 What is risk-based testing? Show answerPrioritising tests by the likelihood and impact of failure, so critical areas get the most coverage when time is limited.
11 What is accessibility testing? Show answerChecking that people with disabilities can use the product, using screen readers, keyboard navigation, colour contrast and WCAG guidelines.
Show answerJIRA Query Language, used to search issues, for example project = ABC AND status = Open AND priority = High.
13 What is a test environment? Show answerThe hardware, software, data and configuration where testing happens, set up to mirror production as closely as practical.
14 Write test cases for a shopping cart. Show answerAdd, remove, update quantity, price and tax calculation, coupon codes, stock limits, cart persistence after login and checkout navigation.
Show answerSmoke testing checks that the critical features of a new build work (broad and shallow). Sanity testing checks that a specific fix or area works after a change (narrow and deep).
16 How do you test a REST API with authentication? Show answerCheck access with valid, expired and missing tokens, role-based permissions, error codes and that sensitive data is never exposed.
17 Severity vs priority — with an example. Show answerSeverity = impact on the system. Priority = urgency to fix.
Logo misspelt on the homepage → low severity, high priority.
Crash in a rarely used report → high severity, low priority.
Show answerAn API style using HTTP methods on resources identified by URLs, usually exchanging JSON and staying stateless.
Show answerTesting that is continuous and collaborative within each sprint, with testers working alongside developers and product owners from the start.
20 What is a bug triage meeting? Show answerA regular review where QA, development and product assess new bugs and decide severity, priority, owner and target release.
21 What is regression testing, and when do you automate it? Show answerRe-testing existing features after a change. Automate stable, repetitive, high-value flows that run every release.
22 How do you write a good bug title? Show answerState the problem, location and condition briefly, for example 'Checkout button disabled after applying a coupon on the cart page'.
23 What is a test plan and what does it contain? Show answerA document defining scope, approach, resources, schedule, entry and exit criteria, risks and deliverables of testing.
24 How do you test an application when requirements change frequently? Show answerKeep tests modular, prioritise by risk, use exploratory testing, automate stable parts and keep close contact with product owners.
25 Write test cases for a lift (elevator). Show answerMoves to the chosen floor, doors open and close, door sensor stops closing on obstruction, overload alarm, emergency button, behaviour in a power cut, max capacity and the floor display.
26 Explain the bug life cycle. Show answerNew → Assigned → Open → Fixed → Retest → Verified → Closed, with Reopened, Rejected, Deferred and Duplicate as side paths.
27 What is the difference between a test suite and a test run? Show answerA suite is a collection of related test cases; a run is one execution of a set of tests against a build.
28 What are the typical JIRA workflows for bugs? Show answerStatuses like To Do, In Progress, In Review, Ready for QA, Done and Reopened, with transitions that depend on the team's configuration.
29 Difference between black box, white box and grey box testing? Show answerBlack box tests behaviour without code knowledge; white box tests internal logic and paths; grey box uses partial knowledge of the internals.
30 Write a SQL query to find duplicate records. Show answerSELECT email, COUNT(*) FROM users GROUP BY email HAVING COUNT(*) > 1;
31 What is the definition of done? Show answerA shared checklist for when a story is complete, usually including code review, tests passing, no open critical bugs and documentation updated.
32 The developer says "it's not a bug". What do you do? Show answerRe-check the requirement, reproduce with clear steps and evidence (screenshots, logs), discuss with the BA/PO and record the final decision.
33 What are the levels of testing? Show answerUnit, integration, system and acceptance testing, moving from individual components to the complete product in front of users.
34 What is the use of SQL GROUP BY and HAVING in test validation? Show answerThey let testers verify totals and counts per category, such as the number of orders per customer, and compare them with the UI or reports.
35 What is the difference between GET and POST? Show answerGET retrieves data and has parameters in the URL; POST sends data in the body to create or process something.
36 What is state transition testing? Show answerTesting how a system moves between states based on events, for example an order going from placed to paid to shipped to delivered.
37 How do you handle a bug found late in a release cycle? Show answerAssess impact and risk, discuss with product and dev, decide to fix, defer with a workaround or delay release, and document the decision.
38 What is the difference between an error, a defect and a failure? Show answerA human error causes a defect in the code, and when that defect is executed it produces a failure visible to users.
39 What are common HTTP status codes? Show answer200 OK, 201 Created, 204 No Content, 400 Bad Request, 401 Unauthorized, 403 Forbidden, 404 Not Found, 500 Internal Server Error.
40 SQL: find duplicate emails. Show answerSELECT email, COUNT(*)
FROM users
GROUP BY email
HAVING COUNT(*) > 1;
41 How do you test database integrity using SQL? Show answerVerify inserted, updated and deleted rows match UI actions, check constraints, duplicates, NULLs and totals with COUNT and SUM queries.
42 What is a sprint planning meeting and what does QA contribute? Show answerThe team selects stories for the sprint. QA helps estimate testing effort, clarifies acceptance criteria and flags dependencies and risks.
43 How do you reduce the number of defects slipping into production? Show answerShift left with early reviews, improve test design, automate regression, use better test data, add monitoring and learn from escaped defects.
44 What are the seven principles of testing? Show answerTesting shows presence of defects, exhaustive testing is impossible, test early, defects cluster, the pesticide paradox, testing is context-dependent and absence-of-errors is a fallacy.
45 Give an example of equivalence partitioning. Show answerFor a field accepting 1–100: valid class 1–100 (test 50), invalid below 1 (test −5), invalid above 100 (test 150). One value represents each class.
46 What goes into a test plan? Show answerScope (in and out), objectives, approach, environments, schedule, roles, entry/exit criteria, risks and mitigation, deliverables and tools.
47 Explain SQL joins briefly. Show answerINNER returns matching rows, LEFT keeps all left rows, RIGHT keeps all right rows and FULL keeps all rows from both tables.
48 Write test cases for an ATM withdrawal. Show answerValid card and PIN, wrong PIN, three failed attempts, amount above balance, amount above daily limit, invalid denomination, machine out of cash, network failure and receipt printing.
49 What is the difference between DELETE and TRUNCATE? Show answerDELETE removes selected rows and can be rolled back; TRUNCATE quickly removes all rows and resets the table.
50 What is pairwise testing? Show answerA technique that tests all pairs of input values instead of every combination, greatly reducing test cases while catching most defects.
51 What is compatibility testing? Show answerChecking the application works across browsers, devices, operating systems, screen sizes and network conditions.
52 What are the boundary values for an age field that accepts 18–60? Show answerTest 17, 18, 19, 59, 60 and 61.
53 What is defect clustering? Show answerThe observation that a small number of modules contain most defects, so testing should focus on those areas.
54 What is the difference between a bug and an enhancement? Show answerA bug is behaviour that deviates from agreed requirements; an enhancement is a new or improved capability beyond the current requirements.
55 Release is tomorrow and you can't test everything. What now? Show answerRisk-based testing: cover critical user flows, recent changes and high-defect areas first. Clearly communicate the untested risks and get stakeholder sign-off.
56 How do you review test cases? Show answerPeer review for clarity, coverage of requirements, correct expected results, test data and traceability, then update and baseline them.
57 What is CI/CD and how does testing fit? Show answerCode is built and tested automatically on each change; tests are quality gates that stop faulty builds from moving forward.
58 Write test cases for a signup form. Show answerMandatory fields, email format, password rules, duplicate email, terms checkbox, captcha, confirmation email and field length limits.
59 Production has a critical bug. What are your steps? Show answerReproduce and assess impact, inform stakeholders, help developers fix and verify in staging, run regression and check monitoring after the hotfix, then do a post-mortem.
60 Write test cases for a file upload feature. Show answerAllowed and disallowed formats, size limits, empty file, duplicate names, special-character names, cancel upload, slow network and multiple files.