CORRECT VERIFIED ANSWERS/ C777 PA WEB DEVELOPMENT
APPLICATIONS (MOST RECENT!)
What is a characteristic of a web page with responsive design?
A) The ability to react to user events
B) A measure of the page load speed
C) The ability to resize to the screen size
D) A measure of the page close speed - ANSWER-The ability to resize to the screen size
Which language provides dynamic content for a web page across all browsers?
A) XML
B) JavaScript
C) HTML5
D) XHTML - ANSWER-JavaScript
Which type of content should use an <aside>?
A) News feeds
B) Site copyrights
C) Headlines
D) Navigation menus - ANSWER-News feeds
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;
D) string name = Student; - ANSWER-var name = "Student";
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'; - ANSWER-var enabled = true;
Which code segment contains a logical expression?
A) if (total > 250){discount = true;}
B) placeOrderAndShip(discount, total);
C) var total = get(discount) + 100;
D) discount = total * 0.75 + 1000; - ANSWER-if (total > 250){discount = true;}
Which code segment contains a logical expression?
A) var discount = CalculateDiscount(total);
B) var discount = total > 250;
C) var discount = (total > 250) ? true : false;
D) var discount = total; - ANSWER-var discount = (total > 250) ? true : false;
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 - ANSWER-change
Which JavaScript event handler is associated with the form object?
A) onclick
B) onchange
C) onselect
D) onreset - ANSWER-onreset
What are variables that are passed to a function called?
A) Arguments
, B) Statements
C) Keywords
D) Prompts - ANSWER-Arguments
What must follow the name of a function in a JavaScript function declaration?
A) Script block
B) Curly braces
C) Calling statement
D) Parenthesis - ANSWER-Parenthesis
Which method should a developer use to create a message and request user input in a text field?
A) confirm
B) prompt
C) alert
D) write - ANSWER-prompt
Given the following JavaScript:
var name = "student";
Which code statement modifies the name variable so that all characters are uppercase?
A) name = name.toUpperCase;
B) name.toUpperCase();
C) name = name.toUpperCase();
D) name.toUpperCase; - ANSWER-name = name.toUpperCase();
Which variable name format does JavaScript use?
A) #address
B) 1stAddress
C) .address
D) _address - ANSWER-_address