GeekInterview.com
Series: Subject: Topic:

VB Script Interview Questions

Showing Questions 1 - 20 of 23 Questions
First | Prev | | Next | Last Page
Sort by: 
 | 

With out using mid function in vb scripts

Asked By: Interview Candidate | Asked On: Mar 25th, 2013

With out using mid in build functions require ,can any one help.

What is the use of optional key word in vbscript?

Asked By: christia | Asked On: Mar 25th, 2007

Answered by: Sandhya.Kishan on: Apr 16th, 2012

Vb Script functions cannot use the Optional keyword because it Vb Script we need to declare every argument that we want to use. In Visual Basic the Optional keyword, which allows some arguments to be ...

How are hex literals specified in vbscript?

Asked By: Remasri | Asked On: Mar 25th, 2007

Answered by: Sandhya.Kishan on: Apr 16th, 2012

The hex literals are specified using"Hex()" method in vb script.

Example:
a = 25
Wscript.Echo Hex(a)
The output of this script is 19, which just happens to be the hex equivalent of 25.

What are the conditional statements used in vbscript?

Asked By: JamesMike | Asked On: Mar 25th, 2007

Answered by: Shubham Jaiswal on: Jan 29th, 2012

If-end if,If-else-end if,If-elseif-else-end if,
Select case(like switches in C)

Answered by: suvarna on: Jan 27th, 2012

IF,THEN, ELSE, END

How to hide the files with vbscript ?

Asked By: cameron | Asked On: Nov 6th, 2011

Hi, i want code in vbscript that make all (files and folders) : a- if there are some (files and folders) not hidden make them hidden and if there are other (files and folders) hidden stay hidden without any change.

Answered by: Lokesh M on: Dec 20th, 2011

You need to make use of GetFile method on FileSystemObject and then set the value of "Attributes" property to -1 to hide the file.

What is the command or symbol used in vbscript for writing remarks?

Asked By: SriramKrishna | Asked On: Mar 25th, 2007

Answered by: pratap on: Oct 20th, 2011

rem is the command or an '(single quote) is used to write the remarks

Answered by: Asis padhy on: Sep 30th, 2011

