Computer Knowledge
Programming, networking, database and OS questions
309 Questions 5 Topics Take Test
Advertisement
Showing 41–50 of 309 questions
Q.41 Medium Database/SQL
What is the normal form that ensures no partial dependencies exist in a relation?
A Third Normal Form (3NF)
B Boyce-Codd Normal Form (BCNF)
C Second Normal Form (2NF)
D First Normal Form (1NF)
Correct Answer:  C. Second Normal Form (2NF)
EXPLANATION

2NF eliminates partial dependencies where non-key attributes depend on part of a composite key. 3NF further eliminates transitive dependencies.

Take Test
Q.42 Hard Database/SQL
What is the primary advantage of using GraphQL over traditional REST APIs in modern application architecture?
A GraphQL always provides better performance
B GraphQL allows clients to request only required data fields, reducing over-fetching
C GraphQL eliminates the need for databases
D REST APIs are completely replaced by GraphQL
Correct Answer:  B. GraphQL allows clients to request only required data fields, reducing over-fetching
EXPLANATION

GraphQL's query language enables clients to specify exact data requirements, eliminating over-fetching and under-fetching issues common in REST.

Take Test
Q.43 Hard Database/SQL
In cybersecurity, what is SQL injection and why is it a critical vulnerability in 2024?
A Injecting SQL commands to execute unauthorized database operations
B A performance optimization technique
C A method to improve database security
D An outdated vulnerability no longer relevant
Correct Answer:  A. Injecting SQL commands to execute unauthorized database operations
EXPLANATION

SQL injection allows attackers to insert malicious SQL code through application inputs, remaining a critical OWASP Top 10 vulnerability despite awareness.

Take Test
Q.44 Hard Database/SQL
Which of the following best describes a distributed transaction and its challenges in microservices architecture?
A Transactions that execute only on primary databases
B Transactions spanning multiple services requiring coordination and handling failures
C Transactions that cannot be executed in microservices
D Local transactions that never require coordination
Correct Answer:  B. Transactions spanning multiple services requiring coordination and handling failures
EXPLANATION

Distributed transactions in microservices require mechanisms like Saga pattern or Two-Phase Commit to maintain consistency across services.

Take Test
Q.45 Hard Database/SQL
In database replication, what is the primary difference between synchronous and asynchronous replication?
A Synchronous is always faster
B Asynchronous waits for replica confirmation; Synchronous does not
C Synchronous waits for replica confirmation; Asynchronous does not
D Both have identical performance characteristics
Correct Answer:  C. Synchronous waits for replica confirmation; Asynchronous does not
EXPLANATION

Synchronous replication waits for replicas to acknowledge writes (safer but slower), while asynchronous replication doesn't wait (faster but less safe).

Take Test
Advertisement
Q.46 Medium Database/SQL
What is the time complexity of searching an element in a balanced Binary Search Tree?
A O(n)
B O(n log n)
C O(log n)
D O(1)
Correct Answer:  C. O(log n)
EXPLANATION

A balanced BST maintains O(log n) search complexity by keeping the tree height logarithmic relative to node count.

Take Test
Q.47 Medium Database/SQL
Which encryption standard is currently recommended for securing data in transit over networks?
A DES
B MD5
C TLS 1.3
D SHA-1
Correct Answer:  C. TLS 1.3
EXPLANATION

TLS 1.3 is the latest, most secure protocol standard for encrypting data in transit, replacing older protocols like SSL and TLS 1.2.

Take Test
Q.48 Medium Database/SQL
In machine learning, what is a confusion matrix primarily used for?
A To train neural networks
B To evaluate classification model performance
C To normalize feature scaling
D To generate random datasets
Correct Answer:  B. To evaluate classification model performance
EXPLANATION

A confusion matrix shows True Positives, True Negatives, False Positives, and False Negatives, enabling comprehensive evaluation of classification accuracy.

Take Test
Q.49 Medium Database/SQL
What is the primary benefit of containerization technology like Docker in modern application deployment?
A Reduces application performance
B Ensures consistency between development and production environments
C Eliminates the need for databases
D Automatically handles all security patches
Correct Answer:  B. Ensures consistency between development and production environments
EXPLANATION

Docker containers package applications with dependencies, ensuring identical execution across different environments.

Take Test
Q.50 Medium Database/SQL
In cloud computing, what does the term 'eventual consistency' refer to?
A Data is immediately consistent across all nodes
B Data will become consistent across distributed systems after some time
C Consistency checks are performed eventually
D Cloud systems never achieve consistency
Correct Answer:  B. Data will become consistent across distributed systems after some time
EXPLANATION

Eventual consistency in cloud systems means that data replicas will converge to the same state after all updates have propagated.

Take Test
IGET
iget AI
Online · Ask anything about exams
Hi! 👋 I'm your iget AI assistant.

Ask me anything about exam prep, MCQ solutions, study tips, or strategies! 🎯
UPSC strategy SSC CGL syllabus Improve aptitude NEET Biology tips