VBScript Multiple choices


Total available count: 25
Subject - Scripting Languages
Subsubject - VBScript

Which function is used to get a combined string from an array of string in VBScript?


 

 

 

 



C


Solution:-

Join Function
The Join function returns a string that consists of a number of substrings in an array.

Join Function Syntax is as below:

Join(list[,delimiter])

list            -    List is a one-dimensional array that contains the substrings to be joined and it is required. 
delimiter    -    The character(s) used to separate the substrings in the returned string. Default is the space character and it is optional. 

Join Function Example is as below:

Separating items in an array, with and without using the delimeter parameter:

<%

Courses=Array("HTML","CSS","HTML5","jQuery","Java Script","ReactJS",".Net")
response.write(Join(Courses) & "<br />")
response.write(Join(Courses,", ") & "<br />")
response.write(Join(Courses," ### "))

%>

The output of the above code will be as follows:

HTML CSS HTML5 jQuery Java Script ReactJS .Net
HTML, CSS, HTML5, jQuery, Java Script, ReactJS, .Net
HTML ### CSS ### HTML5 ### jQuery ### Java Script ### ReactJS ### .Net




Next 5 multiple choice(s)

1

Which function is used to split a string into an array in VBScript?

2

Which function is used to get the largest subscript of an array in VBScript?

3

Which function is used to get the smallest subscript of an array in VBScript?

4

How will you create dynamic-array variables in VBScript?

5

Which function is used to compare two strings in VBScript?

Comments