We can use single quote (') or rem statement from beginning

How is variables declared in vbscript?

Asked By: Bessie | Asked On: Mar 25th, 2007

Answered by: shamimamd on: Sep 28th, 2011

Simple way - Dim L, W --------------------(L and W is a variable) L = 3 W = 5 (so now your L value is 3 and W value is 5) Area = L*W Please Bessie tell me what would be the expected result out o...

Answered by: shamimamd on: Sep 26th, 2011

Declare a variable, a constant Dim [Const] $variable [ = initializer ] Dim [Const] You can also declare multiple variables on a single line: Dim $a, $b, $c And initialize the variables: Dim $a = 2,...

What is parametrization ?

Asked By: Cheekoti Rajender | Asked On: Oct 16th, 2006

Answered by: c.balamurugan on: Aug 5th, 2011

to get value from the arguements

Answered by: Amit Dharmale on: Jul 27th, 2011

parametrization is nothing but, using variables instead of values. Mostly used if some values are to be taken at run-time, or as user input, instead of hard coding them in script.

Ex

c = 1 + 2 'Simple addition of 1 and 2

a = inputBox ("Enter A")
b = inputBox ("Enter B")
c = a + b

What is the use of redim statement in vbscript?

Asked By: RajivPrasad | Asked On: Mar 25th, 2007

Answered by: Amit Dharmale on: Jul 27th, 2011

ReDim statement is used when we use dynamic array. i.e. to define size of an array dynamically. If you want to preserve the previously added elements in an array, you can use keyword preserve along w...

Answered by: gsrmohan on: Dec 21st, 2010

ReDim is used to resize the array or redeclare a variable.

What are the data types supported by vbscript?

Asked By: RajivPrasad | Asked On: Mar 25th, 2007

Answered by: gsrmohan on: Dec 21st, 2010

VB Script supports only one type of data type called VARIANT.

But the Variant contains following sub types :
1.Boolean
2.Integer
3.Currency
4.Long
5.Double
6.Date
7.String
8.Object

Answered by: anuj.rath on: Jun 27th, 2010

vbscript supports only one datatype variant.
but variant can have subtypes like empty null boolean byte integer etc

How does vbscript differ from Javascript and which proves better? State the reason for the same

Asked By: Remasri | Asked On: Mar 25th, 2007

Answered by: Skhanam on: Jun 2nd, 2010

VB Script is compatible with only IE

Java is compatible with all browsers.

Answered by: ding dong bell on: Jul 17th, 2007

JavaScript is better than VB Script.

VB Script does not support  client side validation where as Jscript supports it.
For Eg: If we want to validate some date before sending to the server, Vb script doesn't support it where as JavaScript suports it.

What are the major differences between visual basic and vbscript?

Asked By: RajivPrasad | Asked On: Mar 25th, 2007

Answered by: cleo_nerd on: Feb 25th, 2010

There are two main differences :1. VB script is 'untyped' and VB is 'typed'. This means that the datatypes doen NOT need to be set while declaring variables in VBScript unlike in VB.Th...

Answered by: Rita Bhukta on: Apr 10th, 2007

They are different: You dont compile VB scripts like in Visual Basic. You just distribute them as plain text HTML files.The script engine interprets this text into intermediate code when it loads...

What are the types of arrays handled by vbscript?

Asked By: SriramKrishna | Asked On: Mar 25th, 2007

Answered by: Automation on: Oct 24th, 2009

Broadly the array can categorized in 2 different ways.
      1. Static Array.
      2. Dynamic Array.

Static Array can be categorized into
      - Single dimension Array.
      - Multi dimension Array.

Answered by: Hema.Biju on: Sep 22nd, 2008

1.Static array
2.Dynamic array

Defining vbscript arrays

Asked By: christia | Asked On: Mar 25th, 2007

How are arrays defined in vbscript?

Answered by: sujata_2221981 on: Jul 8th, 2009

Dim array(10)
' add values
for i=0 to 9
array(i)=i

Answered by: Barghav on: Sep 27th, 2007

Arrays are Declared like this:

DIm A as Variant ---> Where "A" is an Array.('Declaration part ---)

   A= Array("Value1",Value2"..........) (Definition part)

What are the browsers supported by vbscript?

Asked By: JamesMike | Asked On: Mar 25th, 2007

Answered by: vishal anand on: Oct 14th, 2007

Mostly Internet Explorer because both are of microsoft.But it also support netscape.

What are the platforms supported by vbscript?

Asked By: JohnMathew | Asked On: Mar 25th, 2007

Answered by: G.Srivalli on: Oct 3rd, 2007

VBScript is supported by Windows 95, Windows NT (including a native version for Alpha), 16-bit Windows, and Unix Solaris. Microsoft is currently working with others to bring VBScript to UNIX versions for HP, Digital, and IBM platforms.

What is the use of option explicit in vbscript?

Asked By: Remasri | Asked On: Mar 25th, 2007

Answered by: Sujatars on: Jun 12th, 2007

When you use the Option Explicit statement, you must explicitly declare all variables using the Dim, Private, Public, or ReDim statements. If you attempt to use an undeclared variable name, an error o...

Answered by: Sumeet Singh Pramar on: Mar 27th, 2007

To inilialize all the variable before using them.

What is variant data type in vbscript?

Asked By: GregMark | Asked On: Mar 25th, 2007

Answered by: Sujatars on: Jun 12th, 2007

VBScript has only one data type called a Variant. A Variant is a special kind of data type that can contain different kinds of information, depending on how it's used. Because Variant is the only data type in VBScript, it's also the data type returned by all functions in VBScript.

Is it possible to pass optional argument to function in vb script?

Asked By: aniket | Asked On: Sep 13th, 2006

Answered by: Arun on: Jun 7th, 2007

VB script does not support optional keyword. Its not like VB. But dont know why its not provided like in VB.

Answered by: George on: Sep 29th, 2006

Yes, it is possible to pass optional parameters to vb script functions.

It could be done as done in vb by qualifying optional key word.

What are the differences between sub-procedure and a function in vbscript?

Asked By: Bessie | Asked On: Mar 25th, 2007

Answered by: Nimishre on: Apr 22nd, 2007

The main difference is function returns a value where as a Sub-procedure does not.

First | Prev | | Next | Last Page

 

 

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.