Course Solutions Uncategorized (Solved) : 5 Assume Coursetitle Principles Information Technology Computation Following Javascript St Q30645678 . . . .

(Solved) : 5 Assume Coursetitle Principles Information Technology Computation Following Javascript St Q30645678 . . . .

 

5.

Assume courseTitle =”Principles in Information Technology andComputation”;

What does the following JavaScript statement do?

var something = courseTitle.search(‘o’);

It  finds all o’s and save them to variablesomething.

It saves the position of the first occurrence of “o” to variablesomething.

It saves the position of the last occurrence of “o” to variablesomething.

It will save a true or false to something depends on whetherthere is an ‘o’ in courseTitle.

6.

Assume phrase= “Peter Piper picked a peck of pickled peppers”,What will be returned if phrase.search(/[aeiou]/) is called?

1

7

9

13

7.

Assume courseTitle =”Principles in Information Technology andComputation”;

Which of the following can return “Information” ?

courseTitle.substring(14, 24)

courseTitle.substring(14, 25)

courseTitle.substring(13, 25)

courseTitle.substring(13, 24)

8.

UESTION 8

What does the following code segment

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post