Capgemini — Interview Questions
Aptitude · Reasoning · English · CS — Corporate & Campus Interview Prep
55 Questions 7 Topics Take Test
Advertisement
Showing 21–30 of 55 questions
Q.21 Easy Capgemini
What does the acronym 'API' stand for?
A Application Programming Interface
B Advanced Protocol Integration
C Application Process Identifier
D Automated Programming Implementation
Correct Answer:  A. Application Programming Interface
Explanation:

API stands for Application Programming Interface, a set of rules for software interaction

Take Test
Q.22 Easy Capgemini
Which of these is NOT a programming language?
A Java
B Python
C HTML
D JavaScript
Correct Answer:  C. HTML
Explanation:

HTML is a markup language, not a programming language. Others are programming languages

Take Test
Q.23 Easy Capgemini
In OOPS, what does 'inheritance' allow you to do?
A Create multiple objects
B Derive a new class from an existing class
C Combine two classes
D Delete a class
Correct Answer:  B. Derive a new class from an existing class
Explanation:

Inheritance allows a new class to be derived from an existing class, inheriting its properties and methods

Take Test
Q.24 Easy Capgemini
What is the correct SQL syntax to select all records from a table named 'Students'?
A SELECT * TABLE Students;
B SELECT * FROM Students;
C FETCH * FROM Students;
D GET * FROM Students;
Correct Answer:  B. SELECT * FROM Students;
Explanation:

The correct SQL syntax is 'SELECT * FROM table_name;'

Take Test
Q.25 Easy Capgemini
What will be the output of: print(5 // 2) in Python?
A 2
B 2.5
C 3
D Error
Correct Answer:  A. 2
Explanation:

The // operator is floor division. 5 // 2 = 2 (integer division, rounded down)

Take Test
Advertisement
Q.26 Easy Capgemini
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.27 Easy Capgemini
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.28 Medium Capgemini
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.29 Medium Capgemini
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.30 Easy Capgemini
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
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