Self-Check Sheet 1 — Plan a Website

Multiple-Choice Questions

  1. What is the significance of defining the purpose of a website in the web development process?
    a) It determines the color scheme of the website.
    b) It aligns the website's design with current trends.
    c) It provides clarity and focus for the project.
    d) It impacts the website's loading speed.
  2. Why is it essential to identify the intended audience of a website?
    a) To determine the website's purpose.
    b) To decide on the coding plan.
    c) To align the design with current trends.
    d) To choose the color scheme.
  3. What is the primary purpose of functional requirements in web development?
    a) To define the project's budget.
    b) To specify coding standards.
    c) To describe specific features and functionalities.
    d) To outline the website's color scheme.
  4. Why is it crucial to identify constraints in a web development project?
    a) Constraints ensure unlimited resources for the project.
    b) Constraints help allocate resources efficiently.
    c) Constraints prevent any changes to the project scope.
    d) Constraints are not relevant in web development.
  5. What is the purpose of a coding plan in web development with JavaScript?
    a) It defines the website's purpose.
    b) It specifies the color scheme.
    c) It provides a roadmap for coding tasks.
    d) It determines the project's budget.
  6. How can modularization be beneficial in coding with JavaScript?
    a) It adds complexity to the code.
    b) It makes the code less reusable.
    c) It increases the file size.
    d) It promotes code reusability and maintainability.
  7. What should a coding plan include to help with debugging and maintenance?
    a) A list of all team members.
    b) A detailed project timeline.
    c) Function descriptions and usage documentation.
    d) The project's color scheme.
  8. Why is version control important in web development, especially for team projects?
    a) It determines the project's budget.
    b) It prevents any code changes.
    c) It helps manage code changes and collaboration among team members.
    d) It defines the project's color scheme.
  9. What is the role of pseudocode in the coding planning process?
    a) It defines the website's purpose.
    b) It serves as a human-readable outline of code logic.
    c) It specifies coding standards.
    d) It determines the project's budget.
  10. Why should security considerations be part of the coding plan in web development?
    a) Security is not relevant in web development.
    b) Security is the sole responsibility of the hosting provider.
    c) Security ensures that sensitive data is protected.
    d) Security only impacts the website's colour scheme.

Short Questions

  1. What is the purpose of a variable in JavaScript?
    Answer: Variables store and manipulate data in JavaScript.
  2. How do you declare a function in JavaScript?
    Answer: Functions are blocks of code that perform a specific task.
  3. What is the purpose of a loop in JavaScript?
    Answer: Loops are used to repeat a block of code multiple times.
  4. How do you write a conditional statement in JavaScript?
    Answer: Conditions are used to perform different actions based on specific criteria.
  5. What is the role of switches in JavaScript?
    Answer: Switches are used to select one of many code blocks to be executed.
  6. How do you create an object in JavaScript?
    Answer: Objects represent real-world entities and have properties and methods.
  7. How do you define an array in JavaScript?
    Answer: Arrays are used to store multiple values in a single variable.
  8. How do you output a message or result in JavaScript?
    Answer: Output displays information or results in the browser console or web page.
  9. What is the purpose of comments in JavaScript?
    Answer: Comments are used to add notes or explanations to the code for better understanding.
  10. What are the different data types available in JavaScript?
    Answer: Numbers, strings, booleans, objects, arrays, null, undefined, and symbols.
  11. What is the purpose of BOM (Browser Object Model) in JavaScript?
    Answer: BOM provides access to browser objects and properties.
  12. What is the purpose of DOM (Document Object Model) in JavaScript?
    Answer: DOM represents the structured HTML/XML documents and provides access to elements.
  13. How can you identify selectors in JavaScript?
    Answer: Selectors are used to identify and target specific elements on a web page.
  14. How can you apply BOM in JavaScript development?
    Answer: BOM can be used to handle browser-specific events, manipulate the browser window, and access browser properties.
  15. How can you apply DOM in JavaScript development?
    Answer: DOM can be used to manipulate web page elements dynamically, access and modify element properties, styles, and content.

