Showing 1–10 of 23 questions
in Cognizant Questions
What is 15% of 80?
EXPLANATION
15% of 80 = 0.15 × 80 = 12
In the number 52,347, what is the place value of 3?
EXPLANATION
In 52,347, the digit 3 is in the hundreds place, so its place value is 300
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
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
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
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
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)
Which data structure uses LIFO (Last In First Out)?
A
Queue
B
Stack
C
Array
D
Tree
EXPLANATION
Stack follows LIFO principle. Queue follows FIFO. Array and Tree are not strictly LIFO/FIFO structures
What will be the output of this pseudocode? x = 5; y = 10; z = x + y * 2; print(z)
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
Find the odd one out: 12, 24, 36, 48, 58
EXPLANATION
12, 24, 36, 48 are all multiples of 12. 58 is not a multiple of 12