What is the output of: System.out.println(3 10 ) in Java?
A 3.333 B 3 C 3.33 D 4
Both operands are integers, so integer division is performed: 3 10 = 3 (truncated)
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
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
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
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
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++);
A 11 B 12 C 13 D 10
++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
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%
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?
A 15 B 18 C 25 D 30
Boys:Girls = 3:2, total parts = 5. Girls = (5 2 ) × 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
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
var has function scope, let/const have block scope. const prevents reassignment but let allows it
In the number 52,347, what is the place value of 3?
A 3 B 30 C 300 D 3000
In 52,347, the digit 3 is in the hundreds place, so its place value is 300
What is 15% of 80?
A 10 B 12 C 15 D 20
15% of 80 = 0.15 × 80 = 12
If a car travels at 60 km/h for 2 hours and 40 km/h for 3 hours, what is the average speed?
A 48 km/h B 50 km/h C 52 km/h D 54 km/h
Total distance = 60×2 + 40×3 = 120 + 120 = 240 km. Total time = 2 + 3 = 5 hours. Average = 5 240 = 48 km/h
If the cost price of an item is Rs. 400 and it is sold at a loss of 15%, what is the selling price?
A Rs. 340 B Rs. 350 C Rs. 360 D Rs. 380
Loss = 15% of 400 = 60. Selling Price = 400 - 60 = Rs. 340
Two pipes A and B can fill a tank in 12 hours and 18 hours respectively. If both pipes are opened together, how long will it take to fill the tank?
A 6.5 hours B 7.2 hours C 8.5 hours D 9 hours
Rate of A = 12 1 per hour. Rate of B = 18 1 per hour. Combined rate = 12 1 + 18 1 = 36 3 + 36 2 = 36 5 . Time = 5 36 = 7.2 hours
A person spends 30% of his income on food, 40% on rent, and 20% on utilities. If his remaining income is Rs. 5,000, what is his total income?
A Rs. 45,000 B Rs. 50,000 C Rs. 55,000 D Rs. 60,000
Percentage spent = 30 + 40 + 20 = 90%. Remaining = 10% = 5,000. Total income = 5,000 × 10 = Rs. 50,000
A shopkeeper marks up goods by 50% and gives a discount of 20%. What is his profit percentage?
A 20% B 25% C 30% D 35%
Let CP = 100. Marked Price = 150. After 20% discount: SP = 150 × 0.8 = 120. Profit = 20%
A bag contains 5 red balls, 7 blue balls, and 8 green balls. What is the probability of drawing a red ball?
A 4 1 B 5 1 C 20 7 D 20 5
Total balls = 5 + 7 + 8 = 20. Probability of red = 20 5 = 4 1
If a sequence is 2, 5, 10, 17, 26, what is the next number?
A 35 B 37 C 39 D 41
Differences: 3, 5, 7, 9... next difference is 11. So 26 + 11 = 37