What does RDBMS stand for in the context of databases?

  • Recursive DBMS
  • Regular DBMS
  • Relational DBMS
  • Relationship DB
RDBMS stands for Relational Database Management System. It is a type of database management system that organizes data into tables, with each table having a unique key.

What is the purpose of primary keys in a relational database?

  • Filter data
  • Identify data
  • Sort data
  • Store data
The purpose of primary keys in a relational database is to uniquely identify each record in a table. They ensure data integrity by preventing duplicate records and are used as references in other tables.

How does the concept of interfaces promote flexibility and modularity in OOP?

  • Interfaces allow for multiple inheritance in OOP.
  • Interfaces are used for implementing data structures.
  • Interfaces define a contract that classes must adhere to.
  • Interfaces restrict access to class methods.
Interfaces in OOP provide a way to define a contract that classes must adhere to, promoting flexibility by allowing different classes to implement the same interface in their own way. This promotes modularity as it enables interchangeable components and reduces code dependencies.

How does HTTPS differ from HTTP in terms of security?

  • Authentication
  • Data Encryption
  • Port Number
  • Protocol
HTTPS uses data encryption to secure the communication between the client and server, while HTTP does not provide this level of encryption. Data encryption ensures that the data exchanged between the client and server is encoded, making it difficult for unauthorized users to intercept and understand the information being transmitted. This encryption is particularly crucial for sensitive data such as login credentials, payment information, and personal details.

What is the difference between an array and a linked list in terms of memory allocation?

  • Dynamic allocation
  • Heap allocation
  • Stack allocation
  • Static allocation
Arrays are statically allocated, meaning their size is fixed at compile time. In contrast, linked lists use dynamic allocation, allowing them to grow or shrink as needed during runtime. Static allocation is primarily used in arrays, where memory is allocated on the stack or heap, while dynamic allocation is more common in linked lists, providing flexibility in memory management.

In a real-time chat application, you need to implement a feature that notifies users when someone is typing a message. How would you accomplish this using JavaScript?

  • Use AJAX polling to check typing status
  • Use WebSocket to send typing status
  • Use oninput event listener
  • Use setTimeout and clearTimeout for delay
Using WebSocket allows real-time communication between clients and the server, making it ideal for notifying users when someone is typing. setTimeout and clearTimeout are more suitable for handling delays and timeouts, not real-time updates. AJAX polling introduces unnecessary overhead and delays. The oninput event listener is used for detecting input changes, not real-time status updates.

___________ is a divide and conquer sorting algorithm.

  • Bubble Sort
  • Insertion Sort
  • Merge Sort
  • Selection Sort
Merge sort is a classic example of a divide and conquer algorithm, where the sorting process involves dividing the array into smaller subarrays, sorting them individually, and then merging them back together in sorted order.

Which Agile methodology emphasizes adaptability and customer collaboration over strict planning?

  • PRINCE2
  • Scrum
  • Six Sigma
  • Waterfall
Scrum is an Agile methodology that emphasizes adaptability and customer collaboration over strict planning. It encourages iterative development, frequent feedback, and a focus on delivering value to customers. Scrum teams are self-organizing and cross-functional, with a Scrum Master facilitating the process rather than dictating tasks. This approach promotes flexibility, continuous improvement, and customer satisfaction by responding to changing requirements throughout the development cycle.

How does Node.js handle clustering for scaling applications?

  • Implements microservices architecture
  • Utilizes Docker containers
  • Utilizes load balancing
  • Utilizes the cluster module
Node.js clustering allows applications to utilize multiple CPU cores efficiently by creating child processes (workers) using the cluster module. Each child process runs on a separate core, enabling parallel processing and improved performance. This approach is particularly effective for scaling applications across multiple cores without relying solely on the single-threaded nature of Node.js.

The _______ pattern is often used in RESTful APIs to provide access to related resources.

  • Composite
  • Composite Entity
  • Facade
  • Repository
The Repository pattern is commonly used in RESTful APIs to abstract the data access layer and provide a simplified interface for accessing related resources. It helps in organizing code and separating concerns by providing a centralized mechanism for handling database operations related to specific resources.