Deloitte — Interview Questions
Aptitude · Reasoning · English · CS — Corporate & Campus Interview Prep
654 Questions 7 Topics Take Test
Advertisement
Showing 431–440 of 654 questions
Q.431 Easy Deloitte
Which data structure uses LIFO (Last In First Out) principle?
A Queue
B Stack
C Array
D Linked List
Correct Answer:  B. Stack
Explanation:

Stack follows LIFO principle where the last element added is the first to be removed

Take Test
Q.432 Easy Deloitte
What is the main purpose of a constructor in a class?
A To delete objects
B To initialize objects
C To perform calculations
D To print data
Correct Answer:  B. To initialize objects
Explanation:

A constructor is used to initialize objects of a class with default or specified values

Take Test
Q.433 Medium Deloitte
In Java, which keyword is used to prevent inheritance?
A private
B protected
C final
D static
Correct Answer:  C. final
Explanation:

The 'final' keyword prevents a class from being subclassed or inherited

Take Test
Q.434 Medium Deloitte
What is the main difference between ArrayList and LinkedList in Java?
A ArrayList is faster for random access
B LinkedList is faster for random access
C Both have same performance
D ArrayList uses more memory
Correct Answer:  A. ArrayList is faster for random access
Explanation:

ArrayList provides O(1) random access, while LinkedList provides O(n) access

Take Test
Q.435 Easy Deloitte
What does 'HTTP' stand for?
A HyperText Transfer Protocol
B High Transfer Text Protocol
C Hyper Transfer Type Protocol
D Hyper Text Type Protocol
Correct Answer:  A. HyperText Transfer Protocol
Explanation:

HTTP stands for HyperText Transfer Protocol, the foundation of data communication on the web

Take Test
Advertisement
Q.436 Easy Deloitte
Which of these is a NoSQL database?
A MySQL
B PostgreSQL
C MongoDB
D Oracle
Correct Answer:  C. MongoDB
Explanation:

MongoDB is a NoSQL database. MySQL, PostgreSQL, and Oracle are relational SQL databases

Take Test
Q.437 Medium Deloitte
In CSS, what does the 'z-index' property control?
A Font size
B Text alignment
C Stacking order of elements
D Background color
Correct Answer:  C. Stacking order of elements
Explanation:

z-index controls the stacking order of overlapping elements on a webpage

Take Test
Q.438 Easy Deloitte
What will be the output of: console.log(typeof 5) in JavaScript?
A int
B number
C integer
D numeric
Correct Answer:  B. number
Explanation:

The typeof operator returns 'number' for numeric values in JavaScript

Take Test
Q.439 Easy Deloitte
A rope of length 30 meters is cut into 5 equal parts. How long is each piece?
A 5 meters
B 6 meters
C 7 meters
D 8 meters
Correct Answer:  B. 6 meters
Explanation:

30 meters / 5 = 6 meters per piece

Take Test
Q.440 Medium Deloitte
If 30% of a number is 45, what is the number?
A 100
B 120
C 150
D 180
Correct Answer:  C. 150
Explanation:

Let number = x. 30% of x = 45. 0.30x = 45. x = 45/0.30 = 150

Take Test
IGET
iget AI
Online · Ask anything about exams
Hi! 👋 I'm your iget AI assistant.

Ask me anything about exam prep, MCQ solutions, study tips, or strategies! 🎯
UPSC strategy SSC CGL syllabus Improve aptitude NEET Biology tips