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;
}
```
You might also like to view...
Critical Thinking QuestionsCase 4-2You and a classmate, Joyce, are working on a new Web site project. You and Joyce meet after class to discuss formalizing your Web site plans.At today's planning meeting, Joyce suggests that Cascading Style Sheets (CSS), specifically external style sheets, be used to layout and format your Web pages. You tell Joyce that ____.
a. no, you should use direct formatting with inline styles, which is the most efficient way to layout and format Web pagesc. no, using CSS and external style sheets violates W3C standards for layout and formatting and you want the site to be standards compliantb. you agree; external style sheets will make the layout and formatting process more efficient and will help you control the look and feel of all pages at the sited. if she is really concerned about consistency and efficiency, using CSS is the wrong approach; using templates is the only way to go What will be an ideal response?
What tactic is being used when an attacker trailing closely behind an employee enters a restricted area without any security credentials by utilizing their proximity to another employee with security clearance?
A. Shoulder surfing B. Footprinting C. Piggybacking D. Dumpster diving
____ documents consist of the text to be displayed on a webpage, together with a number of special characters: tags that achieve formatting, special effects, and references to other similar documents.
SQL XML HTML CSS
?ProDiscover adds a ____________ extension automatically on all copied clusters the Recover Clusters function exports.
Fill in the blank(s) with the appropriate word(s).