_______ is the process of creating a new class from an existing class in OOP.

  • Abstraction
  • Encapsulation
  • Inheritance
  • Polymorphism
Inheritance is the process of creating a new class from an existing class in OOP. It allows a new class (subclass or derived class) to inherit the properties and behavior of an existing class (superclass or base class).

Which Git command is used to view the branches that have been merged into the current branch?

  • git branch
  • git branch --merged
  • git log
  • git merge
The git branch --merged command is used to view the branches that have been merged into the current branch. It helps identify which branches are safe to delete after merging.

In Google Cloud Platform, what service is used for big data analytics?

  • BigQuery
  • Cloud Storage
  • Datastore
  • Pub/Sub
BigQuery is the Google Cloud Platform service specifically designed for big data analytics. It enables super-fast SQL queries using the processing power of Google's infrastructure, making it suitable for analyzing large datasets.

What feature of collaboration tools allows multiple developers to work on the same codebase simultaneously without interfering with each other's changes?

  • Version Control
  • Code Dependency
  • Code Synchronization
  • Collaboration Sync
The correct option is Version Control. Version control systems, such as Git, enable multiple developers to work on the same codebase concurrently by managing changes, merging edits, and maintaining a version history. This ensures seamless collaboration without conflicts.

In Gitflow, the _______ branch is created from the master branch for emergency fixes.

  • develop
  • feature
  • hotfix
  • release
In Gitflow, the hotfix branch is created from the master branch for emergency fixes. Hotfixes are used to address critical issues in the production environment directly.

In a distributed database system, what challenges might arise in terms of consistency, and how would you address them?

  • Consistency models
  • Distributed transactions
  • Eventual consistency
  • Strong consistency
Challenges in consistency in distributed systems can be addressed through techniques like distributed transactions, ensuring data consistency across multiple nodes.

Granular recovery allows for the restoration of _______ components rather than the entire system.

  • Fine-grained
  • Individual
  • Particular
  • Specific
Granular recovery enables the restoration of specific components or data points, offering a more fine-grained approach instead of restoring the entire system. This is useful for targeted recovery needs.

What command is used to create a new branch in Git?

  • git branch new-branch
  • git checkout -b new-branch
  • git create branch new-branch
  • git new-branch
The correct command to create a new branch in Git is git checkout -b new-branch. This command creates a new branch and switches to it in one step.

You're working on a small project with rapid iterations. Which Git workflow would be most suitable, and why?

  • Centralized Workflow
  • Feature Branch Workflow
  • GitHub Flow
  • Gitflow
For a small project with rapid iterations, GitHub Flow is suitable. It emphasizes simplicity, using only a main branch. Developers create feature branches for each task, collaborate, and merge directly into main. This streamlines the process, making it efficient for quick releases and updates.

In responsive design, the _______ approach focuses on designing for mobile-first and then scaling up for larger devices.

  • Adaptive
  • Desktop-first
  • Mobile-first
  • Progressive enhancement
The mobile-first approach in responsive design emphasizes designing for smaller screens first and then progressively enhancing the layout for larger devices. This strategy ensures a better user experience on mobile devices and avoids overloading smaller screens with unnecessary content.