QUIZ 3 Fresher Unit test

61 2.3K 3
QUIZ 3 Fresher Unit test

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Question 1 of 20 ………. 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

Part of - Question of 20 78.33/ 100.0 Points 5.0/ 5.0 Points ……… Developer reviews code for accuracy A.Design check B.Requirement check C.Technical check D.Desk checking Question 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 of 20 5.0/ 5.0 Points Khi viết white box test case, cần viết đầy đủ số lượng test case thỏa statement coverage số test case thỏa điều kiện branch coverage True False Question of 20 What are the items that have to have in unit test case 3.33/ 5.0 Points A Input data B Test case description C Expected result D The actor that take the test Question of 20 "Cho đoạn 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; } 0.0/ 5.0 Points } return true; } Đoạn code cần test case?" A.5 B.7 C.8 D.6 Question 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 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 of 20 5.0/ 5.0 Points Bước Equivalence partitioning Black Box Test bao gồm việc sau 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 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 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 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 of 20 What's is "Decision coverage" ? 5.0/ 5.0 Points 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 0.0/ 5.0 Points Question of 20 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 of 20 Unit test is implemented by Development team to 1.67/ 5.0 Points 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 0.0/ 5.0 Points Question of 20 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 of 20 "The below function calculate square of number 5.0/ 5.0 Points Public static integer Square (integer intNumber){ Try If input[...]... 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 Các best practice của giai đoạn Perform unit testing bao gồm A Design code with testing in mind B Name tests properly 2.5/ 5.0 Points C Fix failing tests immediately D Make unit tests simple to run HCMUT_0 13_ CSD_02 _Quiz3 _Unit Testing... False 3. 33/ 5.0 Points Please select the test case design techniques that used to create unit test spec Question 17 of 20 A Internal boundary value testing B Branch Testing C Condition testing D State transition testing 5.0/ 5.0 Points Unit Testing is to validate that individual units of software program are working properly Question 18 of 20 True False 5.0/ 5.0 Points A black box test is a type of testing... in unit test case Question 10 of 20 A Expected result B Input data C The actor that take the test D Test case description 0.0/ 5.0 Points Internal and unit testing can be automated with the help of … Tools Question 11 of 20 A.testing B.coverage C.scaffolding D.none Question 12 of 20 5.0/ 5.0 Points "Unit Testing Deliverables bao gồm - Tested software units - Related documents (Unit Test case, Unit Test. .. have to have in unit test case 1.67/ 5.0 Points A The actor that take the test B Expected result C Input data D Test case description HCMUT_0 13_ CSD_02 _Quiz3 _Unit Testing Return to Assessment List Part 1 of 1 - 83. 33/ 100.0 Points 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 Question 1... HCMUT_0 13_ CSD_02 _Quiz3 _Unit Testing Return to Assessment List Part 1 of 1 - 65. 83/ 100.0 Points 3. 33/ 5.0 Points Black box testing attempts to find errors in which of the following categories: Question 1 of 20 A incorrect or missing functions B interface errors C performance errors 2.5/ 5.0 Points Các best practice của giai đoạn Perform unit testing bao gồm Question 2 of 20 A Test each feature once B Unit. .. review C.Requirement check D.Design check Question 3 of 20 Please select the test case design techniques that used to create unit test spec A Condition testing 1.67/ 5.0 Points 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 gồm A Boundary value analysis B Specification derived tests C Equivalence partitioning D Condition analysis... actor that take the test B Expected result C Input data D Test case description Question 10 of 20 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 5.0/ 5.0 Points Question 11 of 20 5.0/ 5.0 Points White Box Test phải đảm bảo... types of unit test case: Black box unit test case and White box unit test case" 0.0/ 5.0 Points True False 5.0/ 5.0 Points Question 17 of 20 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 0.0/ 5.0 Points Question 18 of 20 A black box test is a type of testing technique... 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,... Points Các best practice của giai đoạn Perform unit testing bao gồm Question 2 of 20 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 5.0/ 5.0 Points "The below function calculate square of number Question 4 of 20 Public static

Ngày đăng: 13/11/2015, 10:15

Từ khóa liên quan

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan