# Mphasis Core CS Questions with Answers

8 previously-asked core cs questions from Mphasis'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 of the following is NOT an operating system?

A. Windows
B. Linux
C. Oracle
D. macOS

**Answer:** Oracle

**Explanation:** Windows, Linux, and macOS are operating systems; Oracle is a database management system.

### 2. Which type of memory is volatile and loses its contents when power is off?

A. RAM
B. ROM
C. Hard disk
D. SSD

**Answer:** RAM

**Explanation:** RAM is volatile primary memory; ROM, hard disks, and SSDs retain data without power.

### 3. A SELECT statement in SQL belongs to which sub-language?

A. DDL
B. DML
C. DQL
D. DCL

**Answer:** DQL

**Explanation:** SELECT queries data and is classified as Data Query Language (sometimes grouped under DML).

### 4. Which OOP feature allows the same function name with different parameter lists?

A. Overloading
B. Overriding
C. Inheritance
D. Encapsulation

**Answer:** Overloading

**Explanation:** Function overloading defines multiple functions with the same name but different parameters, resolved at compile time.

### 5. Which data structure is most suitable for implementing recursion?

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

**Answer:** Stack

**Explanation:** Recursive calls use the call stack, which follows Last In First Out order.

### 6. Which IP addressing scheme uses 128-bit addresses?

A. IPv4
B. IPv6
C. MAC
D. TCP

**Answer:** IPv6

**Explanation:** IPv6 uses 128-bit addresses, compared with the 32-bit addresses of IPv4.

### 7. Which program translates an entire high level program into machine code at once?

A. Compiler
B. Loader
C. Linker
D. Interpreter

**Answer:** Compiler

**Explanation:** A compiler translates the whole program before execution; an interpreter runs it line by line.

### 8. In the ACID properties of a transaction, what does A stand for?

A. Atomicity
B. Availability
C. Accuracy
D. Access

**Answer:** Atomicity

**Explanation:** A stands for Atomicity, meaning a transaction executes fully or not at all.

More Mphasis preparation, including the full recruitment process: https://useastra.in/campus/mphasis
