Home Subjects Placement Papers

Placement Papers

TCS, Infosys, Wipro, Cognizant actual papers

271 Q 10 Topics Take Test
Advertisement
Difficulty: All Easy Medium Hard 41–50 of 271
Topics in Placement Papers
Q.41 Easy Cognizant Questions Cognizant
In a relational database, a Primary Key must be:
A Non-unique
B Unique and not null
C Can contain null values
D Can be duplicated
Correct Answer:  B. Unique and not null
EXPLANATION

A Primary Key uniquely identifies each record and cannot contain null values

Take Test
Q.42 Easy Cognizant Questions Cognizant
What does REST API stand for?
A Resource Exchange Standard Transfer API
B Representational State Transfer API
C Reliable Essential Service Transfer API
D Rapid Endpoint Service Technology API
Correct Answer:  B. Representational State Transfer API
EXPLANATION

REST stands for Representational State Transfer, an architectural style for web services

Take Test
Q.43 Easy Cognizant Questions Cognizant
In OOP, what is inheritance?
A Creating multiple instances of a class
B A class acquiring properties of another class
C Hiding internal implementation details
D Creating interfaces
Correct Answer:  B. A class acquiring properties of another class
EXPLANATION

Inheritance allows a class to inherit properties and methods from another class (parent/base class)

Take Test
Q.44 Easy Cognizant Questions Cognizant
Which data structure uses LIFO (Last In First Out)?
A Queue
B Stack
C Array
D Tree
Correct Answer:  B. Stack
EXPLANATION

Stack follows LIFO principle. Queue follows FIFO. Array and Tree are not strictly LIFO/FIFO structures

Take Test
Q.45 Easy Cognizant Questions Cognizant
What will be the output of this pseudocode? x = 5; y = 10; z = x + y * 2; print(z)
A 25
B 30
C 20
D 15
Correct Answer:  B. 30
EXPLANATION

Following order of operations: y * 2 = 10 * 2 = 20. Then x + 20 = 5 + 20 = 25. Wait, output is 25, not 30. Let me recalculate: x + y * 2 = 5 + 10*2 = 5 + 20 = 25

Take Test
Q.46 Easy Cognizant Questions Cognizant
Find the odd one out: 12, 24, 36, 48, 58
A 12
B 36
C 48
D 58
Correct Answer:  D. 58
EXPLANATION

12, 24, 36, 48 are all multiples of 12. 58 is not a multiple of 12

Take Test
Q.47 Easy Cognizant Questions Cognizant
Complete the analogy: Dog : Bark :: Cat : ?
A Meow
B Run
C Jump
D Play
Correct Answer:  A. Meow
EXPLANATION

A dog barks, similarly a cat meows. This is a sound association analogy

Take Test
Q.48 Easy Cognizant Questions Cognizant
Find the missing number in the series: 2, 4, 8, 16, ?, 64
A 24
B 32
C 40
D 48
Correct Answer:  B. 32
EXPLANATION

Each number is double the previous: 2, 4, 8, 16, 32, 64. Pattern is multiplication by 2

Take Test
Q.49 Easy Cognizant Questions Cognizant
The average of five numbers is 30. What is their sum?
A 120
B 130
C 140
D 150
Correct Answer:  D. 150
EXPLANATION

Sum = Average × Count = 30 × 5 = 150

Take Test
Q.50 Easy Cognizant Questions Cognizant
If a < b and b < c, which of the following is true?
A a = c
B a > c
C a < c
D c < a
Correct Answer:  C. a < c
EXPLANATION

By transitivity, if a < b and b < c, then a < c

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