1/19
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
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. 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. 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. 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. 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. 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. 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. Which of the following is a version control system?
A. Docker
B. Git
C. Visual Studio Code
D. Python
B — Git
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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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