Showing 31–40 of 50 questions
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
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
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 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 will be the output? int x = 5; System.out.println(++x + x++);
Explanation:
++x increments x to 6 first, then x++ uses 6 and increments to 7. So 6 + 6 = 12
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
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%
Explanation:
Let original = x. After operations: x × 0.5 × 4 = 2x = 200% of x
In a class, the ratio of boys to girls is 3:2. If there are 45 students in total, how many girls are there?
Explanation:
Boys:Girls = 3:2, total parts = 5. Girls = (2/5) × 45 = 18
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
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