Skip to content

Commit 99692d7

Browse files
authored
chore(curriculum): audit bash and sql quiz (freeCodeCamp#61642)
1 parent a57e4e3 commit 99692d7

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

curriculum/challenges/english/25-front-end-development/quiz-bash-and-sql/66f1affc0ef4fcca423d4688.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -303,45 +303,45 @@ How do you filter SQL results?
303303

304304
#### --text--
305305

306-
What happens to child records when implementing `ON DELETE CASCADE`?
306+
What is the primary characteristic of the N+1 problem in SQL?
307307

308308
#### --distractors--
309309

310-
They become null.
310+
Executing one large, complex query and sending it back to the server.
311311

312312
---
313313

314-
They are archived.
314+
A query that returns too much data at once but sorts it alpabetically.
315315

316316
---
317317

318-
They are orphaned.
318+
Using too many JOINs in a single query and returning too much data.
319319

320320
#### --answer--
321321

322-
They are automatically deleted.
322+
Executing one initial query followed by N additional queries for related data.
323323

324324
### --question--
325325

326326
#### --text--
327327

328-
What is the `COALESCE` function used for?
328+
Which of the following is a key difference between a Super Key and a Candidate Key?
329329

330330
#### --distractors--
331331

332-
Removing duplicates.
332+
A Super Key cannot contain multiple attributes or columns, while a Candidate Key can.
333333

334334
---
335335

336-
Counting Null Values.
336+
A Candidate Key must be a single column and cannot be a composite key, while a Super Key can be composite.
337337

338338
---
339339

340-
Combining Tables.
340+
A Super Key is chosen by the database administrator and it doesn't have to be unique.
341341

342342
#### --answer--
343343

344-
Returning first non-null value.
344+
A Super Key can contain extra attributes not essential for unique identification, while a Candidate Key cannot.
345345

346346
### --question--
347347

@@ -369,67 +369,67 @@ Partial Dependency.
369369

370370
#### --text--
371371

372-
What's the main risk of using `SELECT *` in production code?
372+
In Bash, what is the primary purpose of the `>` operator?
373373

374374
#### --distractors--
375375

376-
SQL injection vulnerability.
376+
To append output to a file and create a copy in `tmp`.
377377

378378
---
379379

380-
Slower query performance.
380+
To read input from a file and encode it.
381381

382382
---
383383

384-
Database crashes.
384+
To compare two files for differences and print the differences.
385385

386386
#### --answer--
387387

388-
Breaking code when columns change.
388+
To redirect standard output to a file, overwriting the file if it exists.
389389

390390
### --question--
391391

392392
#### --text--
393393

394-
How do you typically store a password in a database?
394+
What does the `wc -l` command do?
395395

396396
#### --distractors--
397397

398-
As an encrypted string.
398+
Counts the number of words in a file.
399399

400400
---
401401

402-
As base64 encoded text.
402+
Counts the number of characters in a file.
403403

404404
---
405405

406-
As a plain text.
406+
Lists all files in the current directory.
407407

408408
#### --answer--
409409

410-
As a salted hash.
410+
Counts the number of lines in a file.
411411

412412
### --question--
413413

414414
#### --text--
415415

416-
What's the purpose of an index on a foreign key?
416+
In a Bash script, how can you access the first argument passed to it?
417417

418418
#### --distractors--
419419

420-
Ensure data integrity.
420+
`$ARG1`
421421

422422
---
423423

424-
Save Storage Space.
424+
`$0`
425425

426426
---
427427

428-
Prevent Null Values.
428+
`$#`
429429

430430
#### --answer--
431431

432-
Speed Up Join Operations.
432+
`$1`
433433

434434
### --question--
435435

0 commit comments

Comments
 (0)