JavaScript Quiz 1 with 100% Correct Solutions
JavaScript Quiz 1 with 100% Correct Solutions What is the difference between code compilation and interpretation - Correct Answer️️ -Compilation = When code is evaluated and translated into one or more code Units Interpretation = When code is parsed statement by statement at run time What are Conditional Statements and give examples - Correct Answer️️ -When code is executed depending on situation ex. If and Switch What is code called that is chained to an else statement - Correct Answer️️ -else if What are the three steps in the Switch Statement - Correct Answer️️ -1.) Switch expression is evalutaed once 2.) The value of expressions is compared to value of each CASE 3.) If there is a match, the associated block of code is executed What does the break keyword do in a Switch Statement? - Correct Answer️️ -Beaks out of the switch block What is the default statement used for? - Correct Answer️️ -runs if no match in switch What is concatentation? - Correct Answer️️ -putting two strings together into one What are the two ways data types can be converted and explain how each is done - Correct Answer️️ -1.) Implicit conversion - Done by interpreter as needed 2.)Explicit - Done by specific methods
Document information
- Uploaded on
- June 16, 2024
- Number of pages
- 4
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers