What is the purpose of the Singleton design pattern?

  • Ensures a class has only one instance and provides a global point to it
  • Implements a one-to-many dependency between objects
  • Manages the creation of objects in a hierarchy
  • Represents a way to access elements of an aggregate object sequentially
The Singleton design pattern ensures that a class has only one instance and provides a global point of access to it. This is useful when exactly one object is needed to coordinate actions across the system.

Two-factor _______ adds an extra layer of security to authentication.

  • Authentication
  • Authorization
  • Encryption
  • Verification
Two-factor authentication adds an extra layer of security to the authentication process. It typically involves something the user knows (password) and something the user has (a code sent to their mobile device), enhancing security.

Which CSS property is commonly used to improve rendering performance by minimizing layout recalculations?

  • display
  • position
  • transform
  • transition
The transform property in CSS is commonly used to improve rendering performance by minimizing layout recalculations. It enables developers to apply 2D and 3D transformations to elements without triggering costly repaints or reflows. This can significantly enhance the performance of web pages, especially during animations.

Browser Developer Tools provide a _______ view of the Document Object Model (DOM).

  • Graphical
  • Hierarchical
  • Linear
  • Tabular
Browser Developer Tools provide a hierarchical view of the Document Object Model (DOM). This view helps developers understand the structure and relationships of HTML elements on a webpage.

In OOP, a class is a blueprint for creating _______.

  • Functions
  • Instances
  • Modules
  • Objects
In Object-Oriented Programming (OOP), a class is a blueprint for creating objects. Objects are instances of a class and encapsulate both data (attributes) and behavior (methods) related to that class.

Which attribute is used to provide an alternative text for an image in HTML?

  • alt
  • href
  • src
  • title
The alt attribute is used to provide alternative text for an image in HTML. This text is displayed if the image fails to load or for accessibility purposes, allowing screen readers to describe the image to visually impaired users.

What is a design pattern in software engineering?

  • A blueprint for creating software applications
  • A general reusable solution to a commonly occurring problem within a given context in software design
  • A programming language-specific code convention
  • A step-by-step guide for designing user interfaces
A design pattern in software engineering is a general reusable solution to a commonly occurring problem within a given context in software design. It represents best practices and provides a template for solving particular issues.

The "git rebase -i" command allows for _______ commits interactively.

  • Randomizing
  • Recovering
  • Reversing
  • Rewriting
The "git rebase -i" command allows for Rewriting commits interactively. It opens an interactive interface where you can squash, pick, edit, and reorder commits, providing flexibility in managing commit history.

React makes use of a virtual _______ to efficiently update the DOM.

  • Browser
  • Component
  • DOM
  • Tree
React makes use of a virtual DOM to efficiently update the actual DOM. The virtual DOM is a lightweight copy of the real DOM, and changes are first made to the virtual DOM for faster updates.

What are some best practices for testing responsiveness across different devices and screen sizes?

  • Conducting tests only during development, not considering user feedback, ignoring real-world scenarios
  • Ignoring testing altogether, assuming responsiveness will work automatically, relying only on manual testing
  • Testing only on one device, relying solely on emulators, neglecting testing on various screen sizes
  • Using browser developer tools, utilizing online testing tools, conducting real device testing, and simulating different viewports
Best practices for testing responsiveness involve using browser developer tools, utilizing online testing tools, conducting real device testing, and simulating different viewports to ensure compatibility across a variety of devices and screen sizes.