HTML Assignment
Question 7: Which of the following is NOT a correct description of JavaScript:
A. JavaScript is an interpreted/scripting language.
B. JavaScript is a high-level programming language.
C. JavaScript can be executed in web browser by JavaScript engine to make web pages more interactive, and user-friendly.
D. JavaScript is a part of Java extension.
Question 8: To provide JavaScript for an HTML document, you must add a <script> element in the <head> part of the document that either includes embedded JavaScript or refers to an external JavaScript file.
A. True
B. False
Question 9: There are three ways to apply JavaScript to an HTML document: external, embedded, and inline.
A. True
B. False
Question 10.
Given
var colors = [ 44.5, 'yellow', true];
colors.push ('black') ;
The above statement will add 'black', a string as the 4th item in this array.
A. True
B. False
Question 11: In JavaScript, a variable name must NOT start with a number.
A. True
B. False
Question 12:
Which of the following are the right ways to define variable(s) in JavaScript?
(1)int $num; $num=3;
(2)var phone1, _address, 5tips,
(3)var true;
(4)var 'Tom' = firstName;
(5)var isHere = false;
(6)var numbers = [3.0, 5.9, 'green'];
A. (5) and (6)
B. All of them
C. (3), (5), and (6)
D. (1), (2), and (3)
Question 7: JavaScript is NOT a part of Java extension. Answer: Option D Question 8: To provide JavaScript for an HTML document, you must add a <script> element in the <head> part of the document that either includes embedded JavaScript or refers to an external JavaScript file. Answer: True Question 9: There are three ways to apply CSS to an HTML document: external, embedded, and inline. Answer: False Question 10: var colors = [ 44.5, 'yellow', true]; colors.push ('black') ; The above statement will add 'black', a string as the 4th item in this array Answer: True Question 11: In JavaScript, a variable name must NOT start with a number. Answer: True Question 12: ight ways to define variable(s) in JavaScript are (5)var isHere = false; (6)var numbers = [3.0, 5.9, 'green']; Answer: A. (5) and (6)
Get Answers For Free
Most questions answered within 1 hours.