0

testing Online Quiz - 6

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

Before we redirect keystrokes to any application, using Send Keys, focus can be set using which method?

  1. AppFocus

  2. Focus

  3. AppActivate

  4. Activate


Correct Option: C

Breakpoints can be set in the script, to make Quick Test pause script execution, at desirable statements in the script. State true or false

  1. True

  2. False


Correct Option: A

File system object methods can be used to

  1. perform any OS operations

  2. perform any script activities

  3. perform any file system related activities

  4. No such object supported in Quick Test


Correct Option: C

Watch tab of debug viewer

  1. can be used to watch only simple variables

  2. can be used to watch all simple variables and most of the object properties

  3. displays all the variables encountered during the script execution runtime

  4. cannot be used to watch simple variable values


Correct Option: B

RecordSet object of ADODB library holds

  1. the query issued

  2. the result returned from the issued SQL query

  3. the connection string

  4. a reference to the connection object


Correct Option: B

Connection string issued to every data base will remain constant, irrespective of the database. State true or false

  1. True

  2. False


Correct Option: B

) Navigational methods like MoveFirst, MoveLast, MoveNext, MovePrevious are the methods supported by the connection object. State true or false

  1. True

  2. False


Correct Option: B

What is the flag used to mark end of the data you retrieve from a resultset?

  1. EOD(End of Data)

  2. EOR(End of RecordSet)

  3. EOF(End of File)

  4. No such flag


Correct Option: C

Identify the issues in the code below

Set con = CreateObject("ADODB.Connection") 
con.Open "Provider=Microsoft.ACE.OLEDB.12.0;
Data source=C:\...\Database1.accdb" 
rs = con.Execute("select * from Table1") 
rs.MoveFirst 
Do While rs.EOF     
    Msgbox rs.Fields(0).Name & " : " &rs.Fields(0).Value & " " & rs.Fields(1).Name & " : " &rs.Fields(1).Value & " " & rs.Fields(2).Name & " : " & rs.Fields(2).Value  
Loop 
rs.Close 
con.Close  

Issue1) SQL query is issued as an argument to an incorrect method Issue2) Condition with the loop is incorrect Issue3) Code is not designed navigate to the next record in the recordset Issue4) Connection string is incorrectly formed Issue5) Msgbox cannot display data from Database Issue6) Set keyword is missing in a statement

  1. Issue2, Issue3, Issue6

  2. Issue1, Issue2, Issue3

  3. Issue2, Issue4, Issue6

  4. No issues - The code is perfect


Correct Option: A

What is the method used to get the root element of an xml document

  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

What is the indexed property used to retrieve child nodes from a collection?

  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
  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.Which typical defects are easier to find using static instead of dynamic testing A. deviation from standards B. requirements defects C. insufficient maintainability D. incorrect interface specifications

  1. A,B,C and D

  2. A and C

  3. A,C and D

  4. A,B and C


Correct Option: A

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) A, B, C, and D - This option is incorrect because it includes all the given options, which means it includes incorrect interface specifications as well. The correct answer should only include the defects that are easier to find using static testing instead of dynamic testing.

Option B) A and C - This option is incorrect because it does not include requirements defects (option B) and incorrect interface specifications (option D). The correct answer should include all the defects that are easier to find using static testing instead of dynamic testing.

Option C) A, C, and D - This option is incorrect because it does not include requirements defects (option B). The correct answer should include all the defects that are easier to find using static testing instead of dynamic testing.

Option D) A, B, and C - This option is incorrect because it does not include incorrect interface specifications (option D). The correct answer should include all the defects that are easier to find using static testing instead of dynamic testing.

The correct answer is A. This option includes all the typical defects that are easier to find using static testing instead of dynamic testing, such as deviation from standards, requirements defects, insufficient maintainability, and incorrect interface specifications.

  1. What technique captures system requirements that contain logical conditions?
  1. Boundary value

  2. Equivalence partition

  3. Decision table

  4. State transition


Correct Option: C

AI Explanation

To answer this question, you need to understand different techniques used to capture system requirements.

Option A) Boundary value - This option is incorrect because the boundary value technique is used to test the behavior of a system at the boundaries of input values, rather than capturing system requirements that contain logical conditions.

Option B) Equivalence partition - This option is incorrect because the equivalence partition technique is used to divide the input values into equivalent groups to reduce the number of test cases needed, rather than capturing system requirements that contain logical conditions.

Option C) Decision table - This option is correct because the decision table technique is used to capture system requirements that contain logical conditions. A decision table is a tabular representation that shows different combinations of inputs and their corresponding actions or outcomes.

Option D) State transition - This option is incorrect because the state transition technique is used to capture system requirements that involve the transition of a system from one state to another, rather than capturing system requirements that contain logical conditions.

The correct answer is C) Decision table. This option is correct because the decision table technique is specifically designed to capture system requirements that contain logical conditions.

  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. Which of the following can be tested as part of operational testing?
  1. Component interaction

  2. Probe effect

  3. State transition

  4. Disaster recovery


Correct Option: D
  1. Specification based technique

  2. Black box technique

  3. White box technique

  4. D. Data driven testing technique


Correct Option: C
  1. By creating future tests based on the results of previous tests, a tester is demonstrating at type of informal test design technique?
  1. Security testing

  2. Non functional testing

  3. Exploratory testing

  4. Interoperability testing


Correct Option: C
- Hide questions