Explain a scenario where eventual consistency in a NoSQL database like Cassandra could be advantageous over strong consistency models.

  • Internet of Things (IoT) sensor data
  • Online shopping cart
  • Social media feeds
  • User profiles
In scenarios like social media feeds, eventual consistency in a NoSQL database like Cassandra can be advantageous. Users can see slightly outdated posts temporarily, allowing for better availability and partition tolerance in distributed systems.

Which NoSQL database is designed for high availability and partition tolerance?

  • Apache Cassandra
  • CouchDB
  • MongoDB
  • Redis
Apache Cassandra is designed for high availability and partition tolerance, making it suitable for distributed and fault-tolerant systems. It follows the principles of the CAP theorem.

You're designing a responsive website. Which CSS technique would you use to ensure the layout adjusts according to the screen size?

  • Flexbox
  • Floats
  • Grid Layout
  • Media Queries
Media Queries are used in CSS to apply different styles based on the characteristics of the device or screen. It's a key technique in creating responsive designs.

What is a merge conflict in version control systems like Git?

  • A conflict that arises when merging branches with conflicting changes
  • A conflict that occurs during code review
  • A situation where branches are automatically merged without issues
  • A smooth integration of code changes
A merge conflict in Git happens when there are conflicting changes in the branches being merged. This occurs when changes in one branch cannot be automatically merged with the changes in another branch, requiring manual resolution.

What is the difference between "git merge" and "git rebase"?

  • Both commands have the same effect
  • Merging preserves the commit history, while rebasing rewrites it
  • Merging rewrites the commit history, while rebasing preserves it
  • None of the above
The key difference is that "git merge" preserves the commit history by creating a new merge commit, while "git rebase" rewrites the commit history by applying the changes of one branch onto another. Rebase creates a linear, cleaner history but should be used with caution in shared branches.

What does CSS stand for?

  • Cascading Style Sheets
  • Colorful Style Sheets
  • Computer Style Sheets
  • Creative Style Sheets
CSS stands for Cascading Style Sheets. It is a style sheet language used for describing the look and formatting of a document written in HTML.

Which feature of collaboration tools enables developers to automate the process of integrating code changes into a shared repository?

  • Automated Deployment
  • Code Review
  • Code Versioning
  • Continuous Integration
Continuous Integration is a key feature of collaboration tools that automates the process of integrating code changes into a shared repository. It ensures that changes made by multiple developers are continuously integrated, reducing conflicts and enhancing collaboration.

In TDD, what is typically written before the actual code implementation?

  • Design specifications
  • Documentation
  • Tests
  • User manuals
In Test-Driven Development (TDD), tests are typically written before the actual code implementation. Writing tests first guides the development process and ensures that the code meets the expected behavior defined by these tests.

In TDD, what does the term "mocking" refer to?

  • Creating a fake user interface for testing purposes.
  • Generating random test data to evaluate system robustness.
  • Intentionally introducing defects to assess error-handling capabilities.
  • Simulating the behavior of objects or systems that the tested code interacts with, enabling isolated unit testing.
In TDD, "mocking" involves simulating the behavior of objects or systems that the tested code interacts with. This allows for isolated unit testing, ensuring that the focus is on the specific code being tested rather than external dependencies.

Which cloud platform provides services like Virtual Machines, App Services, and Blob Storage?

  • Amazon Web Services (AWS)
  • Google Cloud Platform (GCP)
  • IBM Cloud
  • Microsoft Azure
Microsoft Azure provides services like Virtual Machines, App Services, and Blob Storage. Azure is Microsoft's cloud computing platform, offering a range of services for building, deploying, and managing applications.