Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

________ attempts to evaluate a string representing any javascript literals or v

ID: 3544061 • Letter: #

Question

________ attempts to evaluate a string representing any javascript literals or variables, converting it to a

number.

a) eval

b) parseFloat

c) parseInt

d) None

Which is not an attribute of the cookie property?

a) path

b) host

c) secure

d) domain

How do substring() and substr() differ?

a) One is not a method of the String object.

b) substr() takes three arguments, substring() only two.

c) Only one accepts a desired string length as an argument.

d) Besides the spelling, nothing.

In Javascript, which of the following method is used to find out the character at a position in a string?

a) charAt()

b) CharacterAt()

c) CharPos()

d) characAt()

What will be the output of following JavaScript code snippter?

<script type="text/javascript">

var cst = "PHPKB Knowledge Base Software";

var result =cst.substring(7,8);

document.write(result);

</script>

a) PHPKB Kn

b) Kn

c) ow

d) n

Explanation / Answer

a

b

c

a

d