# LTIMindtree Core CS Questions with Answers

8 previously-asked core cs questions from LTIMindtree's hiring process, each with the correct answer and a worked explanation. Written against the company's actual test pattern.

_Source: Astra (https://useastra.in). Updated 2026-09-05._

### 1. Which data structure allows O(1) insertion and deletion at both ends?

A. Array
B. Deque
C. Stack
D. Queue

**Answer:** Deque

**Explanation:** A double ended queue supports constant time add and remove at both the front and the back.

### 2. In the ACID properties, what does C stand for?

A. Concurrency
B. Consistency
C. Caching
D. Control

**Answer:** Consistency

**Explanation:** C stands for Consistency, meaning a transaction moves the database from one valid state to another.

### 3. When a subclass provides a method with the same signature as its parent, this is called?

A. Overloading
B. Overriding
C. Hiding
D. Shadowing

**Answer:** Overriding

**Explanation:** Redefining a parent method with the same signature in a subclass is overriding.

### 4. Which of the following is a page replacement algorithm?

A. LRU
B. SJF
C. FCFS only
D. RAID

**Answer:** LRU

**Explanation:** Least Recently Used (LRU) is a page replacement algorithm that evicts the least recently used page.

### 5. Which of the following protocols is connection oriented?

A. TCP
B. UDP
C. IP
D. ICMP

**Answer:** TCP

**Explanation:** TCP establishes a connection and guarantees reliable delivery; UDP is connectionless.

### 6. Which C preprocessor directive is used to include a header file?

A. #define
B. #include
C. #import
D. using

**Answer:** #include

**Explanation:** #include tells the preprocessor to insert the contents of a header file.

### 7. Which data structure is used to evaluate a postfix expression?

A. Queue
B. Stack
C. Tree
D. Graph

**Answer:** Stack

**Explanation:** A stack holds operands and applies operators as they appear, evaluating postfix expressions.

### 8. What does the query SELECT * FROM employees return?

A. All columns and all rows of the table
B. Only the first row
C. Only the primary key column
D. Only the column names

**Answer:** All columns and all rows of the table

**Explanation:** The asterisk selects every column, and with no WHERE clause it returns every row.

More LTIMindtree preparation, including the full recruitment process: https://useastra.in/campus/ltimindtree
