You are on page 1of 6

VBScript Interview Questions And

Answers Guide.

Global Guideline.
http://www.globalguideline.com/

VBScript Interview Questions And Answers

ba
lo

VBScript Job Interview Preparation Guide.

ui

lG

Question # 1
Explain about VB Script?

Read More Answers.

lin
de

Answer:VB script is a Microsoft programming language and it resembles a lower version of the VB. It is an Active Scripting language. This scripting language is included in
windows operating system by default. With the use of msscript.ocx you can install VB Script.

Question # 2
Give examples where VB script can directly run on users system with Windows as OS?

Read More Answers.

.C

Question # 3
Explain VBScript in detail.

Answer:A simple example detailing the running of VB Script is by utilizing Windows Script host environment. Visual basic is a stand alone application which has a .vbs as
extension. Input can be provided through graphical user interface and output can be obtained by Wscript.exe from dialog and input boxes. From command line it can
be invoked by Cscript.exe.

Read More Answers.

Question # 4
What are string functions in VBScript?

Answer:This is a scripting language developed by Microsoft and is based loosely on Visual Basic. Its functionality in a web environment is defendant upon either an ASP
engine or the Windows Scripting Host, and must be used on a Windows hosting platform.

Answer:Asc() - Returns ANSI Character Code


Chr() - Returns Character from ANSI Code
InStr() - Find a string within another
InStrRev() - Find a string within another (Reverse)
LCase() - Convert a string to lowercase
Left() - Crops a string from left
Len() - Determine the length of a string
LTrim() - Remove leading spaces from a string
Mid() - Crops a string
Replace() - Replace a substring within a string
Right() - Crops a string from right
RTrim() - Remove trailing spaces from a string
Space() - Creates a string with the specified number of spaces
StrComp() - Compare two strings
String() - Creates a repeated character string
StrReverse() - Reverse the characters of a string
Trim() - Remove both leading and trailing spaces from a string
UCase() - Convert a string to uppercase
Read More Answers.

Question # 5
Explain few date functions in VBScript.
Answer:Date(),
Copyright http://www.GlobalGuideline.COM

Page 2/6

VBScript Interview Questions And Answers

Time(),
Now(),
Left(),
Right(),
Mid()
Read More Answers.

Question # 6
What is event handling in VBScript?

ba
lo

Answer:The actions that are performed by clicking, pressing keys, moving mouse, dragging and dropping etc are called as events. Event handling is the way to capture these
events and perform the actions accordingly.
Read More Answers.

lG

Question # 7
Explain about .wsf files?

Answer:.wsf files are modeled in similar to XML. They can be executed with the help of Wscript.exe and it can be done from the command line also. This .wsf file can have
multiple visual basic files. Reuse functionality is present with this extension file.
Read More Answers.

lin
de

ui

Question # 8
Explain about the extension .hta?

Answer:.hta extension is used whenever you want to include a VB script in HTML. Here HTML acts as an interface and VB Script as the programming language. .hta
extension files do run in the safe and trusted zone of Internet explorer. Although they run in the trusted zone querying is restricted as it has to pass the guidelines of
internet explorer.
Read More Answers.

Question # 9
Explain some uses of VB Script?

Read More Answers.

Question # 10
Compare JavaScript and VBScript?

.C

Answer:If functionality aspect is considered VB Script acts similar to Java Script but it is compatible only on internet explorer. They interact with Document object model.
Visual basic script can also be used for server side processing with ASP.

Answer:VB and JavaScript are much similar in functionality. They both interact with the document object model of the page. Many browsers have compatibility with Java
Script but they are not compatible with VB script as such. For client side scripting developers using VB Script should always make sure of cross browser
compatibility which is not the case when working with VBScript.
Read More Answers.

Question # 11
Explain about the support of ASP for VB Script functionality?
Answer:Visual Basic should rely on ASP for sever side processing. Asp.dll is used to make VB Script run on ASP engine and it invokes vbscript.dll. VB Script should be
embedded within <% and %> context switches. ASP can provide varied functionality to VB Script.
Read More Answers.

Question # 12
Explain about the functionality of VBScript?
Answer:Active X technology can be used to give much more functionality to VB Script. VB provides sub routines, functions, string manipulation, data/time, error handling,
etc. VB can have more functionality added to it by working with languages such as ASP.
Read More Answers.

Question # 13
Explain about scrrun.dll?
Answer:Scripting Runtime library is very important for the functioning of Visual basic script because it gives much more functionality such as File management, text
operations and file modification features. Scrrun.dll is used very much in programming VB.
Copyright http://www.GlobalGuideline.COM

Page 3/6

