The "git branch" command is used to _______.
- Create a new branch
- Delete a branch
- List all branches
- Merge branches
The "git branch" command, when used without any additional arguments, lists all existing branches in the Git repository. It's a handy command to see the available branches and the currently active branch.
_______ is a SQL command used to retrieve data from multiple tables simultaneously based on a specified condition.
- GROUP BY
- JOIN
- MERGE
- UNION
The JOIN command in SQL is used to retrieve data from multiple tables simultaneously based on a specified condition. It combines rows from two or more tables based on a related column.
How does "git reset" differ from "git revert"?
- git reset discards commits, and changes are lost
- git reset undoes a commit, preserving changes
- git revert discards commits, and changes are lost
- git revert undoes a commit, preserving changes
git reset discards commits and changes are lost, whereas git revert undoes a commit while preserving changes by creating a new commit that undoes the previous changes. Reset is more powerful and should be used with caution.
What are some advantages of using Gitflow over GitHub Flow?
- Centralized Workflow, Direct Commits, Fast Release Cycle
- Feature Branches, Strict Workflow, Well-defined Release Process
- Forking Workflow, Simplicity, Easy Collaboration
- Git Pull Requests, Loose Workflow, Continuous Deployment
Gitflow offers advantages such as Feature Branches for isolated development, a strict workflow for better control, and a well-defined release process, making it suitable for complex projects.
You're designing a database for an e-commerce platform. What factors would you consider when choosing between MySQL and PostgreSQL as the database management system?
- Scalability and Performance
- Data Integrity and Concurrency
- Community Support and Licensing
- Transaction Isolation and ACID Compliance
When choosing between MySQL and PostgreSQL, factors like scalability, performance, data integrity, concurrency, community support, licensing, and adherence to transaction isolation and ACID compliance are crucial. The correct option emphasizes scalability and performance considerations.
Angular follows the _______ architecture for building applications.
- MVA (Model-View-Adapter)
- MVC (Model-View-Controller)
- MVVM (Model-View-ViewModel)
- MVW (Model-View-Whatever)
Angular follows the MVC (Model-View-Controller) architecture for building applications. It separates the application into three interconnected components to enhance modularity and maintainability.
Which of the following is a server-side language commonly used for web development?
- CSS
- HTML
- JavaScript
- PHP
PHP is a server-side scripting language commonly used for web development. It allows developers to create dynamic web pages and interact with databases on the server side.
What command is used to stage files for committing in Git?
- git add
- git commit
- git push
- git stage
The command used to stage files for committing in Git is git add. This command adds changes to the staging area, preparing them for the next commit. It allows for selective committing of changes.
What does SDLC stand for?
- Software Development Life Cycle
- Structured Design and Life Cycle
- System Design and Life Cycle
- Systematic Development Life Cycle
SDLC stands for Software Development Life Cycle. It is a systematic process for planning, creating, testing, deploying, and maintaining information systems.
Which AWS service is used for serverless computing?
- AWS Lambda
- Amazon EC2
- Amazon RDS
- Amazon S3
AWS Lambda is the AWS service used for serverless computing. It allows developers to run code without provisioning or managing servers. It's a cost-effective way to build applications that respond to events and scale automatically.