Introduction To Web Development week 3 Quiz Answer

Introduction To Web Development week 3 Quiz Answer



Introduction To Web Development 

week 3 Quiz Answer




Q1) What value does JavaScript have to websites? (Select all that apply.)
  • JavaScript makes websites interactive
  • JavaScript improves security.
  • JavaScript validates user input
  • JavaScript prevents errors


Q2) Is JavaScript case sensitive?
  • Yes, it is case sensitive
  • It depends on the browser you are using.
  • No, it is not case sensitive.
  • Case sensitivity is recommended, but optional.


Q3) Which of these is not a purpose of JavaScript?
  • Making webpages more interactive.
  • Dynamically updating HTML.
  • Advertisements
  • Validating user input on webpages.
  • Preventing webpages from getting errors


Q4) Which symbols does JavaScript use to create comments?
  • ??
  • \\
  • **
  • <!– –>
  • // 


Q5) Which of these operators is the equality operator?
  • *
  • =
  • /
  • +
  • ==


Q6) Question 6 Which of the following is true of script tags?
  • Using script tags is usually a syntax error.
  • Script tags do not require a closing tag.
  • They are required for HTML
  • They are required for JavaScript


Q7) Which of these is an ability that JavaScript has that HTML does not have?
  • Using CSS
  • Displaying text
  • Do things repetitively
  • Displaying images


Q8) Using JavaScript to get an HTML element by its ID requires which function name starting with document?
  • document.getElementById
  • document.GetElementById
  • document.getElementbyID
  • document.getElementId
  • None of these


Q9) We can determine the length of a string in JavaScript by
  • Counting HTML tags
  • Using the size property
  • Assessing the length property
  • The length cannot be determined


Q10) Question 10 A JavaScript “if” statement allows us to
  • End a program gracefully
  • Make decisions based on true/false
  • Make HTML more efficient
  • Use the keyword then as if then
  • Erase variables


Q11) JavaScript onclick is most effectively used with: (Select all that apply)
  • Entire HTML pages
  • Buttons
  • Paragraphs
  • Images








---------------------------------------------------------------------------------------------------------------------------------------------



---------------------------------------------------------------------------------------------------------------------------------------------

Post a Comment

1 Comments