option
Cuestiones
ayuda
daypo
buscar.php

test

COMENTARIOS ESTADÍSTICAS RÉCORDS
REALIZAR TEST
Título del Test:
test

Descripción:
complete con las respuestas correctas

Fecha de Creación: 2020/07/23

Categoría: Otros

Número Preguntas: 40

Valoración:(1)
COMPARTE EL TEST
Nuevo ComentarioNuevo Comentario
Comentarios
NO HAY REGISTROS
Temario:

you are writing javascrien of program for the phone company you need to change a paragraph "can please a call" when the user move the mouse inside paragraph. how should you complete the code? to answer, select the appapropiate code segment in the answer area. <!DOCTYPE html> <html> <body> <h2>JavaScript Pregunta1</h2> <p id="para" onmouseover="mantenerPuntero('puede')" onmouseout ="mantenerPuntero('No puede')"> No puede realizar una llamada</p> <script> function mantenerPuntero(puede) { document.getElementById("para").innerHTML= puede+" Hacer una llamada"; } </script> </body> </html>. <!DOCTYPE html> <html> <body> <h2>JavaScript Pregunta1</h2> <p id="para" onmouseout ="mantenerPuntero('puede')" onmouseout ="mantenerPuntero('No puede')"> No puede realizar una llamada</p> <script> function mantenerPuntero(puede) { document.getElementById("para").innerHTML= puede+" Hacer una llamada"; } </script> </body> </html>.

you are creating a dynamic HTML document by using javaScript you need to create popup window tha displays additional information when the user clicks a botto. which object should you use?. document. body. screen. window.

you are designing a web page that contains a blue botton, when the botton is pressed it should call a function than displays the message welcome! when the cursor hovers over the botton, the botton should turn red. When the cursor leaves the button, the botton should revert back to its original color of blue. you want to complete the markup using the appapropiate HTML events how shuld you complete the makup ?to answer select the appropiate in the area. onclick, onmouseover, onmouseout. onmouseover, onmouseout, onclick.

you are creating a web page with a script. the script will insert the windonw's location inside the page's input element how should you complete the code? to answer, drag the appropiate code segment to the correct location. Each code segment may be used once than once, or not at all, you may need to drag the split bar between panes or to view content. window. document. getElementById, location.

you are designing a web with a script than must dynamically chage the content of a paragraph element to display the value returned by the function randomQuote() you have created the following code. document.getElementById("tester").innerHTML = randomQuote();. document.getElementById("tester").title= randomQuote();. document.getElementById("tester").script = randomQuote();. document.getElementById("tester").value= randomQuote();.

You are creating a web page that dinamically creates input fields when a user clicks an Add button. Each input field must be numeric and specify Enter Score as its placeholder text. You want to dynamically add an input field. How should you complete the code? To anwer, select the appropiate values in the answer area. appendChild. createElement. createAttribute. setAttribute. insertAdjacentElement. setAttribute. appendChild.

You run the following code: ,,, What value is stored in the variable chain after the code runs?. 0 1 3 4 5 6 7 8. 3 4 5 6 7. 0 1. 1 3 4 5 6 7 8. 0 1 3 4 5 6 7.

8- You are creating a function to determine whether or not a year is a leap year. A year is a leap year if it is divisible by 4 but not by 100, If the year is divisible by 4 and by 100, it is not a leap year unless it is also divisible by 400. How should you complete the code? To answer. select the appropriate code segments in the answer area. (year %4 > 0);. (year % 4 ==0);. (year %4!=0);. bIsLeapYear && (year% 400 ==0);. bIsLeapYear || (year % 400 != 0);. bIsLeapYear || (year % 400 == 0);.

You are writing a script for the AdventuresWorks travel club. Members are categorized by type. Evaluate the following code. Line numbers are included for reference only. type A ? 50. type A? 20. type T? 20. type T? 50. type C? 100. type C? 5. other members? 100. other members? 5.

