Order Number |
636738393092 |
Type of Project |
ESSAY |
Writer Level |
PHD VERIFIED |
Format |
APA |
Academic Sources |
10 |
Page Count |
3-12 PAGES |
Which of these is where JavaScript can appear?
Select one:
a. JavaScript can appear in all of these.
b. in an external file
Which of these is a valid JavaScript end-of-line comment?
Select one:
a. // Some comment text
b. # Some comment text
Which of these is NOT a JavaScript string literal?
Select one:
a. ‘some string\n’
b. some string
c. ‘some string’
d. “some string”
e. “some string <bra/>”
Which of these is the JavaScript operator used to perform a logical “and” operation?
Select one:
a. &
b. &&
c. and
d. +
e. ++
Next
Which of these is NOT true about JavaScript arrays?
Select one:
a. Array indexes are 0-relative.
b. Arrays are dynamically sized.
c. All of these are true about JavaScript arrays.
d. Arrays are indexed variables.
e. Arrays have a length property.
Which of these is a JavaScript operator that is used to obtain the remainder from a division?
Select one:
a. mod
b. rem
c. /
d. #
e. %
Next
Which of these is true of JavaScript operations involving different data types?
Select one:
a. JavaScript automatically converts different data types to Strings.
b. JavaScript automatically converts different data types to Numbers.
c. JavaScript automatically converts from one data type to another as necessary.
d. A syntax error always occurs when operations involve different data types.
e. A runtime error always occurs when operations involve different data types.
Which of these JavaScript variable names represents a different variable from the others?
Select one:
a. some Name
b. Some Name
c. some name
d. SOMENAME
e. all of these represent different variables
Next
Which of these is a valid JavaScript function declaration for a function that takes no parameters and returns no result?
Select one:
a. void functions some Function ()
b. function some Function ()
c. function some Function(null)
d. some Function ()
e. voids some Function(void)
Next
Which of these is a JavaScript function used to display a pop-up message?
Select one:
a. window
b. show
c. message
d. display
e. alert
Next
Which of these is NOT a feature of JavaScript?
Select one:
a. is the default scripting language in all leading browsers
b. global scope
c. block-level scope
d. is dynamically typed
e. function-level scope
Which of these is a valid JavaScript function declaration for a function that takes a number parameter and returns a Boolean result?
Select one:
a. function some Function (number some Number)
b. Boolean function some Function (int some Number)
c. function some Function (some Number)
d. Boolean function some Function (number some Number)
e. some Function (some Number)
Which of these is the valid HTML event attribute name used to handle a mouse click event?
Select one:
a. mooselike
b. mouse Right Click
c. clicks
d. mouse Click
e. onclick
Which of these is a type of JavaScript looping structure?
Select one:
a. while loop
b. do/while loop
c. for loop
d. for/in loop
e. all of these
Which of these is the JavaScript operator used to test for equality?
Select one:
a. ==
b. =
c. equal
d. eq
e. <
Which of these is true about JavaScript variables?
Select one:
a. Variables must keep the same type all the time.
b. Variables can take on different types at different times.
c. Variables are assigned a type based on their location in the code.
d. All variables in JavaScript are of type String.
e. All variables in JavaScript are of type Number.
Which of these is a valid way in JavaScript to get the absolute value of a number?
Select one:
a. |some Number|
b. Math. Abs (some Number)
c. absolute Value (some Number)
d. Math. Some Number|
e. -some Number
Which of these has the highest JavaScript operator precedence?
Select one:
a. ==
b. ++
c. ()
d. *
e. =
Which of these is NOT true of JavaScript?
Select one:
a. can change HTML elements and attributes
b. can perform calculations
c. can validate form input
d. can change HTML CSS styles
e. is a strongly typed language
Which of these refers to the fourth element of a JavaScript array named array Name?
Select one:
a. array Name (3)
b. array Name (4)
c. array Name [2]
d. array Name [3]
e. array Name [4]