Web Architecture, Coding Best Practices, and Tools Quiz

0.0(0)
studied byStudied by 0 people
full-widthCall with Kai
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/19

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

20 Terms

1
New cards

1. What are the three main parts of a traditional web architecture?
A. Browser, Internet, Router
B. Client-side, Server-side, Database
C. HTML, CSS, JavaScript
D. User, API, File System

B — Client-side, Server-side, Database

2
New cards

2. The term “monolithic” in web architecture refers to:
A. A system with separate microservices
B. A single codebase containing both frontend and backend logic
C. An architecture that relies entirely on client-side scripting
D. A system with no database connection

B — A single codebase containing both frontend and backend logic

3
New cards

3. What is one advantage of a modern, multi-tier web architecture?
A. It reduces scalability
B. It combines all layers into one codebase
C. It separates components, improving maintainability and scalability
D. It removes the need for a backend server

C — It separates components, improving maintainability and scalability

4
New cards

4. Why is following coding etiquette important?
A. To make your code look artistic
B. Because other developers may need to read and maintain your code
C. It’s optional in team projects
D. Only useful when coding alone

B — Because other developers may need to read and maintain your code

5
New cards

5. What is the purpose of unit tests?
A. To automatically publish your code online
B. To test small, isolated parts of code to catch bugs early
C. To measure website speed
D. To test all code at once before production

B — To test small, isolated parts of code to catch bugs early

6
New cards

6. What does a linter do?
A. Runs your code
B. Checks your code for syntax errors and style issues
C. Translates code into different languages
D. Encrypts your files

B — Checks your code for syntax errors and style issues

7
New cards

7. Why should developers use version control systems?
A. To keep older versions of video files
B. To track code changes and collaborate safely
C. To improve computer speed
D. To automatically fix bugs

B — To track code changes and collaborate safely

8
New cards

8. Which of the following is a version control system?
A. Docker
B. Git
C. Visual Studio Code
D. Python

B — Git

9
New cards

9. What is a commit in Git?
A. A saved snapshot of your code at a given time
B. A command to delete files
C. A type of programming error
D. A request to merge branches

A — A saved snapshot of your code at a given time

10
New cards

10. What is the difference between a CLI and GUI?
A. CLI uses commands; GUI uses visual elements
B. CLI is slower than GUI
C. GUI runs on Linux only
D. They are the same thing

A — CLI uses commands; GUI uses visual elements

11
New cards

11. Which of the following is an example of a CLI environment?
A. Microsoft Word
B. PowerShell
C. Google Chrome
D. File Explorer

B — PowerShell

12
New cards

12. Which tool is most useful for stepping through your code line by line?
A. Compiler
B. Debugger
C. Text editor
D. Version control system

B — Debugger

13
New cards

13. Why is using an IDE (like VS Code) beneficial?
A. It provides syntax highlighting, debugging, and auto-completion
B. It removes the need for coding
C. It works only for frontend development
D. It prevents all syntax errors automatically

A — It provides syntax highlighting, debugging, and auto-completion

14
New cards

14. What does auto-completion in an IDE do?
A. Predicts and suggests code as you type
B. Automatically runs code
C. Writes entire programs for you
D. Deletes unused code

A — Predicts and suggests code as you type

15
New cards

15. Which of the following are recommended coding best practices mentioned in the slides?
A. Avoid documentation
B. Use a version control system
C. Keep your code private from teammates
D. Avoid using tests

B — Use a version control system

16
New cards

16. Why is it important to keep your code “up to date”?
A. To make it compatible, secure, and reliable
B. To confuse other developers
C. To reset your version history
D. To improve color themes

A — To make it compatible, secure, and reliable

17
New cards

17. What does “framework-agnostic approach” mean?
A. Only using one web framework at a time
B. Being open to using different frameworks or tools as needed
C. Not using frameworks at all
D. Ignoring best practices

B — Being open to using different frameworks or tools as needed

18
New cards

18. What is the purpose of using a debugger?
A. To prevent security breaches
B. To step through and identify errors in code
C. To write faster code
D. To deploy applications

B — To step through and identify errors in code

19
New cards

19. Which of the following is an example of secure coding practice mentioned in the slides?
A. Ignoring user authentication
B. Following the OWASP Top 10 guidelines
C. Turning off HTTPS
D. Saving passwords in plain text

B — Following the OWASP Top 10 guidelines

20
New cards

20. Which feature in Visual Studio Code helps improve code readability?
A. Syntax highlighting
B. File encryption
C. Database connection manager
D. Image optimizer

A — Syntax highlighting