quiz3tonghop 141003191856 conversion gate01
DESCRIPTION
tổng hợp quick 3TRANSCRIPT
-
Part 1 of 1 - 78.33/ 100.0 Points
Question 1 of 20 5.0/ 5.0 Points
. Developer reviews code for accuracy
A.Design check
B.Requirement check
C.Technical check
D.Desk checking
Question 2 of 20 5.0/ 5.0 Points
It is a review where the author lead team through a manual or a simulated execution of the product using predefined scenarios
A.technical reviews
B.inspection
C.walkthrough
D.checklist
Question 3 of 20 5.0/ 5.0 Points
Khi vit white box test case, ch cn vit y s lng test case tha statement coverage th s test case tha iu kin branch coverage
True
False
Question 4 of 20 3.33/ 5.0 Points
What are the items that have to have in unit test case
-
A. Input data
B. Test case description
C. Expected result
D. The actor that take the test
Question 5 of 20 0.0/ 5.0 Points
"Cho on code sau : public bool ValidateEmail(string strEmail)
{
//Check null or empty
if (string.IsNullOrEmpty(strEmail))
{
return false;
}
//Check required character
bool blnRequireChar = false;
for (int i = 0; i < strEmail.Length; i++)
{
if (strEmail[i].ToString().Equals(""@""))
{
blnRequireChar = true;
}
}
//Check incorrect character
for (int i = 0; i < strEmail.Length; i++)
{
if (char.IsLetterOrDigit(strEmail[i]))
{
continue;
}
else if(char.Equals('.',strEmail[i]) || char.Equals('@',strEmail[i]))
{
continue;
}
else
{
return false;
}
-
}
return true;
}
on code trn cn t nht bao nhiu test case?"
A.5
B.7
C.8
D.6
Question 6 of 20 5.0/ 5.0 Points
Regardless of whether a review is called an inspection or a walkthrough, it is a systematic
approach to examining source code in detail
True
False
Question 7 of 20 5.0/ 5.0 Points
A unit is the smallest testable part of an application (In procedural programming a unit may be
an individual program, function, procedure, etc., while in object-oriented programming, the
smallest unit is always a method)
True
False
Question 8 of 20 5.0/ 5.0 Points
Bc Equivalence partitioning ca Black Box Test bao gm nhng vic no sau y
A. Anticipate that errors are most likely to exist at the boundaries between partitions
B. A limited number of representative test cases should be chosen from each partition
-
C. Behavior of software is equivalent for any value within particular partition
D. Divide the input of a program into classes of data from which test cases can be
derived. This might help you to reduce number of test cases that must be developed.
Question 9 of 20 5.0/ 5.0 Points
The exact scope of a unit is left to interpretation. Supporting test code , sometimes called
., may be necessary to support an individual test.
A.All of above
B.Conjucture
C.RemUnit
D.Scaffolding
Question 10 of 20 0.0/ 5.0 Points
The most common approach to unit testing require drivers and stubs to be written
True
False
Question 11 of 20 5.0/ 5.0 Points
What's is "Decision coverage" ?
A.Each branch in the logic visited by a test
B.Each path through the logic is visited by a test
C.Each statement in the program will be visited by test
Question 12 of 20 5.0/ 5.0 Points
-
Unit Testing Conductor l Testing team
True
False
Question 13 of 20 0.0/ 5.0 Points
Which of the following is appropriate as a description of boundary value analysis?
A.A method where boundary values are identified for the data entered into the system and
used as test data
B.A method where equivalence class border values are used as test data
C.A method of analysis for identifying input values that do not produce errors but are on
the borderline
D.A method of testing where boundary values that can be entered into the system are
analyzed
Question 14 of 20 5.0/ 5.0 Points
A black box test is a type of testing technique used in software development. Which of the
following statements accurately describes a black box test?
A.A black box test is based on the internal specifications that describe the internal
structure and logic of the program. It is mainly performed by the program developer
him/herself.
B.The objective of a black box test is to execute all of the instructions in the program at
least once. It is mainly performed by the program developer him/herself.
C.A black box test analyzes the source program and tests program control flow and the
flow of data such as variables. It is mainly performed by third parties and not by the program
developer.
-
D.A black box test tests whether or not the program functions as the designer intended. It
is mainly performed by third parties and not by the program developer.
Question 15 of 20 5.0/ 5.0 Points
. A series of probing question designed to review a predetermined area or function
A.Meeting list
B.Checklist
C.Minutes
D.Plan list
Question 16 of 20 5.0/ 5.0 Points
Unit testing is commonly automated, but cannot still performed manually?
True
False
Question 17 of 20 5.0/ 5.0 Points
reviews: Review conducted during the system development process, normally in arccodance with system development methodology. The primary objective of design reviewes is
to ensure compliance to design methodology.
A.Technical
B.Design
C.Requirement
D.Process
-
Question 18 of 20 0.0/ 5.0 Points
Unit Test should be conducted for each module (class or function) after code review has been
done
True
False
Question 19 of 20 5.0/ 5.0 Points
.. Review. A review process that uses peer to review that aspect of the systems development life cycle with wich they are the most familiar. Typically the reviews offer compliance to standard, procedures, guidelines, and the use of good practices, as opposed to
efficiency, effectiveness, and economy of the design and implementation
A.Technical
B.Peer
C.Requirement
D.Design
Question 20 of 20 5.0/ 5.0 Points
Unit Testing is to validate that individual units of software program are working properly.
True
False
Question 1 of 20 5.0/ 5.0 Points
What's is "Decision coverage" ?
-
A.Each branch in the logic visited by a test
B.Each statement in the program will be visited by test
C.Each path through the logic is visited by a test
Question 2 of 20 0.0/ 5.0 Points
The two major quality assurance verification approaches for each life cycle phase are
A.Technical check
B.Requirement check
C.Technical review
D.Design check
Question 3 of 20 1.67/ 5.0 Points
Unit test is implemented by Development team to
A. Reduce the Quality Effort & Correction Cost
B. Create related documents: Unit Test cases, Unit Test Reports,
C. Detect defects and issues early
D. Ensure quality of software unit
Question 4 of 20 0.0/ 5.0 Points
Which of the following is the appropriate description concerning standardization in programming?
-
A.It is effective for clarifying the standard execution time of a program to promote the
creation of efficient programs.
B.Its purpose is to define rules about common items that are independent of programming
languages.
C.Its original purpose is not to limit an individual programming style, but to easily
achieve the effect of optimization provided by a compiler.
D.Defining programming conventions is effective for preventing errors that programmers
tend to make.
Question 5 of 20 5.0/ 5.0 Points
"The below function calculate square of number Public static integer Square (integer intNumber){ Try If input
-
To ensure testing robustness and simplify maintenance, test should never rely on other test nor should they depend on the ordering in wich test are executed?
True
False
Question 7 of 20 5.0/ 5.0 Points
Unit Test should be conducted for each module (class or function) after code review has been done
True
False
Question 8 of 20 5.0/ 5.0 Points
"Unit Testing Deliverables bao gm - Tested software units - Related documents (Unit Test case, Unit Test Report)"
True
False
Question 9 of 20 5.0/ 5.0 Points
Which of the following is the appropriate point to focus when preparing test data for a white box test?
A.Program input and output relationship
B.Program functions
C.Program internal structure such as algorithm
D.Boundary value for each equivalence class obtained through the application of
equivalence partitioning
Question 10 of 20 5.0/ 5.0 Points
"public bool ValidPassword(string password) { bool validPassword = false; // Check valid password length
-
if(IsValidLength(password, minLength, maxLength)) { validPassword = true; // Check valid password mix between lowcase and upcase if(!IsMixedCase(password)) return false; // Check valid password mix between alpha & numeric if(!IsAphaNumeric(password)) return false; } return validPassword; } How many unit test cases you must do to check this function to cover all path! "
A.3
B.5
C.6
D.4
Question 11 of 20 5.0/ 5.0 Points
Bc Equivalence partitioning ca Black Box Test bao gm nhng vic no sau y
A. Behavior of software is equivalent for any value within particular partition
B. Divide the input of a program into classes of data from which test cases can be
derived. This might help you to reduce number of test cases that must be developed.
C. Anticipate that errors are most likely to exist at the boundaries between partitions
D. A limited number of representative test cases should be chosen from each partition
Question 12 of 20 5.0/ 5.0 Points
The exact scope of a unit is left to interpretation. Supporting test code , sometimes called ., may be necessary to support an individual test.
-
A.Conjucture
B.Scaffolding
C.All of above
D.RemUnit
Question 13 of 20 0.0/ 5.0 Points
uncoupled, uncohesive
A.uncoupled, cohesive
B.decoupled, cohesive
C.uncoupled, uncohesive
D.decohesive, coupled
Question 14 of 20 0.0/ 5.0 Points
Unit test should be written without explicit knowledge of the environment context in wich they are executed co that they can be run anywhere at anytime
True
False
Question 15 of 20 5.0/ 5.0 Points
"Cho on code sau : public bool ValidateEmail(string strEmail) { //Check null or empty if (string.IsNullOrEmpty(strEmail)) { return false; } //Check required character bool blnRequireChar = false;
-
for (int i = 0; i < strEmail.Length; i++) { if (strEmail[i].ToString().Equals(""@"")) { blnRequireChar = true; } } //Check incorrect character for (int i = 0; i < strEmail.Length; i++) { if (char.IsLetterOrDigit(strEmail[i])) { continue; } else if(char.Equals('.',strEmail[i]) || char.Equals('@',strEmail[i])) { continue; } else { return false; } } return true; } 1. Is this function can check correctly email?"
A.No
B.Yes
Question 16 of 20 0.0/ 5.0 Points
"There are two types of unit test case: Black box unit test case and White box unit test case"
True
False
Question 17 of 20 5.0/ 5.0 Points
What types of errors are missed by black box and testing and can be uncovered by white box testing?
A."behavioral errors
"
-
B."subtle logic errors
"
C."performance errors
"
D.input errors
Question 18 of 20 0.0/ 5.0 Points
A black box test is a type of testing technique used in software development. Which of the following statements accurately describes a black box test?
A.A black box test tests whether or not the program functions as the designer intended. It
is mainly performed by third parties and not by the program developer.
B.A black box test analyzes the source program and tests program control flow and the
flow of data such as variables. It is mainly performed by third parties and not by the program
developer.
C.The objective of a black box test is to execute all of the instructions in the program at
least once. It is mainly performed by the program developer him/herself.
D.A black box test is based on the internal specifications that describe the internal
structure and logic of the program. It is mainly performed by the program developer
him/herself.
Question 19 of 20 0.0/ 5.0 Points
When software is developed using a test driven-approach, the unit test may take a place of .. Each unit test can be seen as a design element specifying classes, method and observable behavior.
A.unique design
B.informal design
C.both A & B
-
D.formal design
Question 20 of 20 1.67/ 5.0 Points
What are the items that have to have in unit test case
A. The actor that take the test
B. Expected result
C. Input data
D. Test case description
____HCMUT_013_CSD_02_Quiz3_Unit Testing
Return to Assessment List
Part 1 of 1 - 83.33/ 100.0 Points
Question 1 of 20 5.0/ 5.0 Points
The exact scope of a unit is left to interpretation. Supporting test code , sometimes called
., may be necessary to support an individual test.
A.Scaffolding
B.Conjucture
C.RemUnit
-
D.All of above
Question 2 of 20 5.0/ 5.0 Points
reviews: Review conducted during the system development process, normally in arccodance with system development methodology. The primary objective of design reviewes
is to ensure compliance to design methodology.
A.Requirement
B.Technical
C.Design
D.Process
Question 3 of 20 5.0/ 5.0 Points
White Box Test phi m bo hon thnh cc yu cu no sau y?
A. Decision (branch) coverage
B. Boundary value coverage
C. "Statement coverage
"
D. Path coverage
Question 4 of 20 0.0/ 5.0 Points
Which of the following is an appropriate statement in regard to a module unit test?
A.Generally, test cases are created and executed by dedicated testing staff, not
programmers who have done the coding.
-
B.Verification should be performed, in principle, using test cases which cover all the
logic paths at least once while reviewing the module design documents.
C.The module interface falls outside the scope of the unit test because the module
interface cannot be tested using a single module.
D.The module design documents have already been verified. If a problem is found in the
test results, an error exists in the test case or the module.
Question 5 of 20 5.0/ 5.0 Points
Unit Test should be conducted for each module (class or function) after code review has been
done
True
False
Question 6 of 20 5.0/ 5.0 Points
The most common approach to unit testing require drivers and stubs to be written
True
False
Question 7 of 20 5.0/ 5.0 Points
Regardless of whether a review is called an inspection or a walkthrough, it is a systematic
approach to examining source code in detail
True
False
Question 8 of 20 5.0/ 5.0 Points
The two major quality assurance verification approaches for each life cycle phase are
A.Requirement check
B.Design check
-
C.Technical review
D.Technical check
Question 9 of 20 5.0/ 5.0 Points
What types of errors are missed by black box and testing and can be uncovered by white box
testing?
A."behavioral errors
"
B."subtle logic errors
"
C.input errors
D."performance errors
"
Question 10 of 20 0.0/ 5.0 Points
uncoupled, uncohesive
A.decoupled, cohesive
B.uncoupled, uncohesive
C.uncoupled, cohesive
D.decohesive, coupled
Question 11 of 20 5.0/ 5.0 Points
Technical review are more .. That is, they aim to remove defects as soon as possible.
-
A.Preventive
B.Objective
C.Subjective
D.Descriptive
Question 12 of 20 5.0/ 5.0 Points
Khi vit white box test case, ch cn vit y s lng test case tha path coverage th s test case tha iu kin branch coverage
True
False
Question 13 of 20 5.0/ 5.0 Points
What's is "Decision coverage" ?
A.Each branch in the logic visited by a test
B.Each statement in the program will be visited by test
C.Each path through the logic is visited by a test
Question 14 of 20 5.0/ 5.0 Points
In static unit testing, code is reviewed by applying techniques commonly known as ..
A. technical reviews
B. inspection
C. checklist
-
D. walkthrough
Question 15 of 20 0.0/ 5.0 Points
An inspection process is characterized by:
A. Roles (who are inspector?)
B. Process (How do the inspector organse their work?)
C. Reading techniques (how are artifacts examined?)
D. Both A & B
Question 16 of 20 5.0/ 5.0 Points
Unit test should be written without explicit knowledge of the environment context in wich they
are executed co that they can be run anywhere at anytime
True
False
Question 17 of 20 3.33/ 5.0 Points
Please select the test case design techniques that used to create unit test spec
A. Internal boundary value testing
B. Branch Testing
C. Condition testing
D. State transition testing
Question 18 of 20 5.0/ 5.0 Points
Unit Testing is to validate that individual units of software program are working properly.
-
True
False
Question 19 of 20 5.0/ 5.0 Points
A black box test is a type of testing technique used in software development. Which of the
following statements accurately describes a black box test?
A.A black box test tests whether or not the program functions as the designer intended. It
is mainly performed by third parties and not by the program developer.
B.A black box test is based on the internal specifications that describe the internal
structure and logic of the program. It is mainly performed by the program developer
him/herself.
C.The objective of a black box test is to execute all of the instructions in the program at
least once. It is mainly performed by the program developer him/herself.
D.A black box test analyzes the source program and tests program control flow and the
flow of data such as variables. It is mainly performed by third parties and not by the program
developer.
Question 20 of 20 5.0/ 5.0 Points
.. Review. A review process that uses peer to review that aspect of the systems development life cycle with wich they are the most familiar. Typically the reviews offer compliance to standard, procedures, guidelines, and the use of good practices, as opposed to
efficiency, effectiveness, and economy of the design and implementation
A.Requirement
B.Design
C.Technical
D.Peer
-
____HCMUT_013_CSD_02_Quiz3_Unit Testing
Return to Assessment List
Part 1 of 1 - 65.83/ 100.0 Points
Question 1 of 20 3.33/ 5.0 Points
Black box testing attempts to find errors in which of the following categories:
A. incorrect or missing functions
B. interface errors
C. performance errors
Question 2 of 20 2.5/ 5.0 Points
Cc best practice ca giai on Perform unit testing bao gm
A. Test each feature once
B. Unit tests should be fully automated and non-interactive
C. Keep tests independent
D. Keep unit tests small and fast
Question 3 of 20 5.0/ 5.0 Points
Unit Testing Conductor l Testing team
True
False
Question 4 of 20 5.0/ 5.0 Points
"The below function calculate square of number
-
Public static integer Square (integer intNumber){
Try
If input
-
Question 6 of 20 5.0/ 5.0 Points
reviews: Review conducted during the system development process, normally in arccodance with system development methodology. The primary objective of design reviewes
is to ensure compliance to design methodology.
A.Requirement
B.Technical
C.Design
D.Process
Question 7 of 20 5.0/ 5.0 Points
Bc Specification derived test ca Black Box Test bao gm nhng vic no sau y
A. Execute test cases to check test result will output as the specification
B. Test the software at either side of boundary values
C. Create test cases for each statements of specification
D. Divide the input of a program into classes of data from which test cases can be
derived. This might help you to reduce number of test cases that must be developed.
Question 8 of 20 5.0/ 5.0 Points
Please select the test case design techniques that used to create unit test spec
A. Internal boundary value testing
B. Branch Testing
C. Condition testing
-
D. State transition testing
Question 9 of 20 5.0/ 5.0 Points
White Box Test phi m bo hon thnh cc yu cu no sau y?
A. Decision (branch) coverage
B. Boundary value coverage
C. "Statement coverage
"
D. Path coverage
Question 10 of 20 5.0/ 5.0 Points
What are the items that have to have in unit test case
A. Expected result
B. Input data
C. The actor that take the test
D. Test case description
Question 11 of 20 0.0/ 5.0 Points
Internal and unit testing can be automated with the help of .. Tools.
A.testing
B.coverage
C.scaffolding
-
D.none
Question 12 of 20 5.0/ 5.0 Points
"Unit Testing Deliverables bao gm - Tested software units
- Related documents (Unit Test case, Unit Test Report)"
True
False
Question 13 of 20 0.0/ 5.0 Points
Which of the following is appropriate as a description of boundary value analysis?
A.A method of analysis for identifying input values that do not produce errors but are on
the borderline
B.A method where boundary values are identified for the data entered into the system
and used as test data
C.A method where equivalence class border values are used as test data
D.A method of testing where boundary values that can be entered into the system are
analyzed
Question 14 of 20 0.0/ 5.0 Points
The unit testing performed by
A.Developers
B.Customer
C.project manager
D.Tester
-
Question 15 of 20 0.0/ 5.0 Points
The Acceptance test perform by
A.Customer
B.Developers
C.project manager
D.Tester
Question 16 of 20 0.0/ 5.0 Points
Which of the following is the appropriate description concerning black box testing?
A.Attention is focused on the internal structures of programs, and verification is made as
to whether necessary portions are executed.
B.Even if any redundant code exists in a tested program, it cannot be detected.
C.The test case coverage is used as criteria for preparing test data.
D.If branch instructions and modules increase in number, the amount of test data also
leaps upward.
Question 17 of 20 0.0/ 5.0 Points
The System test performed by
A.project manager
B.Developers
C.Tester
D.Customer
-
Question 18 of 20 5.0/ 5.0 Points
What's is "Decision coverage" ?
A.Each branch in the logic visited by a test
B.Each statement in the program will be visited by test
C.Each path through the logic is visited by a test
Question 19 of 20 5.0/ 5.0 Points
Black Box Test bao gm
A. Condition analysis
B. Specification derived tests
C. Boundary value analysis
D. Equivalence partitioning
Question 20 of 20 5.0/ 5.0 Points
. A series of probing question designed to review a predetermined area or function
A.Meeting list
B.Plan list
C.Checklist
D.Minutes
-
____HCMUT_013_CSD_02_Quiz3_Unit Testing
Return to Assessment List
Part 1 of 1 - 92.5/ 100.0 Points
Question 1 of 20 5.0/ 5.0 Points
Black box testing attempts to find errors in which of the following categories:
A. performance errors
B. interface errors
C. incorrect or missing functions
Question 2 of 20 5.0/ 5.0 Points
The two major quality assurance verification approaches for each life cycle phase are
A.Technical check
B.Technical review
C.Requirement check
D.Design check
Question 3 of 20 1.67/ 5.0 Points
Please select the test case design techniques that used to create unit test spec
A. Condition testing
-
B. Internal boundary value testing
C. State transition testing
D. Branch Testing
Question 4 of 20 5.0/ 5.0 Points
Black Box Test bao gm
A. Boundary value analysis
B. Specification derived tests
C. Equivalence partitioning
D. Condition analysis
Question 5 of 20 5.0/ 5.0 Points
"The below function calculate square of number
Public static integer Square (integer intNumber){
Try
If input
-
A.3
B.4
C.1
D.2
Question 6 of 20 5.0/ 5.0 Points
Which of the following is the appropriate point to focus when preparing test data for a white
box test?
A.Program functions
B.Boundary value for each equivalence class obtained through the application of
equivalence partitioning
C.Program internal structure such as algorithm
D.Program input and output relationship
Question 7 of 20 5.0/ 5.0 Points
The unit testing performed by
A.Customer
B.Developers
C.Tester
D.project manager
Question 8 of 20 3.33/ 5.0 Points
-
An inspection process is characterized by:
A. Roles (who are inspector?)
B. Process (How do the inspector organse their work?)
C. Reading techniques (how are artifacts examined?)
D. Both A & B
Question 9 of 20 5.0/ 5.0 Points
What are the items that have to have in unit test case
A. The actor that take the test
B. Expected result
C. Input data
D. Test case description
Question 10 of 20 5.0/ 5.0 Points
Unit test is implemented by Development team to
A. Create related documents: Unit Test cases, Unit Test Reports,
B. Ensure quality of software unit
C. Detect defects and issues early
D. Reduce the Quality Effort & Correction Cost
-
Question 11 of 20 5.0/ 5.0 Points
White Box Test phi m bo hon thnh cc yu cu no sau y?
A. "Statement coverage
"
B. Decision (branch) coverage
C. Path coverage
D. Boundary value coverage
Question 12 of 20 5.0/ 5.0 Points
The testing technique that requires devising test cases to demonstrate that each program
function is operational is called
A.Grey box testing
B.black box testing
C.White box testing
Question 13 of 20 5.0/ 5.0 Points
A unit is the smallest testable part of an application (In procedural programming a unit may be
an individual program, function, procedure, etc., while in object-oriented programming, the
smallest unit is always a method)
True
False
Question 14 of 20 5.0/ 5.0 Points
Unit test should be written without explicit knowledge of the environment context in wich they
are executed co that they can be run anywhere at anytime
-
True
False
Question 15 of 20 5.0/ 5.0 Points
Which of the following is appropriate as a description of boundary value analysis?
A.A method where boundary values are identified for the data entered into the system
and used as test data
B.A method of testing where boundary values that can be entered into the system are
analyzed
C.A method where equivalence class border values are used as test data
D.A method of analysis for identifying input values that do not produce errors but are on
the borderline
Question 16 of 20 5.0/ 5.0 Points
When software is developed using a test driven-approach, the unit test may take a place of
.. Each unit test can be seen as a design element specifying classes, method and observable behavior.
A.both A & B
B.informal design
C.unique design
D.formal design
Question 17 of 20 5.0/ 5.0 Points
. Developer reviews code for accuracy
-
A.Technical check
B.Desk checking
C.Requirement check
D.Design check
Question 18 of 20 5.0/ 5.0 Points
"There are two types of unit test case:
Black box unit test case and White box unit test case"
True
False
Question 19 of 20 5.0/ 5.0 Points
The System test performed by
A.Developers
B.project manager
C.Tester
D.Customer
Question 20 of 20 2.5/ 5.0 Points
Cc best practice ca giai on Perform unit testing bao gm
A. Design code with testing in mind
B. Name tests properly
-
C. Fix failing tests immediately
D. Make unit tests simple to run
____HCMUT_013_CSD_02_Quiz3_Unit Testing
Return to Assessment List
Part 1 of 1 - 78.75/ 100.0 Points
Question 1 of 20 5.0/ 5.0 Points
Unit Test should be conducted for each module (class or function) after code review has been
done
True
False
Question 2 of 20 5.0/ 5.0 Points
"Cho on code sau : public bool ValidateEmail(string strEmail)
{
//Check null or empty
if (string.IsNullOrEmpty(strEmail))
{
return false;
}
//Check required character
bool blnRequireChar = false;
for (int i = 0; i < strEmail.Length; i++)
{
if (strEmail[i].ToString().Equals(""@""))
{
blnRequireChar = true;
-
}
}
//Check incorrect character
for (int i = 0; i < strEmail.Length; i++)
{
if (char.IsLetterOrDigit(strEmail[i]))
{
continue;
}
else if(char.Equals('.',strEmail[i]) || char.Equals('@',strEmail[i]))
{
continue;
}
else
{
return false;
}
}
return true;
}
on code trn cn t nht bao nhiu test case?"
A.8
B.7
C.6
D.5
Question 3 of 20 0.0/ 5.0 Points
. Developer reviews code for accuracy
A.Technical check
B.Desk checking
C.Requirement check
-
D.Design check
Question 4 of 20 5.0/ 5.0 Points
"Cho on code sau : public bool ValidateEmail(string strEmail)
{
//Check null or empty
if (string.IsNullOrEmpty(strEmail))
{
return false;
}
//Check required character
bool blnRequireChar = false;
for (int i = 0; i < strEmail.Length; i++)
{
if (strEmail[i].ToString().Equals(""@""))
{
blnRequireChar = true;
}
}
//Check incorrect character
for (int i = 0; i < strEmail.Length; i++)
{
if (char.IsLetterOrDigit(strEmail[i]))
{
continue;
}
else if(char.Equals('.',strEmail[i]) || char.Equals('@',strEmail[i]))
{
continue;
}
else
{
return false;
}
}
return true;
}
1. Is this function can check correctly email?"
A.Yes
-
B.No
Question 5 of 20 5.0/ 5.0 Points
A black box test is a type of testing technique used in software development. Which of the
following statements accurately describes a black box test?
A.A black box test is based on the internal specifications that describe the internal
structure and logic of the program. It is mainly performed by the program developer
him/herself.
B.A black box test tests whether or not the program functions as the designer intended. It
is mainly performed by third parties and not by the program developer.
C.A black box test analyzes the source program and tests program control flow and the
flow of data such as variables. It is mainly performed by third parties and not by the program
developer.
D.The objective of a black box test is to execute all of the instructions in the program at
least once. It is mainly performed by the program developer him/herself.
Question 6 of 20 5.0/ 5.0 Points
Bc Equivalence partitioning ca Black Box Test bao gm nhng vic no sau y
A. Anticipate that errors are most likely to exist at the boundaries between partitions
B. Divide the input of a program into classes of data from which test cases can be
derived. This might help you to reduce number of test cases that must be developed.
C. A limited number of representative test cases should be chosen from each partition
D. Behavior of software is equivalent for any value within particular partition
Question 7 of 20 5.0/ 5.0 Points
Black Box Test bao gm
-
A. Boundary value analysis
B. Specification derived tests
C. Equivalence partitioning
D. Condition analysis
Question 8 of 20 5.0/ 5.0 Points
Unit Testing Conductor l Testing team
True
False
Question 9 of 20 5.0/ 5.0 Points
Regardless of whether a review is called an inspection or a walkthrough, it is a systematic
approach to examining source code in detail
True
False
Question 10 of 20 0.0/ 5.0 Points
The goal of unit testing is to isolate each part of the program and show that the individual parts
are correctly?
True
False
Question 11 of 20 5.0/ 5.0 Points
The unit testing performed by
A.Customer
-
B.Developers
C.Tester
D.project manager
Question 12 of 20 5.0/ 5.0 Points
Khi vit white box test case, ch cn vit y s lng test case tha path coverage th s test case tha iu kin branch coverage
True
False
Question 13 of 20 0.0/ 5.0 Points
The Acceptance test perform by
A.Tester
B.Customer
C.Developers
D.project manager
Question 14 of 20 5.0/ 5.0 Points
White Box Test Case phi m bo cc yu cu no sau y?
A. Coverage boundary cases
B. Keep testing at Unit Level
C. Each test case is combination of condition and confirmation
-
D. Make sure that all of the code is coverage.
Question 15 of 20 5.0/ 5.0 Points
In static unit testing, code is reviewed by applying techniques commonly known as ..
A. technical reviews
B. checklist
C. inspection
D. walkthrough
Question 16 of 20 2.5/ 5.0 Points
Bc Specification derived test ca Black Box Test bao gm nhng vic no sau y
A. Test the software at either side of boundary values
B. Create test cases for each statements of specification
C. Divide the input of a program into classes of data from which test cases can be
derived. This might help you to reduce number of test cases that must be developed.
D. Execute test cases to check test result will output as the specification
Question 17 of 20 1.25/ 5.0 Points
Choose valid test types :
A. Performance test
B. regression test
-
C. Load test
D. Security test
Question 18 of 20 5.0/ 5.0 Points
What are the items that have to have in unit test case
A. The actor that take the test
B. Expected result
C. Input data
D. Test case description
Question 19 of 20 5.0/ 5.0 Points
Cc best practice ca giai on Perform unit testing bao gm
A. Keep unit tests small and fast
B. Keep tests independent
C. Unit tests should be fully automated and non-interactive
D. Test each feature once
Question 20 of 20 5.0/ 5.0 Points
"Unit Testing Deliverables bao gm - Tested software units
- Related documents (Unit Test case, Unit Test Report)"
True
-
False
____HCMUT_013_CSD_02_Quiz3_Unit Testing
Return to Assessment List
Part 1 of 1 - 71.67/ 100.0 Points
Question 1 of 20 0.0/ 5.0 Points
The Acceptance test perform by
A.Tester
B.Customer
C.Developers
D.project manager
Question 2 of 20 0.0/ 5.0 Points
What's is "Decision coverage" ?
A.Each path through the logic is visited by a test
B.Each statement in the program will be visited by test
C.Each branch in the logic visited by a test
-
Question 3 of 20 0.0/ 5.0 Points
Which of the following is an appropriate statement in regard to a module unit test?
A.The module design documents have already been verified. If a problem is found in the
test results, an error exists in the test case or the module.
B.Verification should be performed, in principle, using test cases which cover all the
logic paths at least once while reviewing the module design documents.
C.The module interface falls outside the scope of the unit test because the module
interface cannot be tested using a single module.
D.Generally, test cases are created and executed by dedicated testing staff, not
programmers who have done the coding.
Question 4 of 20 5.0/ 5.0 Points
Internal and unit testing can be automated with the help of .. Tools.
A.testing
B.coverage
C.scaffolding
D.none
Question 5 of 20 5.0/ 5.0 Points
When software is developed using a test driven-approach, the unit test may take a place of
.. Each unit test can be seen as a design element specifying classes, method and observable behavior.
A.both A & B
-
B.informal design
C.unique design
D.formal design
Question 6 of 20 5.0/ 5.0 Points
Technical review are more .. That is, they aim to remove defects as soon as possible.
A.Objective
B.Subjective
C.Descriptive
D.Preventive
Question 7 of 20 5.0/ 5.0 Points
The exact scope of a unit is left to interpretation. Supporting test code , sometimes called
., may be necessary to support an individual test.
A.Scaffolding
B.Conjucture
C.RemUnit
D.All of above
Question 8 of 20 5.0/ 5.0 Points
To ensure testing robustness and simplify maintenance, test should never rely on other test nor
should they depend on the ordering in wich test are executed?
-
True
False
Question 9 of 20 5.0/ 5.0 Points
A unit is the smallest testable part of an application (In procedural programming a unit may be
an individual program, function, procedure, etc., while in object-oriented programming, the
smallest unit is always a method)
True
False
Question 10 of 20 5.0/ 5.0 Points
Which of the following is appropriate as a description of boundary value analysis?
A.A method where boundary values are identified for the data entered into the system
and used as test data
B.A method of testing where boundary values that can be entered into the system are
analyzed
C.A method where equivalence class border values are used as test data
D.A method of analysis for identifying input values that do not produce errors but are on
the borderline
Question 11 of 20 5.0/ 5.0 Points
Cc best practice ca giai on Perform unit testing bao gm
A. Keep unit tests small and fast
B. Keep tests independent
C. Unit tests should be fully automated and non-interactive
-
D. Test each feature once
Question 12 of 20 0.0/ 5.0 Points
A black box test is a type of testing technique used in software development. Which of the
following statements accurately describes a black box test?
A.A black box test is based on the internal specifications that describe the internal
structure and logic of the program. It is mainly performed by the program developer
him/herself.
B.A black box test tests whether or not the program functions as the designer intended. It
is mainly performed by third parties and not by the program developer.
C.A black box test analyzes the source program and tests program control flow and the
flow of data such as variables. It is mainly performed by third parties and not by the program
developer.
D.The objective of a black box test is to execute all of the instructions in the program at
least once. It is mainly performed by the program developer him/herself.
Question 13 of 20 5.0/ 5.0 Points
Unit Testing Conductor l Testing team
True
False
Question 14 of 20 0.0/ 5.0 Points
A main focus of reviews and other static test is ..
A. To help remove the need of testing altogether
B. preventing defects from appearing at later stages of this project
-
C. finding and fixing defects cheaply
D. to carry out testing as early as possible
Question 15 of 20 5.0/ 5.0 Points
Bc Specification derived test ca Black Box Test bao gm nhng vic no sau y
A. Test the software at either side of boundary values
B. Create test cases for each statements of specification
C. Divide the input of a program into classes of data from which test cases can be
derived. This might help you to reduce number of test cases that must be developed.
D. Execute test cases to check test result will output as the specification
Question 16 of 20 5.0/ 5.0 Points
The most common approach to unit testing require drivers and stubs to be written
True
False
Question 17 of 20 5.0/ 5.0 Points
The two major quality assurance verification approaches for each life cycle phase are
A.Technical check
B.Technical review
C.Requirement check
D.Design check
-
Question 18 of 20 5.0/ 5.0 Points
"The below function calculate square of number
Public static integer Square (integer intNumber){
Try
If input
-
D. Reduce the Quality Effort & Correction Cost
Question 20 of 20 5.0/ 5.0 Points
The testing technique that requires devising test cases to demonstrate that each program
function is operational is called
A.Grey box testing
B.black box testing
C.White box testing
Part 1 of 1 - 96.67/ 100.0 Points
Question 1 of 20 5.0/ 5.0 Points
Unit Testing Conductor l Testing team
True
False
Question 2 of 20 5.0/ 5.0 Points
Choose valid test types :
-
A. Security test
B. Load test
C. regression test
D. Performance test
Question 3 of 20 5.0/ 5.0 Points
Which of the following is appropriate as a description of boundary value analysis?
A.A method where boundary values are identified for the data entered into the system and
used as test data
B.A method where equivalence class border values are used as test data
C.A method of analysis for identifying input values that do not produce errors but are on the
borderline
D.A method of testing where boundary values that can be entered into the system are
analyzed
Question 4 of 20 5.0/ 5.0 Points
When software is developed using a test driven-approach, the unit test may take a place of .. Each
unit test can be seen as a design element specifying classes, method and observable behavior.
-
A.informal design
B.both A & B
C.unique design
D.formal design
Question 5 of 20 5.0/ 5.0 Points
Khi vit white box test case, ch cn vit y s lng test case tha statement coverage th s test
case tha iu kin branch coverage
True
False
Question 6 of 20 5.0/ 5.0 Points
A black box test is a type of testing technique used in software development. Which of the following
statements accurately describes a black box test?
A.A black box test is based on the internal specifications that describe the internal structure
and logic of the program. It is mainly performed by the program developer him/herself.
B.The objective of a black box test is to execute all of the instructions in the program at least
once. It is mainly performed by the program developer him/herself.
-
C.A black box test analyzes the source program and tests program control flow and the flow of
data such as variables. It is mainly performed by third parties and not by the program developer.
D.A black box test tests whether or not the program functions as the designer intended. It is
mainly performed by third parties and not by the program developer.
Question 7 of 20 5.0/ 5.0 Points
"Cho on code sau :
public bool ValidateEmail(string strEmail)
{
//Check null or empty
if (string.IsNullOrEmpty(strEmail))
{
return false;
}
//Check required character
bool blnRequireChar = false;
for (int i = 0; i < strEmail.Length; i++)
{
if (strEmail[i].ToString().Equals(""@""))
{
blnRequireChar = true;
}
}
//Check incorrect character
for (int i = 0; i < strEmail.Length; i++)
{
if (char.IsLetterOrDigit(strEmail[i]))
{
continue;
}
else if(char.Equals('.',strEmail[i]) || char.Equals('@',strEmail[i]))
{
continue;
}
else
{
return false;
}
}
-
return true;
}
on code trn cn t nht bao nhiu test case?"
A.5
B.7
C.8
D.6
Question 8 of 20 5.0/ 5.0 Points
. A series of probing question designed to review a predetermined area or function
A.Meeting list
B.Checklist
C.Minutes
D.Plan list
Question 9 of 20 5.0/ 5.0 Points
reviews: Review conducted during the system development process, normally in arccodance
with system development methodology. The primary objective of design reviewes is to ensure
compliance to design methodology.
-
A.Technical
B.Design
C.Requirement
D.Process
Question 10 of 20 5.0/ 5.0 Points
"public bool ValidPassword(string password)
{
bool validPassword = false;
// Check valid password length
if(IsValidLength(password, minLength, maxLength))
{
validPassword = true;
// Check valid password mix between lowcase and upcase
if(!IsMixedCase(password))
return false;
// Check valid password mix between alpha & numeric
if(!IsAphaNumeric(password))
return false;
}
return validPassword;
}
How many unit test cases you must do to check this function to cover all path! "
A.4
B.5
-
C.3
D.6
Question 11 of 20 5.0/ 5.0 Points
Black box testing attempts to find errors in which of the following categories:
A. incorrect or missing functions
B. performance errors
C. interface errors
Question 12 of 20 5.0/ 5.0 Points
Black Box Test bao gm
A. Equivalence partitioning
B. Condition analysis
C. Specification derived tests
D. Boundary value analysis
Question 13 of 20 5.0/ 5.0 Points
-
Unit Testing is to validate that individual units of software program are working properly.
True
False
Question 14 of 20 1.67/ 5.0 Points
White Box Test phi m bo hon thnh cc yu cu no sau y?
A. Decision (branch) coverage
B. Path coverage
C. "Statement coverage
"
D. Boundary value coverage
Question 15 of 20 5.0/ 5.0 Points
Which of the following is the appropriate description concerning black box testing?
A.The test case coverage is used as criteria for preparing test data.
B.Attention is focused on the internal structures of programs, and verification is made as to
whether necessary portions are executed.
-
C.If branch instructions and modules increase in number, the amount of test data also leaps
upward.
D.Even if any redundant code exists in a tested program, it cannot be detected.
Question 16 of 20 5.0/ 5.0 Points
Technical review are more .. That is, they aim to remove defects as soon as possible.
A.Objective
B.Descriptive
C.Subjective
D.Preventive
Question 17 of 20 5.0/ 5.0 Points
What are the items that have to have in unit test case
A. Input data
B. Test case description
C. Expected result
-
D. The actor that take the test
Question 18 of 20 5.0/ 5.0 Points
White Box Test Case phi m bo cc yu cu no sau y?
A. Each test case is combination of condition and confirmation
B. Coverage boundary cases
C. Keep testing at Unit Level
D. Make sure that all of the code is coverage.
Question 19 of 20 5.0/ 5.0 Points
What's is "Decision coverage" ?
A.Each branch in the logic visited by a test
B.Each path through the logic is visited by a test
C.Each statement in the program will be visited by test
Question 20 of 20 5.0/ 5.0 Points
To ensure testing robustness and simplify maintenance, test should never rely on other test nor
should they depend on the ordering in wich test are executed?
-
True
False