You are creating a JavaScript program for an accounting system You create the following code. Line numbers are included for reference only. You need to ensure that a customer can only do a withdrawal if the mount is equal to or less than their current balance. A. if (amount >= currentBalance){. B. if (amount <= currentBalance){. C. if (amount > currentBalance){. D. if (amount < currentBalance){.

Variable x has a value of 5. Variable y has a value of 7. For each of the followingexpresions. select True if the statement evaluatesto true. Otherwise. select False. x < 7 && y > 6. x == 6 || y == 6. x !== 7. !(x == y).

You are creating a JavaScript program for Graphic Design Institute. One of the functions of the program checks if the height of a graphic is equal to or greater than the minimun size of 50 but less than 100. How should you complete the code?. >= && <. <= || <. <= &&. < || >.

You are writing a JavaScript function for Trey Research. the _projects array_ contains the number of scientists assigned to each project. You need to write a function that counts the total number of scientists allocated to all projects. How should you complete the code?. projects.length. projects[4]. while(i < count) {. while(i > count) {. for (i == count) {. for (i != count) {.

else. if(age >= 24 && age <= 35){. else if(age >= 36 && age <= 45){.

The function has the following requirements: °A maximun value will be passed as a parameter °A counter must start t 1 and be inremeted by 1 each interaction. °The value of the counter must be displayed each time through the loop. °The loop must exit after displaying the maximum value. while_(true)_{ if_(count_>_max)_break; count_=_1; } console.log(count++);.

Determine the data type that is being handled. var age = 23;. var execpt = false;. var initial= 'D';. var salary = 123.5;. var zip = "81000".

You are crerating a web page that contains a script with a function named math. The function accepts the following three parameters: ¬The first parameter is a string containing the name of the math operation to perform. ¬The second parameter is the first number in the math operation ¬The third parameter is th esecond number in the math operation. The function will call an inner function based on the operation. How should you complete the code?. A- return multiply (a,b);. A- return multiply (x,y);. B- return divide (a,b);. B- return divide (n,d);. C- function multiply(n,d){. C- function multiply (x,y){. D- function divide(n,d){. D- function divide(){.

You are creating an app for AdventureWorks. You must complete a function that calculates the number of days between two dates. A partial day should be counted as a full day. The function must return a positive whole number. Which code should you use? To answer, select the appropriate code segments in the answer area. 1- floor. 1- abs. 1- ceil. 1- round. 2- floor. 2- min. 2-max. 2- ceil.

You are writing a web application for AdventureWorks. The web application stores customer information in an array of objects. Each Customer object has the following properties. °customerName °lastOrderDate °orderAmount You need to create and populate a list of customers and check which of these customers placed an order in last 3 years. How should you complete the code?. 1-Date(currentDate).getYear(). 1-currentDate.getYear(). 1-getYear(). 1-getDate. 2-Date(orderDate).getYear(). 2-orderDate.getYear(). 2-getYear(). 2-getDate.

You work for Fabrikam, Inc. You need to create a function that meets the following requirements: °JavaScript code must execute in strict mode. The function must return the produce name, weight and revenue. °The revenue must be formatted as a currency appropriate for the compure´s local setting. °The weight must be formatted to display two digits after the decimal point. for 1: use strict. "use strict". use strict;. "use strict";.

You work for Fabrikam, Inc. You need to create a function that meets the following requirements: °JavaScript code must execute in strict mode. The function must return the produce name, weight and revenue. °The revenue must be formatted as a currency appropriate for the compure´s local setting. °The weight must be formatted to display two digits after the decimal point. for 2: revenue = amount.toLocaleString();. revenue = amount.toString();. var revenue = amount.toLocaleString();. var revenue = amount.toString();.

You work for Fabrikam, Inc. You need to create a function that meets the following requirements: °JavaScript code must execute in strict mode. The function must return the produce name, weight and revenue. °The revenue must be formatted as a currency appropriate for the compure´s local setting. °The weight must be formatted to display two digits after the decimal point. for 3: pounds = weight.toFixed(2);. pounds = weight.toPrecision(2);. var pounds = weight.toFixed(2);. var pounds = weight.toPrecision(2);.

You want to ensure that the data being stored is in the correct data type. To answer, drag the appropriate data type to the correct code segment. Each data type may be used once, more than once, or not at all. var initial = "J";. var address = 4567 + " Main Street Buffalo NY 98052 ";. var t = typeof (32);. var active = true;. var purchase = 4.99;. var history;.

You are wrting a function that changes the player score in a game. °The function has the following requirements: ¬score is a Number ¬bonus is a boolean ¬points is a Number °if no value is specifed for points , the points start at one °if bonus is true, the points must be doubled °after checking for the bonus, points must be added to score °The score is returned at the end. You write the following code: 01function changeScore(score, bonus) { 02 03 if (bonus == true) { 04 points = points * 2; 05 } 06 score = score + points; 07 return score; 08 } 09 var points = 5; 10 var score = 10; 11 var newScore = changeScore(score, false, points ); 12 console.log(newScore);. To meet the requirements, the following code should be place at line 02? if (points == undefind) points = 1;. When the code is run, the value of scoreat line 07 is 15. if the function is alled with only two parameters, the value of the third parameter will be 0. Line 04 will change the value of the var points declared at line 09.

You are using JavaScript to develop a Tic-Tac-Toe program. You create the following code: var grid = new Array(); grid[0] = ["-", "-", "X"]; grid[1] = ["-", "-", "-"]; grid[2] = ["-", "o", "-"];. Which array element contains the "X"?. Which array element contains the "o"?.

You review the following JavaScript code: var x = "10"; var y = x + 10; When this code executes, the value of y is undefined. Review the underlined text. If it makes the statement correct, select "no change is needed" if the statement is incorrect, select the anwer choice that makes the statement correct. No change is needed. the value of y is 20. the value of y is "1010". the value of y is NaN.

Your team is developing a Connect Four game that is played on a seven by six grid. You want to initialize all elements of a two-dimensional string array representing the play grid. When a player makes a move, the elements will be changed to red or black. You need to initialize all elements of the array to 'empty'. How should you complete the code?. a= new array();. a= new[7,6];. a[i,5]. a[i][j]. a push(i,j). a[i,j].

You review the following JavaScript code: function toMiles(Kilometers) { // 1 Kilometer = 0.621371 Miles return 0.621371 * Kilometers console.log(return); console.log(Kilometers); } for each of the following statements, select Yes if the statement is true. Otherwise, select No. The code uses comments. The code uses appropriate indenttion. The code uses approriate naming conventions. The return instruction uses a correct sintaxis.

Your instructor asked you to use exception handling when using the function displayInfo(). The instructor wants the function display() to always run, regarless of whether an exception occurs. If there is a exception, the script needs to call the functions logDisplayInfoError() and correctDisplayInfo(). You need to implement exception handling to meet your instructor´s requirements. How should you complete the code?. finally{. try{. catch(msg){}. finally(msg){. catch{. catch{. try{. catch(msg){. finally(msg){. finally{.

You are writing a JavaScript application for an accunting system. You create the following code. Line numbers are reference. 01 var firstName = "Ari"; 02 var lastName = "Bixhorn"; 03 var fullName = firstName + " " + lastName; 04 var fullNameSalary = fullName + " " + salary; 05 var salary = 48000; 06 console.log(fullNameSalary); What is the result of running this program?. A. Syntax error. B. Runtime error. C. Ari Bixhorn 48000. D. Ari Bixhorn undefined.

You are writing a program for Adventure Works Cycles. One of the functions of the program is to keep track of the total number of bicycles and biccle tires in the shop. For each bik that is added,two bike tires will be added. You need to complete the code segment using the correct method to ensure the totals are correct when adding new bikes. How should you complete the code?. bikes ++ o bikes =+;. var bikes ++. tires += 2;. tires = 2;.

You are writing a JavaScript function that accepts a variable named x and evaluates an arithmetic formula. The formula is described as follows: X raised to the second power, and then multiply by -1, where passed into the function and y is the result return by the function. You have created the following code. Line numbers are included for reference only. 01 function square(x){ 02 03 return y; 04 } Code segments: - -1 2 x -x * +. x ( ); -x * y= -1.

For each of the following statements, select Yes if the statement is true. Otherwise, select No. The alert() method displays a popup box with Yes and No buttons. The getElementById(elementName) method returns the element that has the name attribute with the value specified in the elementName parameter. The window.prompt() method can be written without referencing a window object. Setting a cookie´s expiration to a date and time prior to now causes the cookie to be deleted.

You are writing JavaScript within an HTML document. If JavaScript is disabled, a message informing the user that they need to enable it must display. You must choose the correct HTML tag to show content when JavaScript is disabled. Which tag should you use?. A. meta. B. script. C. link. D. noscript.

You are performing a unit test on the following JavaScript code: function validatePin(pin) { var validated = !isNaN(pin) && pin.toString().length == 4; return validated; } You test the vaidatePin function by passing different arguments to it. For each of the following arguments, select Yes if the function returns true. Otherwise, select No. “ABCD”. “1234”. 1234. 20 * 50.

QUESTION 36: You are creating a web page that requests a username. You create the following HTML form: <form id=”credentials” action=”#” method =“get”> <p> Username: <input type=”text” id=”username” /></p> <input type=”button” onclick=” getUsername()” value=”Submit”> </form> You need to write a function that retrieves the username from the form. How should you complete the code? To answer, drag the appropriate code segments to the correct locations. Each function may be used once, more than one, or not at all. You may need to drag the split bar between panes or scroll to view content. NOTE: Each correct selectioj is worth one point. Code Segments Document firsChild forms HTMLDocument innerHTML Value window. . .credentials.username. document forms value.

You review the following web page markup: <form name=”problemTicket” action=”mailto:help@contoso.com” method=”post”> <input name=”problemDescription” type=”text”/> <input name=”youName” type=”text”/> <input name=”problemDescription” type=”tel”/> <button>Create Problem Ticket</button> </form> The page allows users to create a problem ticket and send and send an email to help@contoso.com. The information in the e-mail contains a problem description, the user´s name, and the user´s phone number. You need to perform custom validation of the user´s phone number whenever the page attemps to send the problem ticket. A. submit. B. onsubmit. C. target. D. checkValidity.

You are writing a program for Woodgrove Bank. The update() function must update a paragraph element with the input from the user, and then hide the input box. You create the following code. Line numbers are included for reference only. 01 <html> 02 <body> 03 <p id=”para”>Enter your name</p> 04 <input type=”text” id=”box” onchange=”update()” value=””> 05 <script> 06 var output = document.getElementById(“para”); 07 var input = document.getElemetById(“box”); 08 function update() { 09 . 10 . 11 } 12 </script> 13 </body> 14 </html> Which code should you add at lines 09 and 10?. A. output.innerHTML = input.value; Input.hidden = true;. B. output.value = input,innerHTML; output.hidden = true;. C. output.innerHTML = input.innerHTML; input.style.visibility = false;. A. output = input input.hiddden = true;.

You are creating a web page that allows customers to choose how hot their spice is. If they choose spicy, a warming should be displayed. You create the following form. Line numbers are included for reference only. 01 <form name = “orderForm” action = “#” method =”post”> 02 <select name = “heatIndex” required> 03 <option>Mild</option> 04 <option>Medium</option> 05 <option>Spicy</option> 06 </select> 07 <button onclick = “checkWarning()”>Order</button> 08 </form> You create the following JavaScript code to display the warning. 09 function checkWarning() { 10 var option = document.forms.orderForm[“heatIndex”] 11 if (option == “Spicy”) { 12 alert(“Spicy food: Good luck”); 13 } 14 } When you choose spicy and click Order, the warning fails to display. You need to solve this problem. What should you do?. A. Change line 10 to var option.value = document.forms.orderForm[“heatIndex”];. B. Change line 10 to var option = document.forms.orderForm[“heatIndex”].value;. C. Change line 7 to <button onclick = “checkWarning;” >Order</button>. D. Change line 7 to <button onchange = “checkWarning();” >Order</button>.

You are creating code that takes someone´s birthday as a string and calculates the number of days between the person´s birthday an the current day. The birhday can be any date from 1990 to the current date. You create the following function: __________________________________________________ funciton getDaySinceBirth(birthDayString) | { | }_________________________________________________| You need to complete the function. which five code blocks should you use to develop the solution? To answer, move the appropriate code blocks bla bla.... (order the number, the ones that aren´t needed values as 0.). daysAlive = elapsed / (1000 * 60 * 60 * 24);. today = Date.now();. elapsed = today - birthDay;. daysAlive = elapsed.getDays();. elapsed = birthday + today;. birthDay = Date.parse(birthDayString);. birthDay = new Date(birthDayString);. var birthDay; today, elapsed, daysAlive;.

Denunciar Test