0

testing Online Quiz - 9

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

Which of them are reason for failure? a)testing fault b)software fault c)design fault d)documentation fault e)environment fault

  1. a,b,c,d are valid ; e invalid

  2. b is valid, a,c,d,e are not

  3. a,b,c valid ; e,f not

  4. All


Correct Option: D

To test a function, the Programmer have to write a _________ which calls the function and passes it test data

  1. stub

  2. driver

  3. proxy

  4. none


Correct Option: B

Test are prioritised so that we

  1. find more faults

  2. do best testing in the time available

  3. do more effective testing

  4. shorten the time required for testing


Correct Option: B

AI Explanation

To answer this question, let's analyze each option:

Option A) Find more faults - This option suggests that the prioritization of tests helps in finding more faults. However, while prioritizing tests can potentially help in identifying and fixing faults, it does not necessarily guarantee finding more faults in comparison to other options.

Option B) Do best testing in the time available - This option suggests that prioritizing tests allows us to perform the best testing within the given time constraints. Prioritizing tests helps in identifying critical areas and focusing on them first, ensuring that the most important testing is done within the available time. This option aligns with the concept of prioritization.

Option C) Do more effective testing - This option implies that prioritizing tests leads to more effective testing. While it is true that prioritization can help in focusing on critical areas, it does not necessarily guarantee more effective testing in comparison to other options.

Option D) Shorten the time required for testing - This option suggests that prioritizing tests helps in reducing the overall time required for testing. While prioritization can help in identifying critical areas and focusing on them first, it does not necessarily shorten the overall testing time.

Based on the analysis, the correct answer is B) do best testing in the time available. Prioritizing tests ensures that the most important testing is done within the given time constraints.

When a new tool is purchsed , it should be used first by

  1. Everyone who have some use for the tool

  2. The vendor contractor to write the initial script

  3. The independent testing team

  4. A small team to establish best way to use the tool


Correct Option: D

Data collected during testing should include

  1. Test Factors

  2. Functions/Subroutines

  3. All

  4. None


Correct Option: C

choose the correct combination

  1. Compliance Testing - Business rules

  2. Black box testing - Path coverage

  3. Regression testing - end users

  4. File integrity - control totals


Correct Option: D

A reliable application will be one with

  1. is unlikely to cause a failure

  2. is likely to be fault free

  3. is likely to be completed on schedule

  4. is user friendly


Correct Option: A

A regression test

  1. will help ensure unchanged areas of software hav not been affected

  2. will help ensure changed areas of software hav not been affected

  3. can run during user acceptance testing only

  4. will always be automated


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 regression test will help ensure unchanged areas of software have not been affected. - This option is correct. Regression testing is a type of software testing that is performed to ensure that changes or updates to a software application have not affected previously tested functionalities. By running a regression test, we can verify that unchanged areas of the software have not been impacted by the changes made.

Option B) A regression test will help ensure changed areas of software have not been affected. - This option is incorrect. Regression testing focuses on unchanged areas of the software to ensure they have not been affected. It does not specifically test the changed areas.

Option C) A regression test can run during user acceptance testing only. - This option is incorrect. Regression testing can be performed at various stages of the software development lifecycle, including during user acceptance testing, but it is not limited to this phase alone. It can also be conducted during integration testing, system testing, or even during maintenance activities.

Option D) A regression test will always be automated. - This option is incorrect. While regression testing can be automated, it does not have to be. Regression testing can be performed manually or using automated tools, depending on the complexity of the software and the available resources.

The correct answer is A) A regression test will help ensure unchanged areas of software have not been affected. This option is correct because regression testing is specifically designed to check that unchanged parts of the software have not been impacted by changes made elsewhere.

Defect management process doesnot includes

  1. Management reporting

  2. Defect prevention

  3. Deliverable base linings

  4. None of the above


Correct Option: A

Equivalence partitioning is

  1. Black box testing appropriate to all levels of testing

  2. Black box testing used only by developers

  3. Black box testing appropriate for system testing only

  4. A white box testing appropriate for component testing only


