testing Online Quiz - 7

Description: testing Online Quiz - 7
Number of Questions: 20
Created by:
Tags: testing
Attempted 0/20 Correct 0 Score 0

What is the statement that can be used to make VB Script, mandate variable declaration?

  1. Option Declare

  2. Option Explicit

  3. Option Mandate

  4. None

Correct Option: B

In VB Script, variables cannot be declared to a specific data type. State true or false

  1. True

  2. False

Correct Option: A
  1. Code above is perfectly valid

  2. Redim size is invalid

  3. Cannot redim a static array

  4. None

Correct Option: C

What is the method that can be used to retrive a run time value of any object, say a user input value?

  1. GetTOProperty

  2. SetTOProperty

  3. GetROProperty

  4. None

Correct Option: C

What is the keyword that is used to retain the previous values, when we redim a dynamic array to different sizes?

  1. Redim Retain arr(s)

  2. Redim Preserve arr(s)

  3. Redim Persist arr(s)

  4. Redim CarryForward arr(s)

Correct Option: B
  1. 2

  2. 1

  3. 3

  4. No index is required for referencing an element in a 2D array. Index is applicable only for 1D arrays.

Correct Option: A

Which is the deprecated version of loop?

  1. While … Wend

  2. Do While … Loop

  3. Do Until … Loop

  4. VB Script doesn't have any deprecated loops at all.

Correct Option: A

Predict the output:

Set r = New RegExp 
r.pattern = “ion$” Msgbox r.test(“consideration”)
  1. false

  2. true

  3. ion

  4. consideration

Correct Option: B

Predict the output

Set objEdit = Description.Create 
objEdit(“micclass”).Value = “Link” 
objEdit(“name”).Value = “username” 
Browser(“...”).Page(“...”).WebEdit(objEdit).Set “test_user_name”
  1. The code is perfectly valid. It sets the specified value in the web

  2. ) name property is incorrectly defined for the link object

  3. Syntax of Description object is incorrect

  4. Defined link object is incorrectly used as an edit box object. Hence issuing a Set method is invalid

Correct Option: D

Send Keys can be used to redirect some keystrokes to any application that has the focus. State true or false

  1. True

  2. False

Correct Option: A
- Hide questions