Associate Programmer Analyst

Associate Programmer Analyst Interview Questions and Answers

Updated 8 Aug 2025

Asked in TCS

2d ago

Q. What are the differences between lists and tuples?

Ans.

Lists are mutable and ordered, while tuples are immutable and ordered collections in Python.

  • Mutability: Lists can be modified (e.g., list.append(1)), while tuples cannot (e.g., tuple[0] = 1 raises an error).

  • Syntax: Lists use square brackets [] (e.g., myList = [1, 2, 3]), while tuples use parentheses () (e.g., myTuple = (1, 2, 3)).

  • Performance: Tuples are generally faster than lists for iteration due to their immutability.

  • Use Cases: Lists are used for collections of items that ...read more

6d ago

Q. Write a program to add two variables.

Ans.

Adding two variables involves summing their values to produce a new result, often used in programming and calculations.

  • Variables can hold different data types, such as integers or floats. Example: int a = 5; int b = 10; int sum = a + b;

  • In programming, addition can be performed using the '+' operator. Example: float x = 2.5; float y = 3.5; float total = x + y;

  • When adding arrays, you may need to iterate through elements. Example: for (int i = 0; i < array.length; i++) { sum += ...read more

Are these interview questions helpful?

Interview Experiences of Popular Companies

UBS Logo
3.9
 • 354 Interviews
View all
Interview Tips & Stories
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
Associate Programmer Analyst Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+

Reviews

10L+

Interviews

4 Cr+

Salaries

1.5 Cr+

Users

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2025 Info Edge (India) Ltd.

Follow Us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter
Profile Image
Hello, Guest
AmbitionBox Employee Choice Awards 2025
Winners announced!
awards-icon
Contribute to help millions!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos
Add office benefits
Add office benefits