Master technical and career interviews with structured answers—short definition, real examples, pitfalls, and how to answer in 60–90 seconds.
Short answer: Unit testing involves testing the smallest parts of an application (units) independently to ensure they work correctly. It is important because it helps detect bugs early, improves code quality, supports re…
Short answer: A good unit test is: Isolated: Tests one unit without external dependencies. Repeatable: Produces the same results every run. Fast: Executes quickly to allow frequent runs. Automated: Runs without manual in…
Short answer: Focus on testing: Critical business logic. Edge cases and boundary conditions. Public methods and APIs. Error handling and exception paths. Code that is prone to bugs or complex. Real-world example (ShopNes…
Short answer: Unit Testing: Tests individual units in isolation. Integration Testing: Tests interaction between multiple components or systems. Functional Testing: Tests end-to-end functionality from the user's perspecti…
Short answer: Challenges include: Managing external dependencies and state. Writing tests for legacy or tightly coupled code. Maintaining tests as code evolves. Ensuring tests are meaningful and not brittle. Balancing te…
Short answer: Eventual consistency is a consistency model used in distributed systems where updates to data will propagate and eventually become consistent across all nodes, but not necessarily immediately. Explain a bit…
Short answer: The DISTINCT keyword is used to return only unique values in the result set, removing any duplicate rows. Example code SELECT DISTINCT Country FROM Customers; This will return a list of unique countries fro…
Short answer: The UNION operator combines the result sets of two or more SELECT queries into a single result set and removes duplicate records. All SELECT queries must have the same number of columns with compatible data…
Short answer: CHAR: A fixed-length string data type. It always reserves the same amount of space regardless of the string's length. Use case: When the length of the string is known and consistent. VARCHAR: A variable-len…
Short answer: The LIMIT clause is used to specify the number of records returned by a SELECT query. It is commonly used to restrict the number of rows, especially for pagination. Example code SELECT * FROM Employees LIMI…
Short answer: NULL represents the absence of a value in a column. It is not the same as an empty string or zero. Handling NULL: To check for NULL, use IS NULL or IS NOT NULL. To handle NULL in queries, use COALESCE() (re…
Short answer: And does not log individual row deletions. Explain a bit more Cannot be rolled back (in most databases). And does not log individual row deletions. Cannot be rolled back (in most databases). nd does not log…
Short answer: TRUNCATE: Deletes all rows in a table, but the table structure remains. It is faster and does not log individual row deletions. Cannot be rolled back (in most databases). Resets auto-increment counters. DEL…
Short answer: An Index is a database object that speeds up the retrieval of rows from a table by creating a data structure (often a B-tree). Indexes improve the performance of SELECT queries but can slow down INSERT, UPD…
Short answer: The ACID properties ensure reliable processing of database transactions: Real-world example (ShopNest) Checkout wraps stock decrement + order insert in a transaction so you never sell stock you do not have.…
Short answer: Start with gratitude, then move to value: explain why you are excited about the role and why your impact justifies a better package. A post-offer negotiation works best when your ask is anchored in market d…
Short answer: Your hike target should be based on market demand, not only your current CTC. If your skill set is niche or revenue-linked, you can justify a stronger jump than a standard lateral move. Always decide a targ…
Short answer: Treat HR as a partner who must balance budget, internal parity, and candidate closure timelines. When you understand these constraints, your ask becomes easier to approve. Lead with business outcomes and ro…
Short answer: A reasonable increase is one that reflects both market rate and your capability uplift. The right number depends on role criticality, tech stack rarity, and whether you are moving from support to core produ…
Short answer: To negotiate a higher CTC, you must demonstrate higher expected impact. Recruiters can stretch budgets when they can justify your value to hiring managers and finance. Build your case around outcomes, not e…
Short answer: A convincing justification links your compensation ask to measurable business value and future scope. Replace statements like "I worked hard" with clear evidence such as uptime, cost savings, delivery speed…
Short answer: Freshers can negotiate, but the strategy is different: prove readiness, not tenure. If you have internships, strong projects, or competition wins, use them to justify a modest but meaningful revision. Focus…
Short answer: Experienced candidates are evaluated on ownership depth, not just technical skills. Your negotiation should show that you can de-risk delivery, mentor teams, and improve business outcomes quickly. The stron…
Short answer: You can share current salary selectively, but do not let it become the only anchor. Redirect the conversation toward market value and role scope so your future compensation reflects the new responsibility.…
Short answer: Email negotiation should be crisp, evidence-led, and respectful of timeline. A strong mail includes appreciation, rationale, expected range, and a clear next step. Keep it short enough to read in one screen…
Unit Testing C# Programming Tutorial · Testing
Short answer: Unit testing involves testing the smallest parts of an application (units) independently to ensure they work correctly. It is important because it helps detect bugs early, improves code quality, supports refactoring, and provides documentation for expected behavior.
ShopNest unit tests cover pricing and discount rules so a bad coupon change fails in CI before customers see it.
Unit Testing C# Programming Tutorial · Testing
Short answer: A good unit test is: Isolated: Tests one unit without external dependencies. Repeatable: Produces the same results every run. Fast: Executes quickly to allow frequent runs. Automated: Runs without manual intervention. Clear: Easy to understand and maintain. Independent: Does not depend on other tests.
Arrange a cart with 2 items → Act Checkout() → Assert total and that payment was called once.
Unit Testing C# Programming Tutorial · Testing
Short answer: Focus on testing: Critical business logic. Edge cases and boundary conditions. Public methods and APIs. Error handling and exception paths. Code that is prone to bugs or complex.
ShopNest unit tests cover pricing and discount rules so a bad coupon change fails in CI before customers see it.
Unit Testing C# Programming Tutorial · Testing
Short answer: Unit Testing: Tests individual units in isolation. Integration Testing: Tests interaction between multiple components or systems. Functional Testing: Tests end-to-end functionality from the user's perspective.
ShopNest unit tests cover pricing and discount rules so a bad coupon change fails in CI before customers see it.
Unit Testing C# Programming Tutorial · Testing
Short answer: Challenges include: Managing external dependencies and state. Writing tests for legacy or tightly coupled code. Maintaining tests as code evolves. Ensuring tests are meaningful and not brittle. Balancing test coverage and development speed.
ShopNest unit tests cover pricing and discount rules so a bad coupon change fails in CI before customers see it.
SQL & Databases SQL Server Tutorial · SQL
Short answer: Eventual consistency is a consistency model used in distributed systems where updates to data will propagate and eventually become consistent across all nodes, but not necessarily immediately.
How it works: In an eventually consistent system, updates are made to a node and eventually, that update will be propagated to all other nodes. It allows for temporary inconsistencies, but ensures that the system will converge to a consistent state over time. Use cases: Suitable for systems that can tolerate a delay in consistency, like NoSQL databases (Cassandra, DynamoDB) and systems dealing with high availability and massive scale.
SQL & Databases SQL Server Tutorial · SQL
Short answer: The DISTINCT keyword is used to return only unique values in the result set, removing any duplicate rows.
SELECT DISTINCT Country FROM Customers; This will return a list of unique countries from the Customers table.
ShopNest’s SQL Server database stores customers, products, and orders. Good indexes and clear foreign keys keep checkout queries fast and safe.
SQL & Databases SQL Server Tutorial · SQL
Short answer: The UNION operator combines the result sets of two or more SELECT queries into a single result set and removes duplicate records. All SELECT queries must have the same number of columns with compatible data types.
SELECT Name FROM Employees UNION SELECT Name FROM Customers;
ShopNest’s SQL Server database stores customers, products, and orders. Good indexes and clear foreign keys keep checkout queries fast and safe.
SQL & Databases SQL Server Tutorial · SQL
Short answer: CHAR: A fixed-length string data type. It always reserves the same amount of space regardless of the string's length. Use case: When the length of the string is known and consistent. VARCHAR: A variable-length string data type. It only uses as much space as needed to store the string. Use case: When the string length can vary.
CREATE TABLE Example ( fixed_char CHAR(10), variable_char VARCHAR(10) );
SQL & Databases SQL Server Tutorial · SQL
Short answer: The LIMIT clause is used to specify the number of records returned by a SELECT query. It is commonly used to restrict the number of rows, especially for pagination.
SELECT * FROM Employees LIMIT 5; This will return only the first 5 rows from the Employees table.
ShopNest’s SQL Server database stores customers, products, and orders. Good indexes and clear foreign keys keep checkout queries fast and safe.
SQL & Databases SQL Server Tutorial · SQL
Short answer: NULL represents the absence of a value in a column. It is not the same as an empty string or zero. Handling NULL: To check for NULL, use IS NULL or IS NOT NULL. To handle NULL in queries, use COALESCE() (returns the first non-NULL value) or IFNULL().
SELECT Name, IFNULL(Salary, 0) FROM Employees;
ShopNest’s SQL Server database stores customers, products, and orders. Good indexes and clear foreign keys keep checkout queries fast and safe.
SQL & Databases SQL Server Tutorial · SQL
Short answer: And does not log individual row deletions.
Cannot be rolled back (in most databases). And does not log individual row deletions. Cannot be rolled back (in most databases). nd does not log individual row deletions. Cannot be rolled back (in most databases). Resets auto-increment counters. DELETE: Deletes rows based on a condition, and can be rolled back (if using transactions). Slower compared to TRUNCATE. DELETE FROM Employees WHERE Age < 18; -- Deletes only specific rows TRUNCATE TABLE Employees; -- Deletes all rows nd does not log individual row deletions. Cannot be rolled back (in most databases). Resets auto-increment counters. DELETE: Deletes rows based on a condition, and can be rolled back (if using transactions). Slower compared to TRUNCATE.
DELETE FROM Employees WHERE Age < 18; -- Deletes only specific rows TRUNCATE TABLE Employees; -- Deletes all rows
ShopNest’s SQL Server database stores customers, products, and orders. Good indexes and clear foreign keys keep checkout queries fast and safe.
SQL & Databases SQL Server Tutorial · SQL
Short answer: TRUNCATE: Deletes all rows in a table, but the table structure remains. It is faster and does not log individual row deletions. Cannot be rolled back (in most databases). Resets auto-increment counters. DELETE: Deletes rows based on a condition, and can be rolled back (if using transactions). Slower compared to TRUNCATE.
DELETE FROM Employees WHERE Age < 18; -- Deletes only specific rows TRUNCATE TABLE Employees; -- Deletes all rows
ShopNest’s SQL Server database stores customers, products, and orders. Good indexes and clear foreign keys keep checkout queries fast and safe.
SQL & Databases SQL Server Tutorial · SQL
Short answer: An Index is a database object that speeds up the retrieval of rows from a table by creating a data structure (often a B-tree). Indexes improve the performance of SELECT queries but can slow down INSERT, UPDATE, and DELETE operations.
CREATE INDEX idx_employee_name ON Employees(Name);
ShopNest adds an index on Orders(CustomerId, CreatedAt) because “my recent orders” is queried constantly.
SQL & Databases SQL Server Tutorial · SQL
Short answer: The ACID properties ensure reliable processing of database transactions:
Checkout wraps stock decrement + order insert in a transaction so you never sell stock you do not have.
Salary Negotiation Career & HR Interview Guide · Salary Negotiation
Short answer: Start with gratitude, then move to value: explain why you are excited about the role and why your impact justifies a better package. A post-offer negotiation works best when your ask is anchored in market data and your recent outcomes. Keep the tone collaborative so HR sees you as a long-term hire, not a short-term transaction.
This is easiest to do in the first 24 to 48 hours after offer release, before background checks and onboarding steps begin.
Priya received an SDE-2 offer from Flipkart while working at TCS. She thanked the recruiter first, then shared numbers showing she reduced production incidents by 38% and cut API latency by 120 ms in her current role. Rahul, now at Razorpay, helped her present a range rather than a single demand. Flipkart revised her CTC upward and improved the fixed component, and Priya accepted confidently.
Ask once, ask clearly, and support it with proof.
Salary Negotiation Career & HR Interview Guide · Salary Negotiation
Short answer: Your hike target should be based on market demand, not only your current CTC. If your skill set is niche or revenue-linked, you can justify a stronger jump than a standard lateral move. Always decide a target, an acceptable minimum, and a walk-away number before interviews close.
Ananya, a backend engineer at Infosys, got interview calls from Zoho and Freshworks. She realized one role included architecture ownership and weekend release responsibility, so she increased her expected hike ask. Vikram reviewed her compensation sheet and helped her compare fixed pay versus variable components. She negotiated a stronger final number at Zoho with better in-hand salary and accepted.
Hi [Recruiter Name], thank you for the offer details. Based on current market compensation for this scope and my recent outcomes in [domain], I am targeting a total CTC in the range of [X]-[Y], with stronger fixed pay preference. I am very interested in joining and would appreciate if we can review the offer once.
Decide your walk-away number before negotiation starts.
Salary Negotiation Career & HR Interview Guide · Salary Negotiation
Short answer: Treat HR as a partner who must balance budget, internal parity, and candidate closure timelines. When you understand these constraints, your ask becomes easier to approve. Lead with business outcomes and role fit, then discuss compensation structure logically.
Neha was interviewing for a platform lead role at Razorpay while employed at Flipkart. Instead of saying "another company is paying more," she explained that she would own migration risk and 24x7 availability for critical services. Arjun from Zoho helped her rewrite her talking points around business continuity and release stability. HR could not change total CTC much, but increased fixed pay and added a 6-month review commitment, which Neha accepted.
Negotiate in layers: fixed, bonus, then review cycle.
Salary Negotiation Career & HR Interview Guide · Salary Negotiation
Short answer: A reasonable increase is one that reflects both market rate and your capability uplift. The right number depends on role criticality, tech stack rarity, and whether you are moving from support to core product ownership. Evaluate total compensation quality, not just percentage hike.
Karthik worked in support engineering at Infosys and got an SRE role interview at Swiggy. His first instinct was to ask for 30%, but the role required incident leadership and automation ownership across teams. Neha from PhonePe helped him benchmark similar roles in Bengaluru and identify a better range. He negotiated a 47% increase with stronger fixed pay and still met company budget expectations.
Reasonable means market-aligned and sustainable for both sides.
Salary Negotiation Career & HR Interview Guide · Salary Negotiation
Short answer: To negotiate a higher CTC, you must demonstrate higher expected impact. Recruiters can stretch budgets when they can justify your value to hiring managers and finance. Build your case around outcomes, not effort or tenure.
Meera interviewed at CRED for a senior Android role while working at Freshworks. She prepared a scorecard showing app crash-rate reduction, payment success uplift, and release turnaround improvements from her past projects. The recruiter said the band was tight, so Meera offered two structure options. CRED approved a higher CTC with a better fixed portion and a joining bonus to close quickly.
I am very positive about this role. Based on interview scope and the outcomes I have delivered in similar responsibilities, is there flexibility to move the offer closer to [target range]? I am open to discussing structure options to make this workable.
Give alternatives; flexibility increases approval probability.
Salary Negotiation Career & HR Interview Guide · Salary Negotiation
Short answer: A convincing justification links your compensation ask to measurable business value and future scope. Replace statements like "I worked hard" with clear evidence such as uptime, cost savings, delivery speed, or customer impact. Decision-makers approve hikes faster when your story is quantifiable and role-aligned.
Arjun at Zoho wanted a correction after taking on architecture ownership that was previously handled by two senior engineers. He documented migration completion, outage reduction, and faster release cycles over six months. Priya from TCS reviewed his note and advised him to align metrics with team-level business outcomes. HR approved a staged hike with a confirmed review in the next appraisal cycle.
Your best argument is a measurable before-versus-after story.
Salary Negotiation Career & HR Interview Guide · Salary Negotiation
Short answer: Freshers can negotiate, but the strategy is different: prove readiness, not tenure. If you have internships, strong projects, or competition wins, use them to justify a modest but meaningful revision. Focus on fixed pay and learning runway rather than only CTC headline.
Ananya, a final-year student from Pune, got an offer from Infosys and another from a product startup in Chennai. She showed her internship results, including a dashboard feature adopted by 2,000 internal users. Vikram from Razorpay suggested she ask for a better fixed component and an early performance review. The startup increased fixed pay and offered a 6-month review milestone, which she accepted.
As a fresher, negotiate with proof and humility.
Salary Negotiation Career & HR Interview Guide · Salary Negotiation
Short answer: Experienced candidates are evaluated on ownership depth, not just technical skills. Your negotiation should show that you can de-risk delivery, mentor teams, and improve business outcomes quickly. The stronger your leadership evidence, the more room you have to negotiate compensation structure.
Vikram, a senior engineer at HCL, interviewed for a staff role at PhonePe. He highlighted how he mentored 11 engineers and reduced release rollback incidents by 41% across two quarters. Neha from Flipkart helped him frame this as leadership leverage rather than only coding output. PhonePe revised his package with better fixed pay, a buyout component, and clearer bonus terms.
For experienced roles, negotiate based on scope leverage.
Salary Negotiation Career & HR Interview Guide · Salary Negotiation
Short answer: You can share current salary selectively, but do not let it become the only anchor. Redirect the conversation toward market value and role scope so your future compensation reflects the new responsibility. If disclosure is mandatory by policy, share accurate numbers with full breakup context.
Rahul was interviewing at Swiggy while working at TCS and was asked to share current compensation early. He provided the exact breakup and clarified that a large part was one-time retention payout, not recurring income. Karthik from Zoho advised him to pivot the discussion to the new platform ownership scope. The recruiter accepted his reasoning and evaluated him against role band, not his old fixed salary.
Disclose honestly, then re-anchor to market and scope.
Salary Negotiation Career & HR Interview Guide · Salary Negotiation
Short answer: Email negotiation should be crisp, evidence-led, and respectful of timeline. A strong mail includes appreciation, rationale, expected range, and a clear next step. Keep it short enough to read in one screen but specific enough to approve.
Neha got an offer from Infosys while finishing interviews with two other firms. Instead of negotiating on chat, she sent a concise email with three impact metrics from her previous role at CRED and a realistic range. Arjun from Razorpay helped her remove emotional phrases and keep the message business-focused. HR replied the same day, revised the fixed pay, and closed the offer quickly.
Hi [HR Name], Thank you for sharing the offer. I am genuinely excited about this opportunity and would like to discuss compensation once before final acceptance. Based on role scope and my recent outcomes in [domain] (for example: [metric 1], [metric 2], [metric 3]), I am targeting a CTC range of [X]-[Y], with preference for a stronger fixed component. If feasible, please let me know whether we can review this. I am available for a quick call today/tomorrow. Regards, [Your Name]
One clear email beats five vague follow-ups.