Question bank

Pick an answer to see if you're right — with an explanation.

SQL / MySQLEasy
What does `COUNT(*)` count?
aNon-null values
bDistinct values
cColumns
dAll rows
PandasEasy
How do you count missing values per column?
adf.count_na()
bdf.missing()
cdf.isna().sum()
ddf.null()
Machine LearningEasy
Model performs great on train, poorly on test. This is…
aUnderfitting
bRegularisation
cNormalisation
dOverfitting
DjangoEasy
Which protects forms against CSRF?
a{% secure %}
b@login_required
c{% csrf_token %}
dSECRET_KEY
Large Language ModelsEasy
Lower temperature makes output…
aMore random
bLonger
cMore deterministic
dShorter
Artificial IntelligenceEasy
Which task suits a generative model rather than a traditional classifier?
aDrafting a personalised apology reply to a complaint
bPredicting tomorrow's units sold
cFlagging a transaction as fraud or not
dGrouping customers into five segments
APIsEasy
Which URL follows REST naming conventions for fetching one order?
aGET /v1/orders/9812
bGET /v1/getOrder?id=9812
cPOST /v1/orders/get/9812
dGET /v1/order_fetch/9812
Data ScienceEasy
Under India's DPDP Act, 2023, the organisation that decides why and how personal data is processed is the…
aData Fiduciary
bData Principal
cData Processor
dConsent Manager
Deep LearningEasy
Why is `optimizer.zero_grad()` called at the start of each training step?
aBecause PyTorch accumulates gradients across backward calls by default
bTo reset the learning rate
cTo re-initialise the weights randomly
dTo free the model from GPU memory
DjangoEasy
Which generic view is designed to show a single object?
aListView
bTemplateView
cRedirectView
dDetailView
ExcelEasy
Which formula returns a distinct list of states from a column?
a=UNIQUE(Sales[State])
b=DISTINCT(Sales[State])
c=SORT(Sales[State])
d=COUNTIF(Sales[State],"*")
Git & GitHubEasy
Why doesn't adding `db.sqlite3` to `.gitignore` stop Git from tracking it?
a.gitignore only works on Windows
bPatterns need a leading slash
cThe file is already tracked; .gitignore only affects untracked files
dSQLite files cannot be ignored
Large Language ModelsEasy
In tool/function calling, who actually executes the function?
aYour application code
bThe LLM provider's servers
cThe model itself
dThe user's browser
Machine LearningEasy
A random forest reduces overfitting mainly by…
aTraining trees sequentially on residuals
bAveraging many trees trained on bootstrap samples with random feature subsets
cPruning a single tree
dScaling the features
MatplotlibEasy
Which file format is best for a chart that must stay crisp at any zoom level on a website?
aSVG
bJPG
cBMP
dLow-DPI PNG