2024/2025 | COMPLETE 180 UPDATED QUESTIONS WITH
100% CORRECT| EXPERT VERIFIED FOR GUARANTEED
PASS!!
Which tag enables developers to include dynamic code in an HTML
document?
A) mark
B) script
C) main
D) section - Correct Answer - script
Why is JavaScript considered a scripting language? A)
The code must be compiled.
B) It is driven by events.
C) It is object-oriented.
D) The code must be interpreted. - Correct Answer - The code must be
interpreted.
Which option declares a variable called name and assigns the literal value
Student to it?
A) var name = "Student";
B) string name = "Student";
C) var name = Student;
pg. 1
,D) string name = Student; - Correct Answer - var name = "Student";
Which HTML input type allows for mailto: address entry?
A) file
B) number
C) URL
D) hidden - Correct Answer - URL
Which form attribute limits the number of characters for an input field?
A) size
B) value
C) disabled
D) MA length - Correct Answer - MA length
Which element allows a developer to add a caption for a created group of
items?
A) <fieldset>
B) <input>
C) <legend>
D) <label> - Correct Answer - <legend>
Which attribute value presents form data to a server for processing?
A) submit
B) reset
pg. 2
,C) button
D) URL - Correct Answer - submit
Which code segment declares a variable and assigns a Boolean value to
it?
A) var enabled = 'true';
B) bool enabled = true;
C) var enabled = true;
D) bool enabled = 'true'; - Correct Answer - var enabled = true;
Which code segment contains a logical expression?
A) if (total > 250) {discount = true;}
B) place Order and Ship (discount, total);
C) var total = get(discount) + 100;
D) discount = total * 0.75 + 1000; - Correct Answer - if (total > 250)
{discount = true;}
Which code segment contains a logical expression?
A) var discount = Calculate Discount(total);
B) var discount = total > 250;
C) var discount = (total > 250)? true: false;
D) var discount = total; - Correct Answer - var discount = (total > 250)? true:
false;
pg. 3
, A user's information defaults onto a form. Which event triggers if the user
keys in a new value in the First Name field?
A) change
B) reset
C) unload
D) abort - Correct Answer - change
Which JavaScript event handler is associated with the form object?
A) onclick
B) on change
C) unselect
D) on reset - Correct Answer - on reset
What are variables that are passed to a function called?
A) Arguments
B) Statements
C) Keywords
D) Prompts - Correct Answer - Arguments
What must follow the name of a function in a JavaScript function
declaration?
A) Script block
B) Curly braces
C) Calling statement
pg. 4