Tag: testing

Questions Related to testing

  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

Risk is defined as

  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
  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
  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