Interview AI Questions
Interview AI Questions
2. What are the main differences between Artificial Intelligence, Machine Learning, and Deep
Learning?
o Answer: The types of AI are Narrow AI (or Weak AI), General AI (or Strong AI), and
Superintelligent AI.
5. What is the difference between rule-based systems and learning systems in AI?
o Answer: Rule-based systems follow predefined rules, while learning systems improve
their performance based on data.
o Answer: Ethical considerations include bias in AI, privacy concerns, job displacement,
and the decision-making power of AI systems.
o Answer: Supervised learning involves training a model on labeled data, where the
input data is paired with the correct output.
o Answer: A classification task involves predicting a discrete label for a given input.
o Answer: A regression task involves predicting a continuous value for a given input.
o Answer: Overfitting occurs when a model learns the training data too well, including
noise and details, which negatively impacts its performance on new data.
o Answer: Underfitting occurs when a model is too simple to capture the underlying
patterns in the data, leading to poor performance on both training and test data.
o Answer: Feature selection is the process of choosing a subset of relevant features for
model construction.
o Answer: Precision is the ratio of true positives to the sum of true and false positives.
Recall is the ratio of true positives to the sum of true positives and false negatives.
o Answer: A decision tree is a flowchart-like structure used for decision making, where
each internal node represents a test on an attribute, each branch represents the
outcome, and each leaf node represents a class label.
23. What is ensemble learning?
o Answer: Deep Learning is a subset of ML that uses neural networks with many layers
to learn from large amounts of data.
o Answer: CNNs are specialized neural networks designed to process and analyze
visual data by using convolutional layers to automatically and adaptively learn spatial
hierarchies of features.
o Answer: RNNs are neural networks designed for sequential data by having
connections that form directed cycles, allowing information to persist.
o Answer: The vanishing gradient problem occurs when gradients become too small
during backpropagation, causing the network to stop learning.
o Answer: Transfer learning is the process of using a pre-trained model on one task
and applying it to a different but related task.
o Answer: GANs are a class of machine learning frameworks where two neural
networks, a generator and a discriminator, are trained simultaneously with opposing
goals to generate new, synthetic data.
Generative AI Questions:
o Answer: Generative AI involves creating new content, such as text, images, or music,
using machine learning models.
o Answer: GANs consist of a generator that creates data and a discriminator that
evaluates its authenticity. They compete in a zero-sum game until the generator
produces realistic data.
o Answer: VAEs are a type of generative model that learns a probability distribution
over the input data, allowing for efficient data generation.
o Answer: Ethical use involves implementing guidelines for transparency, consent, and
fairness, and developing technology to detect and prevent misuse.
o Answer: GPT-3 is a language model developed by OpenAI that uses deep learning to
produce human-like text based on given prompts.
o Answer: The process includes data collection, data preprocessing, model selection,
training, evaluation, and deployment.
45. What are common tools and frameworks for AI/ML development?
o Answer: Common tools include TensorFlow, PyTorch, scikit-learn, Keras, and Jupyter
Notebooks.
o Answer: An AI agent is an entity that perceives its environment through sensors and
acts upon that environment through actuators to achieve goals.
o Answer: NLP is a field of AI that focuses on the interaction between computers and
humans through natural language.
o Answer: The bias-variance tradeoff is the balance between the error introduced by
bias (errors from incorrect assumptions) and variance (errors from sensitivity to
small fluctuations in training data).
65. What are the differences between a feedforward neural network and a recurrent neural
network?
o Answer: Backpropagation is the algorithm used for training neural networks, where
gradients of the loss function are calculated with respect to each weight by the chain
rule and used to update the weights.
o Answer: Style transfer is a technique where the style of one image is applied to the
content of another image using neural networks.
o Answer: VAEs are probabilistic models that learn a distribution over the input data,
allowing for more controlled and diverse generation of new data.
o Answer: Scaling features ensures that all features contribute equally to the model,
improving convergence speed and performance for algorithms sensitive to feature
scale.
o Answer: Feature engineering involves creating new features from existing data to
improve model performance. It is important because it can provide more relevant
information to the model.