Which protocol is used for sending emails over the Internet?

  • SMTP
  • FTP
  • HTTP
  • TCP
The correct option is "SMTP," which stands for Simple Mail Transfer Protocol. SMTP is a protocol used for sending and receiving emails over the Internet. It works in conjunction with other protocols like POP3 or IMAP for email retrieval and delivery. SMTP facilitates the transfer of emails between servers and enables communication between email clients and servers.

The _________ scheduling algorithm selects the process with the highest priority for execution.

  • First Come First Serve
  • Priority-based
  • Round Robin
  • Shortest Job Next
In Priority-based scheduling, processes are executed based on their priority levels, with higher-priority processes being selected over lower-priority ones. This ensures that critical tasks or processes with urgent needs are handled promptly.

The _______ method is used to remove the last element from an array in JavaScript.

  • pop
  • removeLast
  • deleteLast
  • splice
The correct option is "pop." In JavaScript, the "pop" method is used to remove the last element from an array and returns that element. This method modifies the array it is called on. The other options ("removeLast," "deleteLast," and "splice") either do not exist as array methods in JavaScript or do not specifically remove the last element from an array.

Transactions in RDBMS follow the ___________ properties to ensure data integrity and consistency.

  • ACID
  • CRUD
  • DDL
  • DML
ACID (Atomicity, Consistency, Isolation, Durability) properties are fundamental principles that guarantee reliability and accuracy in database transactions. Atomicity ensures that all operations in a transaction are completed successfully or none at all, maintaining data integrity. Consistency ensures that a transaction brings the database from one valid state to another, preserving data correctness. Isolation ensures that transactions are independent of each other, preventing interference between concurrent transactions. Durability guarantees that once a transaction is committed, its changes are permanently saved, even in the event of system failures. CRUD (Create, Read, Update, Delete) is a set of basic operations for manipulating data but doesn't encompass the principles necessary for transaction management. DML (Data Manipulation Language) and DDL (Data Definition Language) are SQL categories for manipulating and defining data structures, respectively, but they don't specifically address transactional properties. Therefore, ACID properties are the correct choice for ensuring data integrity and consistency in transactions.

Which protocol is responsible for resolving domain names to IP addresses?

  • DNS
  • FTP
  • HTTP
  • SMTP
The protocol responsible for resolving domain names to IP addresses is DNS (Domain Name System). DNS translates human-readable domain names into IP addresses that computers use to communicate over the Internet.

You're designing a banking application where users transfer funds between accounts. How would you ensure that such transactions adhere to the principles of ACID properties?

  • Employ database locks
  • Implement two-phase commit protocol
  • Use distributed transactions
  • Utilize optimistic concurrency control
Implementing database transactions

What is the time complexity of reversing a linked list iteratively and recursively?

  • Iterative: O(log n) Recursively: O(log n)
  • Iterative: O(n log n) Recursively: O(n log n)
  • Iterative: O(n) Recursively: O(n^2)
  • Iterative: O(n^2) Recursively: O(n)
The time complexity of reversing a linked list iteratively is O(n), where n is the number of nodes in the list. This is because in each iteration, you only need to traverse the list once to reverse the pointers. However, the time complexity of reversing a linked list recursively is also O(n), but with a caveat. If the recursive approach is not optimized, it can lead to a time complexity of O(n^2) due to repeatedly traversing the list for each recursive call. Therefore, it's crucial to implement the recursive reversal with proper base cases and efficient pointer manipulation to achieve O(n) time complexity.

What is the role of a Scrum Master in Agile development?

  • Facilitates the Scrum process
  • Manages the project budget
  • Reviews and approves user stories
  • Writes code independently
The role of a Scrum Master in Agile development is to facilitate the Scrum process. This includes coaching the team on Agile practices, removing impediments, and fostering collaboration among team members. The Scrum Master acts as a servant-leader, ensuring the team follows Scrum principles and helping to optimize their productivity. They do not manage the budget, write code independently, or review/approve user stories, as those tasks are typically handled by other roles within the Agile framework.

What is the role of Boyce-Codd Normal Form (BCNF) in database design?

  • Enhances query performance
  • Minimizes data redundancy and dependency
  • Optimizes data storage
  • Simplifies data retrieval and manipulation
BCNF ensures that every determinant in a table is a candidate key, minimizing redundancy and dependency. It's crucial for eliminating anomalies in data and maintaining database integrity.

The ___________ is responsible for managing file system metadata and maintaining file system consistency.

  • File Allocation Table (FAT)
  • File System Driver
  • File System Manager
  • Master File Table (MFT)
The File System Manager is a crucial component responsible for managing file system metadata, including directory structures, file attributes, and access control information. It ensures file system consistency by handling tasks such as disk allocation, file organization, and maintenance of file integrity. Without a robust File System Manager, file operations and data access within the file system would be inefficient and prone to errors.