WGU C777 Web Dev Applications. Exam Review, graded A+
WGU C777 Web Dev Applications. Exam Review, graded A+ Embedded What type of script is this? Inline What type of script is this? script Which element is used to link an external JavaScript file? Calculations A calculator is a real-world object. Which are methods of the calculator object? objects What do we call reusable units of code that have properties and methods? 1 (alert greeting + "," + fName + " " + lName) Given this: var greeting = "Welcome to the course"; var fName = "Jane"; var lName = "Doe"; What piece of code produces this greeting: Welcome to the course, Jane Doe var age = 24; Declare a variable called age and assign an integer value of 24 to it. $allowance, _contact, lastName, address1 Which are valid variable names Nothing. (The code will simply remain in memory but will not execute.) What happens if you define a function but do not call it? 16 What does the alert message display? 24 What does the alert message display? Size & manufacturer A calculator is a real-world object. Which are properties of the calculator object? 246 What does the following code write to the page? 1 (function addition(a,b){ sum = a + b; return sum }) Which function outputs the value of sum? math(15); What correctly calls the math function to return a value of 46? string (example) What type of data is represented here? 14 What is written to the page by this code? 99 What is written to the page by this code? 2 (("Welcome!");) Which code should you use if you want to specify a message string to appear as part of your webpage as it loads? The variable's value What component of JavaScript is "Web Development Applications" in this example? Welcome to the course, Web Development Applications! What is the outcome of this code if "Web Development Applications" is entered into the prompt? var fullName = fName + " " + IName; Without modifying the existing variables, how would you concatenate these two variable so that the value of fullName is "Jane Doe"? 12 What is displayed in the alert message below? 7 What is displayed in the alert message below? Hello World What is the value of myText after execution? False What does the following code return? 1 (alert(3 * parseInt(num));) Which alert method will display 30 by using the variable num = "10"? HELLO WORLD! What is the value of var res after execution? onclick (function) What event handler calls the runMe function? 1 (prompt("What is your age?");) Which code correctly
Document information
- Uploaded on
- August 22, 2023
- Number of pages
- 78
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers