0% found this document useful (0 votes)
2 views

CSS U2 Mountreach A2

Uploaded by

Deep gaichor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

CSS U2 Mountreach A2

Uploaded by

Deep gaichor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

CSS (Client Side Scripting)

Chapter 2 : Array, Function and String

Date: 17 / 08 / 2024 Time : 07:00 PM to 08:00 PM

Exam 2:

Please solve all below Questions in 1 Hour :

1. Write a JavaScript function to count the number of vowels in a given string.?

2. Write a Java script that initializes an array called flowers with the names of 3

flowers. The script then displays array elements?

3. Write a javascript to checks whether a passed string is palindrome or not?

4. Write a JavaScript that accepts a string and searches for the pattern “MSBTE” in

the given string using regular expressions. If the pattern is found, JavaScript will

display that “Pattern is found” else display “Pattern is not found”.?

5. Explain the use of push and pop functions?

6. Write the use of CharAt() and indexof() with syntax and example?

7. Differentiate between shift() and push() methods of an Array object.?

8. Write a Java script that will replace the following specified value with another

value in a string.

String = “ I will fail”

Replace “fail” by “pass”

9. Differentiate between concat() and join() methods of array object?

10. Write a javascript to call a function with argument for addition of two numbers

You might also like