Indexes speed up data retrieval by creating optimized lookup structures, reducing the number of disk accesses needed to find data.
Q.104Medium
In cybersecurity, what does encryption primarily protect against?
Answer: C
Encryption converts data into unreadable format, protecting it from unauthorized access during transmission and storage.
Q.105Medium
Which sorting algorithm has the best average-case time complexity?
Answer: B
Merge Sort and Quick Sort have O(n log n) average complexity. Merge Sort guarantees this; Quick Sort can degrade to O(n²) in worst case.
Advertisement
Q.106Medium
What is the primary function of a query optimizer in a DBMS?
Answer: B
The query optimizer analyzes different execution strategies and selects the one with minimal resource consumption and execution time.
Q.107Medium
In machine learning basics, what is the purpose of training data in AI models?
Answer: B
Training data is used to teach AI models to recognize patterns. Test data evaluates accuracy; validation data prevents overfitting.
Q.108Medium
Which data structure is best suited for implementing a LRU (Least Recently Used) cache?
Answer: A
LRU cache requires O(1) access and O(1) removal/insertion of least-used items. Hash Map provides O(1) lookup, and Doubly Linked List maintains order efficiently.
Q.109Medium
Which normalization form eliminates transitive dependencies?
Answer: A
3NF removes transitive dependencies where non-key attributes depend on other non-key attributes. BCNF is stricter but 3NF eliminates transitive dependencies.
Q.110Medium
What is the primary purpose of database replication in distributed systems?
Answer: A
Replication maintains copies across nodes for high availability, disaster recovery, and load distribution. It doesn't eliminate backups—they serve different purposes.
Q.111Medium
Which algorithm is commonly used for sorting in most programming language standard libraries?
Answer: A
Modern languages use Introsort which starts with Quicksort (O(n log n) avg) but switches to Heapsort (O(n log n) worst) to avoid worst-case scenarios.
Q.112Medium
In machine learning basics, what is overfitting?
Answer: A
Overfitting occurs when a model memorizes training data including noise, reducing generalization. Regularization and cross-validation help prevent it.
Q.113Medium
Which of the following is a characteristic of NoSQL databases?
Answer: A
NoSQL databases prioritize flexible schemas and horizontal scaling. They may use eventual consistency (BASE model) rather than strict ACID.
Q.114Medium
What is the purpose of database sharding?
Answer: A
Sharding partitions data based on a key (e.g., user ID) across servers. This horizontal scaling improves performance and handles large datasets efficiently.
Q.115Medium
In AI/ML, what does a neural network's activation function do?
Answer: A
Activation functions (ReLU, Sigmoid, Tanh) add non-linearity, allowing neural networks to learn non-linear relationships. Without them, networks become linear classifiers.
Q.116Medium
Which of the following best describes microservices architecture?
Answer: A
Microservices decompose applications into loosely-coupled, independently deployable services. This enables scalability, flexibility, and technology diversity.
Q.117Medium
What is the purpose of connection pooling in database management?
Answer: A
Connection pooling maintains a pool of reusable connections, reducing the cost of opening/closing connections repeatedly. This significantly improves application performance.
Q.118Medium
Which sorting algorithm is most efficient for nearly sorted data?
Answer: A
Insertion Sort has O(n) best-case complexity for nearly sorted data. Other algorithms don't exploit this, maintaining O(n log n) regardless of initial order.
Q.119Medium
In cloud security, what is the principle of least privilege?
Answer: A
Least privilege minimizes security risk by restricting access. Users get only permissions needed for their role, reducing damage from compromised accounts.
Q.120Medium
Which of the following is NOT a characteristic of relational databases?
Answer: B
Relational databases have fixed schemas. Flexible schemas are a characteristic of NoSQL databases like MongoDB.