Home Subjects Placement Papers

Placement Papers

TCS, Infosys, Wipro, Cognizant actual papers

271 Q 10 Topics Take Mock Test
Advertisement
Difficulty: All Easy Medium Hard 91–100 of 271
Topics in Placement Papers
Q.91 Easy Capgemini Questions Capgemini
A box contains 3 red balls and 2 blue balls. What is the probability of drawing a red ball?
A 1/5
B 2/5
C 3/5
D 4/5
Correct Answer:  C. 3/5
EXPLANATION

Total balls = 5. Red balls = 3. Probability = 3/5

Test
Q.92 Easy Capgemini Questions Capgemini
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

Test
Q.93 Easy Capgemini Questions Capgemini
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

Test
Q.94 Easy Capgemini Questions Capgemini
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

Test
Q.95 Easy Capgemini Questions 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

Test
Q.96 Easy Capgemini Questions 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

Test
Q.97 Easy Capgemini Questions 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

Test
Q.98 Easy Capgemini Questions 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)

Test
Q.99 Easy Capgemini Questions 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;'

Test
Q.100 Easy Capgemini Questions 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

Test
IGET
IGET AI
Online · Exam prep assistant
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