# EY Core CS Questions with Answers

6 previously-asked core cs questions from EY'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 a DML command?

A. INSERT
B. CREATE
C. DROP
D. GRANT

**Answer:** INSERT

**Explanation:** INSERT adds data, so it is Data Manipulation Language; the others are DDL or DCL.

### 2. Which OOP concept binds data and the methods that operate on it into one unit?

A. Encapsulation
B. Inheritance
C. Polymorphism
D. Recursion

**Answer:** Encapsulation

**Explanation:** Encapsulation groups data with its methods and restricts direct access.

### 3. Which data structure follows First In First Out order?

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

**Answer:** Queue

**Explanation:** A queue removes elements in the order they were added, which is FIFO.

### 4. Which SQL join returns all rows from the left table plus matches from the right?

A. Inner join
B. Left join
C. Cross join
D. Self join

**Answer:** Left join

**Explanation:** A left join keeps every left row and fills unmatched right columns with null.

### 5. What is the time complexity of linear search?

A. O(1)
B. O(n)
C. O(log n)
D. O(n^2)

**Answer:** O(n)

**Explanation:** Linear search may check every element, so it is O(n).

### 6. Which protocol encrypts web data in transit?

A. HTTP
B. HTTPS
C. FTP
D. IP

**Answer:** HTTPS

**Explanation:** HTTPS uses TLS to encrypt data between the browser and server.

More EY preparation, including the full recruitment process: https://useastra.in/campus/ey
