CSS preprocessors like _______ and _______ provide features to streamline responsive design workflows.
- AJAX, JSON
- Bootstrap, Foundation
- SASS, LESS
- jQuery, Angular
CSS preprocessors such as SASS and LESS are widely used in the industry to enhance and streamline responsive design workflows. They offer features like variables, mixins, and nesting that facilitate more efficient and maintainable stylesheets.
Your team is working on a project where images are a significant part of the content. How would you optimize image loading to improve overall website performance?
- Compress images without significant quality loss
- Implement lazy loading
- Use responsive images with the srcset attribute
- Utilize Content Delivery Networks (CDN)
Using responsive images with the srcset attribute allows the browser to select the most appropriate image based on the user's device, improving performance. It tailors the image delivery to the user's screen size and resolution.
The command "git log --graph" displays a _______ representation of the commit history.
- Graphical
- Tabular
- Text-based
- Visual
The command "git log --graph" displays a text-based representation of the commit history with a graphical structure. It helps visualize the branching and merging of commits in a more readable format.
What is the main concept behind Object-Oriented Programming (OOP)?
- Abstraction
- Encapsulation
- Inheritance
- Polymorphism
The main concept behind Object-Oriented Programming (OOP) is Abstraction. Abstraction involves simplifying complex systems by modeling classes based on real-world entities and focusing on the essential properties and behaviors.
What is the primary difference between SQL and NoSQL databases?
- Both SQL and NoSQL databases have the same structure.
- SQL databases are faster than NoSQL databases.
- SQL databases are non-relational and use a flexible schema. NoSQL databases are relational and use a structured schema.
- SQL databases are relational and use a structured schemNoSQL databases are non-relational and use a flexible schema.
The primary difference is that SQL databases are relational and have a structured schema, while NoSQL databases are non-relational and use a flexible schema, allowing for easier scalability and handling of unstructured data.
Continuous Deployment refers to the automatic release of changes to _______.
- development
- production
- staging
- testing
Continuous Deployment refers to the automatic release of changes to the production environment. It involves automatically deploying code changes to the live environment after passing all necessary tests.
In data migration, what is meant by "ETL"?
- Enhance, Transfer, Load
- Enhance, Transform, Link
- Extract, Transfer, Link
- Extract, Transform, Load
"ETL" stands for Extract, Transform, Load in data migration. It is a process that involves extracting data from source systems, transforming it into a suitable format, and loading it into a target system for analysis or storage.
What is the purpose of using a Content Security Policy (CSP) in web applications?
- Accelerate Page Loading Speed
- Authenticate Users
- Enhance User Interface (UI) design
- Mitigate Cross-Site Scripting (XSS) attacks
Content Security Policy (CSP) is used to mitigate Cross-Site Scripting (XSS) attacks by controlling which resources are allowed to be loaded on a web page. It helps prevent unauthorized script execution, enhancing the overall security of web applications.
You're tasked with optimizing the performance of a RESTful API. What strategies would you employ to improve response times and reduce latency?
- Implement caching mechanisms
- Increase server capacity
- Optimize database queries
- Use a Content Delivery Network (CDN)
Optimizing the performance of a RESTful API involves various strategies. Implementing caching mechanisms can significantly improve response times by serving cached data for frequently requested resources, reducing the load on the server.
Which SQL keyword is used to retrieve data from a database table?
- FETCH
- GET
- RETRIEVE
- SELECT
The SQL keyword used to retrieve data from a database table is SELECT. It is a fundamental and commonly used keyword in SQL for querying and retrieving data.