Showing 51–55 of 55 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.