Which CSS selector targets elements based on their class?
- #class
- .class
- class
- element.class
The correct selector to target elements based on their class is .class. It is a fundamental selector in CSS for styling specific elements with a given class.
What is dynamic programming in algorithm design?
- A method for designing algorithms that only work on dynamic data structures
- A process of designing algorithms that are continuously changing
- A technique to solve problems by breaking them down into smaller overlapping subproblems
- An approach to designing algorithms using dynamic input data
Dynamic programming is a technique used to solve problems by breaking them down into smaller overlapping subproblems, solving each subproblem only once, and storing the solutions for future use. It's particularly useful for optimization problems.
In data migration, ETL stands for Extract, Transform, and _______.
- Link
- Load
- Locate
- Log
ETL stands for Extract, Transform, and Load. This process is fundamental in data migration, where data is extracted from a source, transformed as necessary, and then loaded into a target system.
Among the options, which language is renowned for its simplicity, readability, and extensive standard library, commonly used in web development with frameworks like Flask and Django?
- Java
- Node.js
- Python
- Ruby
Python is renowned for its simplicity, readability, and extensive standard library. It is commonly used in web development with frameworks like Flask and Django, making it a popular choice for building web applications.
How does hoisting work in JavaScript?
- Assignments are moved to the top of the scope during compilation
- Declarations are moved to the top of the scope during compilation
- Functions are moved to the top of the scope during compilation
- Variables are moved to the top of the scope during runtime
Hoisting in JavaScript refers to the behavior where function declarations are moved to the top of the scope during compilation, allowing them to be used before they are declared.
What is the time complexity of accessing an element in an array?
- O(1)
- O(log n)
- O(n)
- O(n^2)
The time complexity of accessing an element in an array is O(1) or constant time. This is because arrays provide direct access to any element using its index, and the access time remains constant regardless of the array size.
In Cassandra, a _______ determines the placement of data on nodes in the cluster.
- Consistency Level
- Partition Key
- Replication Factor
- Super Column
In Cassandra, the placement of data on nodes is determined by the Partition Key. It is crucial for distributing data across the cluster efficiently.
Which SQL clause is used to filter results based on a specified condition?
- FROM
- GROUP BY
- SELECT
- WHERE
The WHERE clause in SQL is used to filter results based on a specified condition. It allows you to specify conditions that the data must meet to be included in the result set.
Which type of attack involves an attacker stealing a user's session token and using it to impersonate the user?
- Cross-Site Request Forgery (CSRF)
- Cross-Site Scripting (XSS)
- SQL Injection
- Session Hijacking
Session Hijacking involves an attacker stealing a user's session token and using it to impersonate the user. This attack allows unauthorized access to sensitive data.
_______ profiling helps identify areas of code that consume excessive resources or cause bottlenecks.
- Code
- Memory
- Performance
- Time
Performance profiling involves analyzing a program's runtime behavior to identify bottlenecks and resource-heavy sections. It helps optimize code for better efficiency and speed.