If all roses are flowers and some flowers are red, then which statement is true?
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
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?
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':
Benign means harmless, kind, or gentle. Friendly is the closest synonym
Antonym of 'Verbose' is:
Verbose means using more words than necessary. Concise is its opposite—using few words
Advertisement
Which data structure uses LIFO (Last In First Out)?
Stack follows LIFO principle. Queue follows FIFO. Array and Tree are not strictly LIFO/FIFO structures
In OOP, what is inheritance?
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?
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(310) in Java?
Both operands are integers, so integer division is performed: 310 = 3 (truncated)
What is the main purpose of normalization in databases?
Database normalization organizes data to minimize redundancy and improve data integrity
Which of the following is a characteristic of Microservices architecture?
Microservices architecture emphasizes small, independent services that communicate through APIs
What does REST API stand for?
REST stands for Representational State Transfer, an architectural style for web services
In a relational database, a Primary Key must be:
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++);
++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?
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?
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?
Boys:Girls = 3:2, total parts = 5. Girls = (52) × 45 = 18
A password must contain at least one uppercase letter, one digit, and be at least 8 characters long. Which is valid?
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?
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?
In 52,347, the digit 3 is in the hundreds place, so its place value is 300