Multiple-Choice Questions

  1. Which JavaScript platform allows you to run JavaScript on the server-side?
    a) Node.js (Correct)
    b) React.js
    c) Vue.js
    d) Angular.js
  2. Which JavaScript library is commonly used for DOM manipulation and event handling?
    a) jQuery (Correct)
    b) MooTools
    c) JS charts
    d) ImageFX
  3. Which JavaScript library provides tools for creating interactive charts and graphs?
    a) jQuery
    b) MooTools
    c) JS charts (Correct)
    d) ImageFX
  4. Which JavaScript core component is responsible for data validation in web forms?
    a) Validation (Correct)
    b) Variables
    c) Functions
    d) Objects
  5. Which JavaScript core component is used to store and manipulate collections of data?
    a) Variables
    b) Functions
    c) Arrays (Correct)
    d) Objects
  6. Which of the following represents the structured representation of HTML/XML documents in JavaScript?
    a) BOM
    b) DOM (Correct)
    c) CSS
    d) AJAX
  7. What does BOM stand for?
    a) Browser Object Model (Correct)
    b) Basic Object Model
    c) Document Object Model
    d) Data Object Model
  8. Which of the following is not a type of selector in JavaScript?
    a) ID selector
    b) Class selector
    c) Element selector
    d) Method selector (Correct)
  9. What is the purpose of applying BOM in JavaScript?
    a) To handle browser-specific events (Correct)
    b) To manipulate web page elements
    c) To perform calculations
    d) To format and style web pages
  10. How can you apply DOM in JavaScript?
    a) Manipulating web page elements and their attributes (Correct)
    b) Accessing browser properties
    c) Handling server requests
    d) Creating animations

Fill in the Gap Questions

  1. _______ is used to execute a block of code repeatedly until a certain condition is met.
    Answer: Loops
  2. _______ are used to perform different actions based on different conditions.
    Answer: Conditions
  3. _______ is a JavaScript library that simplifies working with dates and times.
    Answer: Datejs
  4. _______ is used to add interactivity and dynamic content to web pages.
    Answer: React.js
  5. _______ are used to store multiple values in a single variable.
    Answer: Arrays
  6. BOM stands for _______________ Object Model.
    Answer: Browser
  7. The _______________ represents the structured representation of HTML/XML documents.
    Answer: DOM (Document Object Model)
  8. In JavaScript, selectors are used to _______________ web page elements.
    Answer: Manipulate
  9. Applying BOM in JavaScript allows you to manipulate _______________ properties and behaviors.
    Answer: Browser
  10. DOM is used in JavaScript to access and modify _______________ elements and their attributes.
    Answer: HTML/XML

Self-Check Sheet 3 — Test Website

  1. What is the primary goal of functional testing in web development?
    A. Checking website compatibility
    B. Ensuring cross-browser compatibility
    C. Verifying that interactive elements work as intended (Correct)
    D. Evaluating website fitness for purpose
  2. During functional testing, what is the purpose of regression testing?
    A. To identify errors systematically
    B. To ensure cross-browser compatibility
    C. To check responsiveness on mobile devices
    D. To confirm that fixes haven't introduced new issues (Correct)
  3. Why is validation of JavaScript code essential in functional testing?
    A. It ensures cross-browser compatibility.
    B. It identifies visual discrepancies.
    C. Valid code is less prone to errors. (Correct)
    D. It improves website performance.
  4. What is the purpose of cross-browser compatibility testing?
    A. To ensure that the website is accessible
    B. To verify that the website functions as intended
    C. To confirm that the website appears consistent on different browsers (Correct)
    D. To evaluate the website's loading speed
  5. Why is responsive design testing important for a website?
    A. To check for broken links
    B. To ensure accessibility
    C. To verify functionality
    D. To adapt to different screen sizes (Correct)
  6. What is the main goal of accessibility testing?
    A. To verify functionality
    B. To ensure cross-browser compatibility
    C. To make the website usable for people with disabilities (Correct)
    D. To assess website performance
  7. In the context of website evaluation, what should you do to ensure the website aligns with client requirements?
    A. Conduct usability testing
    B. Review client feedback
    C. Assess the loading speed
    D. Review initial client requirements (Correct)
  8. What is the purpose of usability testing during website evaluation?
    A. To assess loading speed
    B. To gather feedback on the user experience (Correct)
    C. To identify broken links
    D. To ensure cross-browser compatibility
  9. Why is performance evaluation important for a website?
    A. To ensure accessibility
    B. To verify functionality
    C. To assess loading speed and overall performance (Correct)
    D. To check for broken links
  10. What should be reviewed to ensure that website content is accurate and relevant?
    A. Browser compatibility
    B. Code validation
    C. Content alignment (Correct)
    D. Client feedback