# Wipro Core CS Questions with Answers

8 previously-asked core cs questions from Wipro'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 normal form removes partial dependency of non-key attributes on a composite key?

A. 1NF
B. 2NF
C. 3NF
D. BCNF

**Answer:** 2NF

**Explanation:** Second Normal Form removes partial dependencies, where a non-key attribute depends on only part of a composite primary key.

### 2. Which of the following is a non-linear data structure?

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

**Answer:** Tree

**Explanation:** A tree is non-linear because elements have hierarchical parent-child relationships, unlike linear arrays, stacks, and queues.

### 3. Which comparison-based sorting algorithm has the best average time complexity for general use?

A. Bubble sort
B. Quicksort
C. Selection sort
D. Insertion sort

**Answer:** Quicksort

**Explanation:** Quicksort averages O(n log n) and is generally the fastest in practice among the listed algorithms.

### 4. In OOP, compile time polymorphism is achieved through?

A. Method overloading
B. Method overriding
C. Inheritance
D. Encapsulation

**Answer:** Method overloading

**Explanation:** Overloading (same name, different parameters) is resolved at compile time, so it is compile time polymorphism. Overriding is runtime.

### 5. Which protocol is used to send email between servers?

A. HTTP
B. FTP
C. SMTP
D. SNMP

**Answer:** SMTP

**Explanation:** Simple Mail Transfer Protocol (SMTP) is used to send email; POP3 and IMAP are used to retrieve it.

### 6. Which constraint ensures a column has no duplicate values but allows a single null?

A. Primary key
B. Unique key
C. Not null
D. Check

**Answer:** Unique key

**Explanation:** A unique constraint prevents duplicates but permits one null, unlike a primary key which disallows nulls.

### 7. Which traversal of a binary search tree visits nodes in sorted ascending order?

A. Preorder
B. Inorder
C. Postorder
D. Level order

**Answer:** Inorder

**Explanation:** Inorder traversal (left, root, right) of a BST yields keys in ascending sorted order.

### 8. Which of the following is a valid storage class in the C language?

A. static
B. public
C. private
D. protected

**Answer:** static

**Explanation:** static is a C storage class; public, private, and protected are access specifiers in C++ or Java, not C storage classes.

More Wipro preparation, including the full recruitment process: https://useastra.in/campus/wipro
