Tag: testing

Questions Related to testing

  1. RootElement

  2. GetRootItem

  3. GetRootNode

  4. GetRootElement


Correct Option: D

What does the ChildElements method of XMLUtil returns?

  1. collection having child nodes/elements

  2. a node/child

  3. true if there are children and false if no children

  4. root node


Correct Option: A
  1. collection_obj.element(0)

  2. collection_obj.Item(0)

  3. collection_obj.node(0)

  4. No such property


Correct Option: B

Predict the output of the following script the uses the below xml




      Rajesh
      111
      CS
      A


      Meera
      222
      Maths
      B


      Aarthi
      333
      Commerce
      C


Set xmlDoc = XMLUtil.CreateXMLFromFile("C:\...\students.xml") 
Set rt  = xmlDoc.GetRootElement 
Set rtChildColl = rt.ChildElements 
Set node = rtChildColl.Item(rtChildColl.Count) 
set nodeAtt = node.ChildElements 
Msgbox nodeAtt.Item(1).Value
  1. 222

  2. A

  3. No value. It returns an empty string

  4. Aarthi


Correct Option: D

Recovery scenario takes us thru the following wizard steps in the following sequence

  1. define a trigger, define the recovery operations, define the post recovery operations

  2. define the recovery operations, define a trigger, define the post recovery operations

  3. can be created in any order

  4. no such wizard is available in Quick Test


Correct Option: A
  1. Boundary value

  2. Equivalence partition

  3. Decision table

  4. State transition


Correct Option: C
  1. Input and output combinations that will be treated the same way by the system can be tested using which technique?
  1. Boundary value

  2. Equivalence partition

  3. Decision table

  4. State transition


Correct Option: B
  1. Component interaction

  2. Probe effect

  3. State transition

  4. Disaster recovery


Correct Option: D
  1. Which technique is appropriate to test changes on old and undocumented functionalities of a system?
  1. Specification based technique

  2. Black box technique

  3. White box technique

  4. D. Data driven testing technique


Correct Option: C

AI Explanation

To answer this question, you need to understand different testing techniques and their applicability.

Option A) Specification-based technique - This technique involves testing the system based on the specifications or requirements provided. It may not be suitable for testing changes on old and undocumented functionalities because there may not be clear specifications or requirements available for those functionalities.

Option B) Black box technique - This technique involves testing the system without having knowledge of its internal structure or implementation details. It may be suitable for testing changes on old and undocumented functionalities since it focuses on the system's external behavior and functionality.

Option C) White box technique - This technique involves testing the system with knowledge of its internal structure and implementation details. It may be the most appropriate technique for testing changes on old and undocumented functionalities because it allows the tester to understand the underlying code and make targeted tests.

Option D) Data-driven testing technique - This technique involves testing the system using different sets of input and output data. While it can be used to test changes on old and undocumented functionalities, it may not be the most appropriate technique since it does not specifically address the need to understand the system's internal structure.

Based on the explanations above, the correct answer is C) White box technique. This technique is most appropriate for testing changes on old and undocumented functionalities as it allows the tester to have knowledge of the system's internal structure and implementation details.