Showing 481–490 of 654 questions
What does API stand for?
A
Application Programming Instruction
B
Application Programming Interface
C
Advanced Programming Integration
D
Application Process Integration
Correct Answer:
B. Application Programming Interface
Explanation:
API stands for Application Programming Interface - a set of rules that allows different applications to communicate
In machine learning, what is the purpose of cross-validation?
A
To increase model accuracy by 100%
B
To assess how well a model generalizes to unseen data
C
To reduce the size of the dataset
D
To remove outliers from data
Correct Answer:
B. To assess how well a model generalizes to unseen data
Explanation:
Cross-validation divides data into multiple subsets to evaluate model performance and check if it generalizes well
What is the primary difference between ArrayList and LinkedList in Java?
A
ArrayList is faster for random access; LinkedList is faster for insertion/deletion
B
LinkedList is faster for random access; ArrayList is faster for insertion/deletion
C
They have identical performance
D
ArrayList can only store integers
Correct Answer:
A. ArrayList is faster for random access; LinkedList is faster for insertion/deletion
Explanation:
ArrayList uses arrays (O(1) random access) while LinkedList uses nodes (O(n) random access but O(1) insertion/deletion at ends)
What is normalization in database design?
A
Converting data to uppercase
B
Reducing data redundancy and improving data integrity
C
Making all tables have the same structure
D
Splitting one database into multiple databases
Correct Answer:
B. Reducing data redundancy and improving data integrity
Explanation:
Normalization is the process of organizing data to reduce redundancy and dependency, improving database integrity
What is the main purpose of agile methodology in software development?
A
To eliminate all bugs before release
B
To deliver software incrementally with continuous feedback and adaptation
C
To reduce the number of developers needed
D
To eliminate the need for testing
Correct Answer:
B. To deliver software incrementally with continuous feedback and adaptation
Explanation:
Agile methodology emphasizes iterative development, continuous feedback, and adaptability rather than fixed lengthy development cycles
What is an exception in programming?
A
A feature that all programs must have
B
An error that occurs during program execution that disrupts normal flow
C
A special type of variable
D
A comment in the code
Correct Answer:
B. An error that occurs during program execution that disrupts normal flow
Explanation:
An exception is an event that occurs during program execution that disrupts the normal flow, requiring special handling
If a string in Python is assigned as s = 'hello', what is the output of s[1:4]?
A
'ell'
B
'llo'
C
'hell'
D
'ello'
Explanation:
String slicing s[1:4] returns characters from index 1 to 3 (4 is exclusive): 'e', 'l', 'l' = 'ell'
What is the primary advantage of using NoSQL databases over relational databases?
A
They always provide better performance
B
They can handle unstructured data and scale horizontally more easily
C
They don't require any data validation
D
They are cheaper to maintain
Correct Answer:
B. They can handle unstructured data and scale horizontally more easily
Explanation:
NoSQL databases are designed for flexible schemas, unstructured data, and horizontal scalability across distributed systems
In the context of cybersecurity, what is a firewall?
A
Software that deletes viruses
B
A security system that monitors and controls incoming and outgoing network traffic
C
A type of encryption algorithm
D
A backup system for data
Correct Answer:
B. A security system that monitors and controls incoming and outgoing network traffic
Explanation:
A firewall is a security barrier that filters network traffic based on predetermined rules to protect systems from unauthorized access
What is the value of log₂(8)?
Explanation:
log₂(8) means 2^? = 8. Since 2³ = 8, the answer is 3