VBScript Interview Questions And Answers

Read More Answers.

Question # 14
Explain about ADODB.Stream class?

Read More Answers.

ba
lo

Answer:ADODB.Stream class can be used as string builder. VBScript string concatenation can be very costly because of frequent memory allocation features. Binary file and
memory I/O operation is provided by ADODB.Stream class. This is widely used to convert bytes into string, etc.

Question # 15
Explain about arrays in VB Script?

Answer:Arrays in VB Script should be assigned within the variant separated by a comma. If arguments are not specified then the string is regarded as empty. After specifying
the elements in an array an index number should be used indicating the desired element.

Question # 16
Explain about the Asc function?

lG

Read More Answers.

Question # 17
Explain about filter expression?

lin
de

Read More Answers.

ui

Answer:According to the first letter in a string it returns the ANSI code relevant to that first letter. If string is not present then a runtime error occurs. Asc function returns the
first byte used. It is used only with elements containing byte data in a string.

Answer:Filter expression returns an array based on a specific filter search condition and it returns a zero based array. Arguments included in the filter array are Input strings,
value, include and compare. If there is no match for the value it returns an empty string.

.C

Question # 18
Explain about constants in VBScript?

Read More Answers.

Answer:There are many useful constants present in Visual basic script which you can use in your code. They ease your work load by remembering value and implementing in
the code. Maintenance is easy with VB Script because it can easily change the feature of constants.

Question # 19
Explain about Tristate constants in VBScript?

Read More Answers.

Answer:Tristate constants can be used with functions which allow formatting of numbers. These constants can be used with VB Script without defining them. It can be used
anywhere in the code to reflect and represent the values.
Read More Answers.

Question # 20
Explain about operator precedence in VB Script?
Answer:In operator precedence expressions are evaluated and resolved in a predetermined order. The order of evaluation can be modulated if you use parenthesis. Expressions
present in parenthesis are evaluated first.
Read More Answers.

Question # 21
What are the different types of operators and their order of precedence?
Answer:Order of evaluation of operators is, first arithmetic operators are evaluated, and comparison operators are evaluated next and at the last logical operators are evaluated
at the last. In arithmetic operators negation, Exponentiation, multiplication and division, integer division, modulus arithmetic, addition and subtraction and string
concatenation are provided.
Read More Answers.

Copyright http://www.GlobalGuideline.COM

Page 4/6

World Wide Web Most Popular Interview Topics.

1 : JavaScript Frequently Asked Interview Questions and Answers Guide.


2 : AJAX Frequently Asked Interview Questions and Answers Guide.
3 : jQuery Frequently Asked Interview Questions and Answers Guide.
4 : Search engine optimization (SEO) Frequently Asked Interview Questions and Answers Guide.
5 : Cascading Style Sheet CSS Frequently Asked Interview Questions and Answers Guide.
6 : HTML Frequently Asked Interview Questions and Answers Guide.
7 : Basic Internet Frequently Asked Interview Questions and Answers Guide.
8 : HTML5 Frequently Asked Interview Questions and Answers Guide.
9 : Web Developers Frequently Asked Interview Questions and Answers Guide.
10 : JSON Frequently Asked Interview Questions and Answers Guide.

About Global Guideline.

Global Guideline is a platform to develop your own skills with thousands of job interview questions
and web tutorials for fresher's and experienced candidates. These interview questions and web
tutorials will help you strengthen your technical skills, prepare for the interviews and quickly revise
the concepts. Global Guideline invite you to unlock your potentials with thousands of Interview
Questions with Answers or begin a tutorial right away, such as HTML, XML, XSLT, Cascading
Style Sheet (CSS), Search Engine Optimization (SEO), JavaScript, Structure Query Language (SQL),
Database Articles, Web Hosting Guide and much more. Learn the most common technologies
Interview Questions and Answers. We will help you to explore the resources of the World Wide Web
and develop your own skills from the basics to the advanced. Here you will learn anything quite
easily and you will really enjoy while learning. Global Guideline will help you to become a
professional and Expert, well prepared for the future.
* This PDF was generated from http://www.GlobalGuideline.com at January 10th, 2015
* If any answer or question is incorrect or inappropriate or you have correct answer or you found any
problem in this document then don't hesitate feel free and e-mail us we will fix it.
You can follow us on FaceBook for latest Jobs, Updates and other interviews material.
www.facebook.com/InterviewQuestionsAnswers
Follow us on Twitter for latest Jobs and interview preparation guides
http://twitter.com/InterviewGuide
Best Of Luck.
Global Guideline Team
http://www.globalguideline.com
Support@globalguideline.com

You might also like