Vbscript(Engineering > Computer Science And Engineering ) Questions and Answers

Question 1. How will you trim the leading as well as trailing spaces of a string using VBScript?
  1.    Using Trim function
  2.    Using Len function
  3.    Using Replace function
  4.    Using Space function
Explanation:-
Answer: Option A. -> Using Trim function





Question 2. Extension of ActiveX designers
  1.    .dsr
  2.    .axd
  3.    .adx
  4.    None
Explanation:-
Answer: Option A. -> .dsr





Question 3. Where to Put the VBScript code
  1.    Head section
  2.    Body Section
  3.    Both body and head section
  4.    None of these
Explanation:-
Answer: Option C. -> Both body and head section





Question 4. What does the Option Explicit directive do?
  1.    It forces you to declare all of your variables
  2.    It forces you to call the method
  3.    It forces you to declare all of your static variables
  4.    It forces you to declare all of your global variables
Explanation:-
Answer: Option A. -> It forces you to declare all of your variables





Question 5. Which VBScript function converts an input string to all lowercase?
  1.    LCase
  2.    LowerCase
  3.    Lower
  4.    There is no such function to directly convert to lowercase
Explanation:-
Answer: Option A. -> LCase





Question 6. VBScript was launched in
  1.    1995
  2.    1996
  3.    1994
  4.    1997
Explanation:-
Answer: Option B. -> 1996





Question 7. How to take request using get bmethod?
  1.    Using Request.form
  2.    Using Response.write
  3.    Using Request.Querystring
  4.    Using Request.Servarvariables
Explanation:-
Answer: Option C. -> Using Request.Querystring





Question 8. VBScript is developed by
  1.    Netscape
  2.    Opera
  3.    Sun
  4.    Microsoft
Explanation:-
Answer: Option D. -> Microsoft





Question 9. Which browser has built-in support for executing VBScript?
  1.    Internet Explorer
  2.    Mozilla Firefox
  3.    Opera
  4.    None of these
Explanation:-
Answer: Option A. -> Internet Explorer





Question 10. In the Select Case statement, which case is used for unknown cases?
  1.    Else
  2.    Default
  3.    Unknown
  4.    Not
Explanation:-
Answer: Option A. -> Else