Showing 2021–2040 of 4795

Q2021.In the A* algorithm, the evaluation function is f(n) = g(n) + h(n), where h(n) is the:

Easy
A Actual cost from start
B Total number of nodes
C Memory used
D Estimated cost to goal (heuristic)
Computer Terminology PPSC

Correct Answer: D

h(n) is the heuristic estimate of cost from node n to the goal.

Q2022.For A* to guarantee an optimal solution, the heuristic must be:

Easy
A Random
B Admissible (never overestimates)
C Negative
D Always zero
General MCQs PPSC

Correct Answer: B

An admissible heuristic never overestimates the true cost, ensuring A* optimality.

Q2023.Which deep learning architecture replaced RNNs in most modern NLP due to parallelization?

Easy
A Transformer
B CNN
C Perceptron
D K-Means
Computer Terminology PPSC

Correct Answer: A

Transformers process sequences in parallel via attention, outperforming RNNs in NLP.

Q2024.A model performs 99% on training data but 60% on test data. The most likely issue is:

Easy
A Perfect generalization
B Too few features
C Underfitting
D Overfitting
General MCQs PPSC

Correct Answer: D

A large train-test gap indicates overfitting (poor generalization).

Q2025.Which technique is specifically designed to combat the vanishing gradient problem in deep RNNs?

Easy
A More epochs
B Higher learning rate
C Larger images
D LSTM/GRU gates
General MCQs PPSC

Correct Answer: D

LSTM and GRU use gating mechanisms to preserve gradients across long sequences.

Q2026.In cybersecurity, AI-based 'behavioral analytics' detects threats by:

Easy
A Formatting disks
B Encrypting files
C Blocking all traffic
D Identifying deviations from normal user behavior
Computer Security PPSC

Correct Answer: D

Behavioral analytics flags anomalies that deviate from established normal patterns.

Q2027.Which of the following is a key risk when LLMs are used in investigations?

Easy
A They cannot read text
B Hallucinations producing false but convincing outputs
C They never make errors
D They store no data
Computer Basics PPSC

Correct Answer: B

LLMs can hallucinate, generating false yet convincing content—risky for evidence.

Q2028.Reinforcement Learning from Human Feedback (RLHF) is mainly used to:

Easy
A Encrypt prompts
B Align model outputs with human preferences
C Reduce dataset size
D Compress models
Computer Basics PPSC

Correct Answer: B

RLHF fine-tunes models using human feedback to align outputs with human values.

Q2029.Which AI approach would best identify a suspect's face across thousands of CCTV frames?

Easy
A NLP sentiment analysis
B Audio compression
C Facial recognition + object tracking
D Decision tree on text
Computer Terminology PPSC

Correct Answer: C

Facial recognition combined with tracking matches identities across video frames.

Q2030.The 'exploration vs exploitation' trade-off is central to:

Easy
A Image compression
B Supervised learning
C Tokenization
D Reinforcement learning
General MCQs PPSC

Correct Answer: D

RL agents must balance exploring new actions and exploiting known rewarding ones.

Q2031.Which method explains individual predictions by attributing importance to each feature?

Easy
A Pooling
B SHAP / LIME
C Tokenization
D Dropout
General MCQs PPSC

Correct Answer: B

SHAP and LIME are XAI techniques that attribute feature contributions to predictions.

Q2032.An AI system trained mostly on one ethnicity misidentifies others. This is an example of:

Easy
A Algorithmic bias
B Hardware failure
C Encryption error
D Overfitting only
Computer Terminology PPSC

Correct Answer: A

Skewed training data causes algorithmic bias, leading to unfair misidentification.

Q2033.Which technique allows an LLM to use external knowledge at query time without retraining?

Easy
A Retrieval-Augmented Generation (RAG)
B Pooling
C Backpropagation
D Tokenization
Computer Terminology PPSC

Correct Answer: A

RAG retrieves relevant external documents to ground LLM responses without retraining.

Q2034.In NLP, 'stemming' differs from 'lemmatization' because stemming:

Easy
A Encrypts text
B Crudely chops word endings
C Translates languages
D Uses dictionary meaning
Computer Networks PPSC

Correct Answer: B

Stemming crudely truncates words, while lemmatization uses linguistic/dictionary rules.

Q2035.Which is the correct order of a typical machine learning pipeline?

Easy
A Evaluate → Collect → Encrypt
B Deploy → Train → Collect data
C Collect data → Preprocess → Train → Evaluate → Deploy
D Train → Collect → Delete
Computer Terminology PPSC

Correct Answer: C

The standard pipeline is collect, preprocess, train, evaluate, then deploy.

Q2036.An AI tool flags transactions structured just below reporting thresholds. This detects:

Easy
A Spelling errors
B Image blur
C Smurfing/structuring in money laundering
D CPU overheating
Computer Terminology PPSC

Correct Answer: C

Detecting sub-threshold structuring helps uncover money-laundering (smurfing).

Q2037.Which evaluation curve plots true positive rate against false positive rate?

Easy
A Loss curve
B ROC curve
C Bar chart
D Histogram
Computer Basics PPSC

Correct Answer: B

The ROC curve plots TPR vs FPR to evaluate classifier performance.

Q2038.The area under the ROC curve (AUC) of 0.5 indicates a model that is:

Easy
A Perfect
B Underfitted only
C Overfitted only
D No better than random guessing
General MCQs PPSC

Correct Answer: D

AUC of 0.5 means the classifier performs no better than random chance.

Q2039.Which generative model uses a diffusion process to create images?

Easy
A ResNet
B YOLO
C BERT
D Stable Diffusion
General MCQs PPSC

Correct Answer: D

Stable Diffusion is a diffusion-based generative model for image creation.

Q2040.In cyber crime investigation, AI 'link analysis' is used to:

Easy
A Print reports
B Encrypt evidence
C Compress logs
D Map relationships between suspects, accounts, and transactions
Computer Terminology PPSC

Correct Answer: D

Link analysis maps and visualizes connections among entities in investigations.