Exam1pass
Easiest way to pass IT exams
Exam1pass Help You Pass Any IT Exam
http://www.exam1pass.com
Exam
: Lotus 190-753
Title
: Using JavaScript in IBM
Lotus Domino 7
Applications
Version : Demo
Exam1pass
Easiest way to pass IT exams
Exam1pass Help You Pass Any IT Exam
http://www.exam1pass.com
1. Look at the following JavaScript function:
function clickButton
{
document.forms[0].submitMe.onClick( )
}
Which one of the following will this function do?
A. Run a global JavaScript function named onClick( ).
B. Run the onClick event of an object named submitMe.
C. Place the cursor in an input on the form named submitMe.
D. Run a JavaScript function named onClick( ) that is on a form object named submitMe.
Answer: B
2. The following code will produce a run-time error:
{
// Line 1
path=location.pathname.toLowerCase( );
// Line 2
nsfPos=path.indexOf(".nsf");
// Line 3
path=path.substring(0, nsfpos+5);
// Line 4
}
Which one of the lines is incorrect?
A. Line 1
B. Line 2
C. Line 3
D. Line 4
Answer: D
3. Ann created the following code segment:
function checksubject()
{
if(window.document.forms[0].Subject.value=="")
{
alert("Please enter a subject.");
window.document.forms[0].Subject.focus()
}
else
{
window.document.forms[0].submit()
}
Exam1pass
Easiest way to pass IT exams
Exam1pass Help You Pass Any IT Exam
http://www.exam1pass.com
}
Which one of the following could Ann place between the function name and the if statement to prevent the
need to type window.document.forms[0] each time it is needed?
A. function checksubject()
{
(this)
{
if(Subject.value="")
B. function checksubject()
{
with(this)
{
if(Subject.value="")
C. function checksubject()
{
(window.document.forms[0])
{
if(Subject.value=="")
D. function checksubject()
{
with(window.document.forms[0])
{
if(Subject.value=="")
Answer: D
4. Marie is getting an error in the following line of JavaScript code that is attached to a button on a Notes
form:
totalAttempts[0] = 1;
How can she add error checking to this code to handle the error?
A. if (isError(totalAttempts[0] = 1)