When a model performs well on training data but poorly on unseen data, what issue might it be facing?

  • Overfitting
  • Underfitting
  • Data leakage
  • Bias-variance tradeoff
The model is likely facing the issue of overfitting. Overfitting occurs when the model learns the training data too well, including noise, resulting in excellent performance on the training set but poor generalization to unseen data. It's an example of a high-variance problem in the bias-variance tradeoff. To address overfitting, techniques like regularization and more data are often used.

Which type of database is ideal for handling hierarchical data and provides better scalability, MongoDB or MySQL?

  • MongoDB
  • MySQL
  • Both MongoDB and MySQL
  • Neither MongoDB nor MySQL
MongoDB is a NoSQL database that is ideal for handling hierarchical data and provides better scalability for unstructured data. MongoDB uses BSON (Binary JSON) format, which makes it a good choice for applications that require flexibility and scalability in dealing with complex data structures.

A company uses an AI model for recruitment, and it's observed that the model is selecting more male candidates than female candidates for a tech role, even when both genders have similar qualifications. What ethical concern does this scenario highlight?

  • Data bias in AI
  • Lack of transparency in AI
  • Data security and privacy issues in AI
  • Ethical AI governance and accountability
This scenario highlights the ethical concern of "Data bias in AI." The AI model's biased selection towards male candidates indicates that the training data may be biased, leading to unfair and discriminatory outcomes. Addressing data bias is essential to ensure fairness and diversity in AI-driven recruitment.

In a relational database, what is used to ensure data integrity across multiple tables?

  • Primary Key
  • Foreign Key
  • Index
  • Trigger
A Foreign Key is used in a relational database to ensure data integrity by creating a link between tables. It enforces referential integrity, ensuring that values in one table match values in another. Primary Keys are used to uniquely identify records in a table, not to maintain integrity across tables. Indexes and Triggers serve different purposes.

In an RNN, which component is responsible for allowing information to be passed from one step in the sequence to the next?

  • Hidden State
  • Input Layer
  • Output Layer
  • Activation Function
The hidden state in an RNN is responsible for passing information from one step in the sequence to the next. It carries information from previous steps and combines it with the current input to capture sequential dependencies, making it a crucial component in recurrent neural networks.

In EDA, which method can help in understanding how a single variable is distributed across various categories or groups?

  • Histogram
  • Box Plot
  • Scatter Plot
  • Bar Plot
A bar plot is used to visualize the distribution of a single variable across different categories or groups. It displays the data in rectangular bars, making it easy to compare and understand how the variable is distributed among the categories. Commonly used in Exploratory Data Analysis (EDA).

You're working with a dataset containing sales data from various regions. You want to identify sales patterns, seasonal trends, and anomalies. Which EDA techniques and visualization tools would be best suited for this?

  • Scatter plots and t-SNE
  • Box plots and bar charts
  • Time series plots and heatmaps
  • Histograms and parallel coordinates
For exploring sales patterns and seasonal trends, time series plots and heatmaps are excellent choices. Time series plots can reveal trends over time, and heatmaps can show correlations between different regions and sales data, helping identify anomalies and patterns.

Which method in transfer learning involves freezing the earlier layers of a pre-trained model and only training the latter layers for the new task?

  • Fine-tuning
  • Knowledge Transfer
  • Feature Extraction
  • Weight Sharing
The method in transfer learning that involves freezing the earlier layers of a pre-trained model and only training the latter layers for the new task is known as fine-tuning. Fine-tuning allows the model to retain the knowledge from the source task while adapting its later layers for the specific requirements of the target task. This approach is common in transfer learning scenarios.

While working with a dataset about car sales, you discover that the "Brand" column has many brands with very low frequency. To avoid having too many sparse categories, which technique can you apply to the "Brand" column?

  • One-Hot Encoding
  • Label Encoding
  • Brand grouping based on frequency
  • Principal Component Analysis (PCA)
To handle low-frequency categories in the "Brand" column, you can group the brands based on their frequency. This reduces the number of sparse categories and can improve model performance. You can also consider techniques like label encoding or one-hot encoding, but they might not be ideal for low-frequency categories. PCA is used for dimensionality reduction and not for handling categorical variables.

A neural network without any hidden layers is typically referred to as a _______.

  • Deep Neural Network
  • Shallow Neural Network
  • Multilayer
  • Perceptron
A neural network without any hidden layers is often referred to as a "Perceptron." It consists of only the input and output layers, and it's the simplest form of a neural network.