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.

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.

The _______ design pattern ensures that a class has only one instance and provides a global point of access to it.

  • Adapter
  • Factory
  • Observer
  • Singleton
The Singleton design pattern ensures that a class has only one instance and provides a global point of access to it. This is particularly useful when exactly one object is needed to coordinate actions across the system.

In TDD, failing tests are written to initially _______.

  • Compile
  • Error
  • Fail
  • Pass
In Test-Driven Development (TDD), failing tests are written first to initially fail. This establishes a clear criterion for success and guides the subsequent development process. Developers then write code to make the failing test pass, adhering to the test cases they've defined.

_______ is a design pattern in OOP where a single class is responsible for a group of related tasks.

  • Composite Pattern
  • Facade Pattern
  • Observer Pattern
  • Singleton Pattern
The Facade Pattern is a design pattern in OOP where a single class (the facade) provides a simplified interface to a set of interfaces in a subsystem, making it easier to use and reducing dependencies.