Which of the following will check to see if a password contains a # sign, given that the character code for "#" is 37? The password is 8 characters long and is stored in a variable named pword.

a.
```
var check = false;
for (j = 1; j < 7; j++)
{
if (pword.charCodeAt[j] == 37);
check = true;
}
```

b.
```
var check = false;
for (j = 0; j < 8; j++)
{
if (pword.charCodeAt(j) == 37)
check = true;
}
```

c.
```
var check = false;
for (j = 0; j <= 8; j++)
{
if (pword.charCodeAt()== 37)
check = true;
}
```

d.
```
var check = true;
for (j = 1; j < 9; j++)
{
if (pword.charCodeAt(37)== "#")
check = true;
}
```

b.
```
var check = false;
for (j = 0; j < 8; j++)
{
if (pword.charCodeAt(j) == 37)
check = true;
}
```

Computer Science & Information Technology

You might also like to view...

On the Style button, the _________________________ style allows you to specify exact pixel values for the marquee’s height and width.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

The ________ value is entered automatically when a new record is created.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology