EMT Practice Test

1. Question Content...


Question List

Question1: What is the expected result when executing the following scripts in a web browser?

Question2: Consider the following code:

The processform() function is not executed when the submit button is pressed. What change should be made to correct this?

Question3: Which choice demonstrates the correct syntax for declaring a variable to represent the month in which a person was born?

Question4: Consider the following code.

Which of the following will occur if the user's response is 25?

Question5: Joseph is designing a Web form for new patient enrollment in a doctor's office He wants to ensure that users enter valid information on the form He also wants to make sure that hackers cannot submit malicious code to gain access to information about other patients. What technique should he use?

Question6: Which of the following comparison statement will return true?
A) X=10;
Y=11;
y--;
x==y
B) X=10;
Y=11;
Y++;
x==y'
C) X=11;
Y=10;
y--;
x==y;
D) X=11;
Y=10;
y-= 1;
x==y

Question7: Juan is testing his JavaScript application, which includes the following code:

Assuming Juan enters August for his birth month and his name for first name, what is the value of birthMonth after executing this code?

Question8: Consider the following code:

What is the expected result of this script?

Question9: Geraldine is creating a custom object to store user account data on her Web site. She has written the following code it is not working properly. What change should she make to enable the script to run correctly?

Question10: Kirken needs to write a script to construct custom objects that store user account information such as a username. password and e-mail address for a Web site. What should he add to the following code to set these properties?

A)

B)

C)

D)

Question11: Derrick is building a Web form to collect user data for a retail Web site. He will be collecting the users name e-mail address phone number, physical address and credit card information. What should he do to protect his users, when collecting this data?

Question12: Consider the following code:

Ginger needs to write a script to display a pop-up alert box with the type of credit card the user selected Which of the following code blocks should she use?
A)

B)

C)

D)

Question13: Consider the following code:

What change should be made to ensure that it correctly displays the value of name in all uppercase letters?

Question14: Consider the following code:

What text will display in the alert dialog box?

Question15: Which of the following is an advantage of using the Virtual DOM?

Question16: Loni needs to create a scriptable button in her Web form that does not submit the form but instead, calls a custom function What HTML code should she use?
A)

B)

C)

D)

Question17: Ashton need to write out the items in any array as a list, with their array index number followed by their value. Which block of code will accomplish this?
A)

B)

C)

D)

Question18: Consider the following code:

What will be displayed for the computer inventory after the Update Inventory button is clicked twice?

Question19: Considering the following code:
Var 1 ;
For (I = 1; I < 10; I ++)
What part of the code fragment initializes the counter variable?