Cognizant — Interview Questions
Aptitude · Reasoning · English · CS — Corporate & Campus Interview Prep
50 Questions 5 Topics Take Test
Advertisement
Showing 31–40 of 50 questions
Q.31 Medium Cognizant
What is the main purpose of normalization in databases?
A To increase query speed
B To reduce data redundancy
C To add more tables
D To encrypt data
Correct Answer:  B. To reduce data redundancy
Explanation:

Database normalization organizes data to minimize redundancy and improve data integrity

Take Test
Q.32 Medium Cognizant
Which of the following is a characteristic of Microservices architecture?
A Single large monolithic codebase
B Small, independent, loosely coupled services
C Tightly integrated components
D Single database for all services
Correct Answer:  B. Small, independent, loosely coupled services
Explanation:

Microservices architecture emphasizes small, independent services that communicate through APIs

Take Test
Q.33 Easy 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.34 Easy 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.35 Hard Cognizant
What will be the output? int x = 5; System.out.println(++x + x++);
A 11
B 12
C 13
D 10
Correct Answer:  B. 12
Explanation:

++x increments x to 6 first, then x++ uses 6 and increments to 7. So 6 + 6 = 12

Take Test
Advertisement
Q.36 Easy Cognizant
Which of the following is an advantage of Cloud Computing?
A Limited scalability
B No internet required
C On-demand resource availability and cost efficiency
D Complete data isolation
Correct Answer:  C. On-demand resource availability and cost efficiency
Explanation:

Cloud computing provides scalability, flexibility, and pay-as-you-go pricing models

Take Test
Q.37 Medium Cognizant
If a number is multiplied by 0.5 and then by 4, what percentage of the original number is the result?
A 100%
B 150%
C 200%
D 250%
Correct Answer:  C. 200%
Explanation:

Let original = x. After operations: x × 0.5 × 4 = 2x = 200% of x

Take Test
Q.38 Medium Cognizant
In a class, the ratio of boys to girls is 3:2. If there are 45 students in total, how many girls are there?
A 15
B 18
C 25
D 30
Correct Answer:  B. 18
Explanation:

Boys:Girls = 3:2, total parts = 5. Girls = (2/5) × 45 = 18

Take Test
Q.39 Easy Cognizant
A password must contain at least one uppercase letter, one digit, and be at least 8 characters long. Which is valid?
A Abc1234
B ABC12345
C abcd1234
D Abcdefgh
Correct Answer:  B. ABC12345
Explanation:

ABC12345 has uppercase (A,B,C), digit (1,2,3,4,5), and is 8+ characters long

Take Test
Q.40 Medium Cognizant
What is the difference between var, let, and const in JavaScript?
A No difference
B var is function-scoped, let/const are block-scoped, const cannot be reassigned
C const cannot be used
D let is obsolete
Correct Answer:  B. var is function-scoped, let/const are block-scoped, const cannot be reassigned
Explanation:

var has function scope, let/const have block scope. const prevents reassignment but let allows it

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