Showing 351–360 of 654 questions
What is an 'Interface' in OOP?
A
A graphical display
B
A contract that specifies methods a class must implement
C
A type of variable
D
A database connection
Correct Answer:
B. A contract that specifies methods a class must implement
Explanation:
An interface is an abstract type that defines a set of methods that implementing classes must provide.
What does JSON stand for?
A
Java Source Object Notation
B
JavaScript Object Notation
C
Java Standard Object Network
D
JavaScript Online Notation
Correct Answer:
B. JavaScript Object Notation
Explanation:
JSON stands for JavaScript Object Notation, a lightweight data format for data exchange.
What is the function of a 'Router' in networking?
A
To store data
B
To direct data packets between networks
C
To create websites
D
To encrypt files
Correct Answer:
B. To direct data packets between networks
Explanation:
A router is a networking device that directs data packets between different networks based on IP addresses.
What is Machine Learning?
A
Programming machines to perform tasks
B
Teaching machines to learn from data and make predictions
C
Manufacturing computers
D
Operating heavy machinery
Correct Answer:
B. Teaching machines to learn from data and make predictions
Explanation:
Machine Learning is a subset of AI that enables systems to learn from data and improve performance without explicit programming.
What is the purpose of Unit Testing?
A
To test entire applications
B
To test individual components or functions
C
To design user interfaces
D
To manage databases
Correct Answer:
B. To test individual components or functions
Explanation:
Unit testing involves testing individual units or components of code in isolation to ensure they work correctly.
A train travels 120 km in 2 hours and then 150 km in 3 hours. What is the average speed of the train?
A
54 km/h
B
55 km/h
C
56 km/h
D
57 km/h
Correct Answer:
A. 54 km/h
Explanation:
Total distance = 120 + 150 = 270 km. Total time = 2 + 3 = 5 hours. Average speed = 270/5 = 54 km/h
If a number is divisible by both 12 and 18, it must be divisible by:
Explanation:
LCM of 12 and 18 = 36. Any number divisible by both 12 and 18 must be divisible by their LCM, which is 36
What is the compound interest on Rs. 10,000 at 10% per annum for 2 years?
A
Rs. 2,000
B
Rs. 2,100
C
Rs. 2,200
D
Rs. 2,300
Correct Answer:
B. Rs. 2,100
Explanation:
CI = P[(1 + r/100)^n - 1] = 10000[(1.1)^2 - 1] = 10000[0.21] = Rs. 2,100
If 5 workers can complete a job in 12 days, how many days will 8 workers take?
A
7 days
B
7.5 days
C
8 days
D
8.5 days
Correct Answer:
B. 7.5 days
Explanation:
Work = 5 × 12 = 60 worker-days. Days for 8 workers = 60/8 = 7.5 days
A shopkeeper buys an item at Rs. 400 and sells it at Rs. 520. What is his profit percentage?
Explanation:
Profit = 520 - 400 = 120. Profit% = (120/400) × 100 = 30%