Correct Option: A

AI Explanation

To answer this question, you need to understand the concept of equivalence partitioning.

Equivalence partitioning is a black box testing technique that is appropriate for all levels of testing. It involves dividing the input data into different classes or partitions, where each partition is expected to exhibit similar behavior. The idea is to select representative test cases from each partition to ensure that all possible scenarios are covered.

Let's go through each option to understand why it is correct or incorrect:

Option A) Black box testing appropriate to all levels of testing - This option is correct because equivalence partitioning is a black box testing technique that can be used at any level of testing to ensure thorough test coverage.

Option B) Black box testing used only by developers - This option is incorrect because equivalence partitioning is not limited to developers only. It is a testing technique that can be used by testers as well.

Option C) Black box testing appropriate for system testing only - This option is incorrect because equivalence partitioning is not limited to system testing only. It can be used in various levels of testing, including unit testing, integration testing, and acceptance testing.

Option D) A white box testing appropriate for component testing only - This option is incorrect because equivalence partitioning is not a white box testing technique. It is a black box testing technique that focuses on the inputs and outputs of the system under test, rather than the internal structure or code.

The correct answer is A) Black box testing appropriate to all levels of testing. This option is correct because equivalence partitioning is a black box testing technique that can be used at any level of testing to ensure thorough test coverage.

Actual complexity metric refers to the number of independent path traversed during testing

  1. True

  2. False


Correct Option: A
  1. Occurence*risk factor

  2. Frequency* risk factor

  3. Probablity* influence

  4. Risk factor* risk response number


Correct Option: B

What is the output of the following code snippet @echo off set var = 1 %var%+=1 echo var

  1. 2

  2. 3

  3. 1

  4. Syntax Error


Correct Option: D

What is the editor that is used for creating batch scripts

  1. Visual Studio 2010

  2. Notepad

  3. MS-Wordpad

  4. All the above


Correct Option: D

What is the output of the following code snippet @echo off %1 %2\%3 .\ Save the above as “test.bat” Execute the batch file with the commandline parameters test.bat xcopy d: test.txt

  1. Syntax Error

  2. Copies “D:\test.txt” to current directory

  3. Invalid arguments

  4. None of the above


Correct Option: B

What does the following code snippet do? IF EXISTS c:\test.txt del c:\test.txt Dir %WinDir%\ >> c:\test.txt

  1. Deletes c:\test.txt and lists the contents of c:\Windows to c:\test.txt

  2. Errors out as test.txt does not exist

  3. Deletes c:\test.txt, if exists, and lists the contents of c:\window to c:\test.txt

  4. Errors out as test.txt does not exist and rolls back all the commands.


Correct Option: C

What is the output of the following code snippet?

@echo off 
set /a number = 5 
:loop 
set /a number = %number% +1 
If %number% == 10
 (goto :label) 
else 
  (echo %number% >> c:\test.txt) 
goto :loop
  1. Prints numbers from 6 to 9 into c:\test.txt

  2. Prints numbers from 5 to 10 into c:\test.txt

  3. Prints only 10 to c:\test.txt

  4. Infinite loop


Correct Option: A

What is the output of the following code snippet? @echo off Copy /? > d:\test.txt

  1. Writes the names of all the files present in the current directory to d:\test.txt

  2. Copies d:\test.txt to windows directory

  3. Writes the help options available on ‘Copy’ into d:\test.txt

  4. Not a valid command


Correct Option: C

Batch scripts are generally used for

  1. To execute a set of statements in one go

  2. To do file management

  3. To make registry changes

  4. All the above


Correct Option: D

What is the output of the following code snippet @echo off xcopy %userprofile%* %2

  1. Returns the number of files present in UserProfile Folder

  2. Syntax error

  3. Copies the contents of UserProfile to a path specified by command line argument

  4. Copies the contents from a path specified by a command line argument to UserProfile


Correct Option: C
- Hide questions