If all roses are flowers and some flowers are red, then which statement is true?
A All roses are red B Some roses are red C No roses are red D Cannot be determined
Roses are a subset of flowers, but we don't know which flowers are red. Some red flowers might not be roses.
Find the odd one out: 12, 24, 36, 48, 58
A 12 B 36 C 48 D 58
12, 24, 36, 48 are all multiples of 12. 58 is not a multiple of 12
If ROSE is coded as 4567, then PETAL is coded as?
A 98214 B 89214 C 98124 D 89124
R=4, O=5, S=6, E=7. Following alphabet position: P=1(9), E=7(8), T=2(9→2 with shift), A=1, L=4. PETAL = 89214
Select the word that is most similar in meaning to 'Benign':
A Harmful B Friendly C Strict D Complex
Benign means harmless, kind, or gentle. Friendly is the closest synonym
Antonym of 'Verbose' is:
A Detailed B Precise C Concise D Extensive
Verbose means using more words than necessary. Concise is its opposite—using few words
Which data structure uses LIFO (Last In First Out)?
A Queue B Stack C Array D Tree
Stack follows LIFO principle. Queue follows FIFO. Array and Tree are not strictly LIFO/FIFO structures
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
Inheritance allows a class to inherit properties and methods from another class (parent/base class)
Which sorting algorithm has the best average case time complexity?
A Bubble Sort B Quick Sort C Insertion Sort D Selection Sort
Quick Sort has O(n log n) average case complexity, which is optimal among comparison-based sorts
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