Which data structure follows the Last In, First Out (LIFO) principle?
- Linked List
- Queue
- Stack
- Tree
A stack follows the Last In, First Out (LIFO) principle. In a stack, the last element added is the first one to be removed. It is commonly used for managing function calls, expression evaluation, and undo mechanisms.
What is a common technique used for improving website loading speed?
- Compression
- Concatenation
- Minification
- Obfuscation
Concatenation is a common technique for improving website loading speed. It involves combining multiple files, such as CSS or JavaScript, into a single file, reducing the number of HTTP requests required to load a page. This optimization technique helps minimize load times by reducing latency.
What is a popular platform used for version control and collaboration in software development?
- Git
- HTML
- Java
- Python
Git is a widely used platform for version control and collaboration in software development. It allows developers to track changes, collaborate with others, and manage code repositories efficiently. Git's decentralized nature and branching capabilities make it a popular choice in the development community.
The CSS box-sizing property determines how the _______ of an element is calculated.
- Width and Height
- Position
- Margin
- Padding and Border
The CSS box-sizing property determines how the width and height of an element are calculated. It includes options like content-box and border-box that affect how the total size is computed.
In Python, what keyword is used to raise an exception manually?
- except
- raise
- throw
- try
In Python, the raise keyword is used to raise an exception manually. It allows the programmer to indicate that a particular exception has occurred.
_______ allows developers to automate repetitive tasks such as code formatting, testing, and deployment, improving productivity and consistency across projects.
- Automation
- DevOps
- Orchestration
- Scripting
Automation allows developers to automate repetitive tasks, enhancing productivity and maintaining consistency in code formatting, testing, and deployment processes. It is a key aspect of modern software development practices.
_______ is a software development approach that emphasizes the iterative development and delivery of working software.
- Agile
- DevOps
- Scrum
- Waterfall
Agile is a software development approach that emphasizes iterative development and the delivery of working software in short, incremental cycles. It focuses on collaboration, customer feedback, and adaptability to changes throughout the development process.
The _______ design pattern defines a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.
- Command
- Observer
- Prototype
- Singleton
The Observer design pattern defines a one-to-many dependency between objects. When the state of one object changes, all its dependents (observers) are notified and updated automatically.
What is the role of a security token in the context of authentication?
- Encrypt communication between client and server
- Generate random numbers
- Store user preferences
- Verify the identity of a user
A security token in authentication is used to verify the identity of a user. It typically contains information such as user credentials or a reference to the user's identity stored on a secure server, ensuring secure access to resources.
What is the purpose of logging in software development?
- Enhance code readability
- Record and analyze program behavior
- Replace debugging
- Speed up program execution
The purpose of logging in software development is to record and analyze program behavior. It helps developers understand how their code is behaving in different scenarios.