Which framework is commonly used for building single-page applications (SPAs) and is known for its flexibility and performance?
- Angular
- Express.js
- React
- Vue.js
React is commonly used for building single-page applications (SPAs) due to its flexibility and high performance. It allows developers to create dynamic and responsive user interfaces efficiently.
In SQL, the UPDATE statement is used to _______ data in a database.
- Delete
- Insert
- Modify
- Select
In SQL, the UPDATE statement is used to modify or update existing records in a database. It allows you to change the values of one or more columns in a specified table.
Which Git command is used to abort a merge in progress due to conflicts?
- git abort
- git merge --abort
- git merge --cancel
- git reset --merge
The correct Git command to abort a merge in progress due to conflicts is git merge --abort. This command cancels the merge operation and returns the working directory to the state before the merge started.
When resolving a merge conflict in Git, it's essential to communicate and collaborate with _______ to ensure the changes are correctly integrated.
- All contributors
- Code reviewer
- Project manager
- Team members
When resolving a merge conflict in Git, it's essential to communicate and collaborate with team members to ensure the changes are correctly integrated. Collaboration is crucial to understanding conflicting changes and finding the best resolution.
How does MongoDB handle relationships between data?
- Embedding and Referencing
- Indexing
- Joins
- Sharding
MongoDB handles relationships between data through embedding and referencing. Embedding involves storing related data within the same document, while referencing involves using references to link documents.
You're designing an application that requires finding the shortest path between two nodes in a graph. Which algorithm would you choose and why?
- A* Algorithm
- Breadth-First Search (BFS)
- Depth-First Search (DFS)
- Dijkstra's Algorithm
Dijkstra's Algorithm is the preferred choice for finding the shortest path in a graph. It guarantees the shortest path in weighted graphs, making it suitable for scenarios where accurate distance calculations are crucial, such as network routing.
How does CDN (Content Delivery Network) utilize caching for performance optimization?
- Caches content on multiple servers globally
- Disables caching for faster content retrieval
- Relies solely on client-side caching
- Utilizes a single server for caching
CDNs cache content on multiple servers globally, reducing latency by serving content from the nearest server to the user. This optimizes performance by minimizing the distance data travels.
In error handling, _______ refers to the process of preserving data or program state when an error occurs.
- Checkpointing
- Compensation
- Recovery
- Rollback
In error handling, checkpointing refers to the process of preserving data or program state when an error occurs. This helps in restarting from a known point after the occurrence of an error.
Which tool in Browser Developer Tools is used to analyze the performance of a web page?
- Application
- Console
- Elements
- Performance
The "Performance" tool in Browser Developer Tools is used to analyze the performance of a web page. It provides a timeline of events, helping developers identify bottlenecks and optimize page speed.
Which front-end framework allows developers to build interactive user interfaces using HTML templates and JavaScript?
- Angular
- Bootstrap
- React
- Vue.js
Vue.js allows developers to build interactive user interfaces using HTML templates and JavaScript. It is known for its simplicity and ease of integration.