Final Exam

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Blackbox testing is also known as: A.) Functional Testing B.) Structural Testing C.) Glassbox Testing D.) Stress Testing

A.)

Choose the most appropriate generic software process model that might be used as a basis for managing the development of the following system: " A university accounting system that replaces an existing system" A.) Waterfall Model B.) Spiral Model C.) V-shaped Model D.) Rapid Application Development Model (RAD)

A.)

Choose the most appropriate generic software process model that might be used as a basis for managing the development of the following system: "A system to control anti-lock braking in a car" A.) V-shaped Model B.) Spiral Model C.) Rapid Application Development Model (RAD) D.) Structural Evolutionary Prototyping Model

A.)

How is complexity in Software Systems handled: A.) Abstraction B.) Testing C.) Pair Programming D.) Engineering

A.)

In the context of Integration Testing, a component that calls the Tested Unit and controls the test cases is called: A.) Driver B.) Stub C.) Test Class D.) Test Fixture

A.)

A kind of System Model that provides abstraction based on the structure of the system is called __________: A.) Functional Model B.) Object Model C.) Task Model D.) Issues Model

B.)

What is the opacity System Testing: A.) Whitebox Testing B.) Blackbox Testing C.) Both of the Above D.) None of the Above

B.)

A kind of System Model that provides abstraction based on how the system reacts to external events/triggers and event flow in the system is called __________: A.) Object Model B.) Functional Model C.) Dynamic Model D.) Issues Model

C.)

What is a fault or a bug: A.) Deviation of observed behavior from specified behavior. B.) System is in a state such that further processing by the system can lead to failure. C.) Mechanical or algorithmic cause of an error. D.) Process of checking for deviations between observed behavior of a system and its specification.

C.)

What is the opacity of Integration Testing: A.) Whitebox Testing B.) Blackbox Testing C.) Both of the Above D.) None of the Above

C.)

Analyze the following code: public class Test implements Runnable { public static void main(String[] args) { Test t = new Test(); } public Test() { Thread t = new Thread(this); t.start(); } public void run() { System.out.println("test"); } } A.) The program has a compilation error because t is defined in both the main() method and the constructor Test(). B.) The program compiles fine, but it does not run because you cannot use the keyword in the constructor. C.) The program compiles, runs, and displays nothing. D.) The program compiles, runs, and displays test.

D.)

What are the types of Integration Testing: A.) Big Bang Testing B.) Bottom Up Testing C.) Top Down Testing D.) All of the Above

D.)

What is Validation (in testing terminology): A.) Deviation of observed behavior from specified behavior. B.) System is in a state such that further processing by the system can lead to failure. C.) Mechanical or algorithmic cause of an error. D.) Process of checking for deviations between observed behavior of a system and its specification.

D.)

Top-down integration testing has as its major advantage(s) that: A.) Low level modules never need testing. B.) Major decision points are tested early. C.) No drivers need to be written. D.) No stubs need to be written. E.) Both B and C

E.)

Which of the following statement(s) about PSP0 are true: 1. Involves following simple process steps. 2. Involves collecting 3 basic measures of their work (Time Spent, Size of Products Produced, Defects Corrected) 3.) Involves performing a simple post-project analysis. A.) 1 only B.) 2 only C.) 3 only D.) 1 and 2 E.) 2 and 3 F.) 1 and 3 G.) All Three statements

G.)

Javadoc comments begin with a special marker /** : True or False

True

What is the opacity of Unit Testing: A.) Whitebox Testing B.) Blackbox Testing C.) Both of the Above D.) None of the Above

A.)

In the software development process, when the emphasis is on users participation then what kind of inspection method is essential: A.) Heuristic System B.) Guideline Reviews C.) Pluralistic and Cognitive walk-throughs D.) Inspection of Standards

C.)

Test-driven development starts with ____________: A.) Coding B.) Creating a test plan C.) Writing/ adding a test D.) Running automated tests

C.)

Unit testing is the as refactoring. True or False?

False

Two important kinds of hierarchy are __________ and __________: A.) part-of and is-kind-of B.) Functional and Object C.) Object and Class D.) Abstract and Concrete

A.)

What is Software Engineering: A.) A collection of techniques, methodologies and tools that help with the production of a high quality software system. B.) Writing Code C.) Building a program D.) Understanding the problem

A.)

What is the best way to release a thread object once you are done using it: A.) Assign null to Thread variable. B.) Use stop() method of Thread class. C.) Use suspend() method of Thread class. D.) Use resume() method of Thread class.

A.)

What perspectives may be used for system modeling: A.) External, Interaction, Behavioral, Structural Perspectives B.) Rule, Object, Actor Perspective C.) Functional, Role, Communication Perspective D.) None of the above

A.)

Which of the following is a valid Javadoc comment: A.) /** * Hello! */ B.) //** * Hello! **// C.) /* * Hello! */ D.) /** * Hello! **/

A.)

What are some of the different ways to conduct Peer Reviews: A.) Walk-through(s) B.) Meetings C.) Discussions D.) Full Reviews E.) Pair Programming F.) Inspections

A.), D.), F.)

What are three steps in PSP: A.) PSP0 B.) TSP C.) Develop D.) Test E.) PSP1 F.) PSP2

A.), E.), F.)

When an exception occurs it is said to have been: A.) Caught B.) Thrown C.) Declared D.) Handled

B.)

All exception classes inherit, either directly or indirectly, from: A.) Class Error B.) Class RuntimeException C.) Class Throwable D.) None of the above

C.)

Equivalence class partitioning is used to: A.) Find the very-common bugs that lurk in the corner. B.) Record complex business rules that the system must implement and that must be tested. C.) Manage the number of test cases run. D.) None of the above.

C.)

Code Analysis (1) public int countPositive(int[] x) { //Effects: If x == null throw NullPointerException //Else return the number of positive (non-zero) elements in x int count = 0; for (int i = 0; i < x.length; i++) { if (x[i] >= 0) { count++; } } return count; } // Test Input: x = [-4, 2, 0, 2] // Expected output = 2 Which of the following is a fix for the fault in the above program: A.) Change if condition to: x[i] > 0 B.) Change for loop to: for (int i = 0; i <= x.length; i++) C.) Change for loop to: for (int i = x.length; i >= 0; i--) D.) None of the above

A.)

How is generalization used to simplify the models of a system with many similar objects: A.) Assuming that similar objects have attributes and methods in common these common attributes and methods are associated with a "super-class" which generalizes all of the objects sharing these attributes/methods. B.) Assuming that different objects have nothing in common C.) By overloading methods

A.)

The client requests a connection to a server using the following statement: A.) Socket s = new Socket(ServerName, Port); B.) Socket s = serverSocket.accept(); C.) Socket s = serverSocket.getSocket(); D.) Socket s = new Socket(ServerName);

A.)

Which of the following statements is true: A.) The throw statement is used to throw an exception. B.) The throw statement is used to specify that a method will throw an exception. C.) The throw statement is used to access an exception parameter. D.) All of the above.

A.)

_____________ is a testing methodology that is not concerned with the inner working and implementation details of the application: A.) Blackbox Testing B.) Whitebox Testing C.) Unit Testing D.) Static Testing

A.)

What are the claimed benefits of model-driven engineering: A.) Engineers can work at a high level of abstraction without concern for implementation details. B.) Errors are reduced and the design and implementations process is faster. C.) By using powerful generation tools, implementations of the same system can be automatically generated for different platforms. D.) There is no need to test the system.

A.), B.), C.)

What are three types of abstract system models that are recommended by the Model-Driven Architecture (MDA) method: A.) A computational-independent model (CIM) B.) A platform-independent model (PIM) C.) One or more platform-specific models (PSMs) D.) Functional Model E.) Architectural Model F.) Behavioral Model

A.), B.), C.)

The anatomy or format of a test case consists of which of the following: A.) TestID B.) Description C.) Expected Results D.) Actual Results E.) Exceptions F.) Special Cases

A.), B.), C.), D.)

What are the principal components of a textual use-case description: A.) The actors involved B.) A Description of the interactions C.) Preconditions of the use-case D.) Post conditions of the use-case E.) Classes F.) Special requirements and other information

A.), B.), C.), D.), F.)

What are some of the product standards defined and used in software quality management: A.) Design review form B.) Java programming style C.) Change control process D.) Method header format E.) Version release process F.) Test recording process

A.), B.), D.)

Which of the following are important features of Junit: A.) It is an open source framework. B.) Provides annotation to identify the test methods. C.) Provides testing for the entire software system. D.) Junit tests can be run automatically. E.) Junit tests can be organized into tests suites. F.) Provides fixes for test cases that failed. G.) Provides mechanism for customers to test the system.

A.), B.), D.), E.)

Defect logging in PSP involves logging what kind of information about a defect? A.) Defect Type B.) Phases Injected and Removed C.) Time When Defects are Introduced D.) Fix Time E.) Defect Line Number F.) Developer Name G.) Description

A.), B.), D.), G.)

Select the basic PSP1 data measures that are tracked and estimated: A.) Program Size B.) Time Spent by Phase C.) Resources Spent by Phase D.) Budget Spent by Phase E.) Defects Found and Injected by Phase

A.), B.), E.)

Which of these are different types of code coverage: A.) Branch Coverage B.) Debugging C.) Statement Coverage D.) Static Analysis E.) Unit Testing

A.), C.)

A limited logging meeting: A.) Consists of only two persons who are very familiar with the material being reviewed. B.) Gathers a limited group together from among the total set of reviewers. C.) Consists of limited persons who are very familiar with the material being reviewed. D. Is held with reviewers using a communication channel such as the internet.

B.)

A limited logging meeting: A.) Consists of only two persons who are very familiar with the material being reviewed. B.) Gathers a limited group together from among the total set of reviews. C.) Consists of limited persons who are very familiar with the material being reviewed. D.) Is held with reviewers using a communication channel such as the internet.

B.)

Code Analysis (1) public int countPositive(int[] x) { //Effects: If x == null throw NullPointerException //Else return the number of positive (non-zero) elements in x int count = 0; for (int i = 0; i < x.length; i++) { if (x[i] >= 0) { count++; } } return count; } // Test Input: x = [-4, 2, 0, 2] // Expected output = 2 If possible, identify a test case that executes the fault, but does not result in an error state A.) Test input: x = [0, 0, 0]; Expected output = 0 B.) Test input: x = [-4, 1, 5]; Expected output = 2 C.) Test input: x = [0, 4, 7]; Expected output = 2 D.) No test case possible

B.)

How are activity diagrams used in describing the context of use of a system: A.) Activity diagrams may be used to describe actors and functions of the system. B.) Activity diagrams may be used to describe the business processes in which the system is used and the other systems which are also used in the processes. C.) Activity diagrams can be used to describe various objects and their interaction.

B.)

If the catch-or-declare requirement for a checked exception is not satisfied: A.) The compiler will issue an error message indicating that the exception must be caught. B.) The compiler will issue an error message indicating that the exception must be caught or declared. C.) A stack trace will be displayed indicating the exception that has occurred and where it occurred. D.) A stack trace will be displayed, along with a message indicating that the exception must be caught.

B.)

In the context of Integration Testing, a component the Tested Unit depends on and is a partial implementation that returns fake values is called: A.) Driver B.) Stub C.) Test Class D.) Test Fixture

B.)

Javadoc is a documentation generator for generating API documentation in ___________ format from Java source code: A.) Portable Document Format B.) HTML C.) OpenDocument D.) ECMA Script

B.)

The purpose of reviews and inspections is: A.) To assess performance of people on development team. B.) To improve software quality. C.) To reveal mistakes Ade by an individual to the whole team. D.) None of the above.

B.)

The server listens for a connection request from a client using the following statement: A.) Socket s = new Socket(ServerName, Port); B.) Socket s = serverSocket.accept(); C.) Socket s = serverSocket.getSocket(); D.) Socket s = new Socket(ServerName);

B.)

What are personal reviews in PSP: A.) Can help one define their purpose and identify the objectives which he/she wish to pursue. B.) Process of reviewing one's own code using a well-defined and structured process. C.) List the activities in which you excel. D.) Knowing your greatest achievements allows you to build confidence and identify potential opportunities.

B.)

What is aggregation: A.) First determine the functionality of the system is to provide without consideration of implementation constraints. B.) An aggregation is an object (the whole) composed of different parts (other objects). C.) Formal description of a system, or a detailed plan of the system at component level to guide its implementation.

B.)

What is the purpose of Usability Testing: A.) To evaluate the compliance of a system with specified performance requirements. B.) To evaluate the extent to which a user can learn to operate, prepare inputs for, and interpret outputs of a system. C.) To evaluate a system at or beyond the limits of its specification or requirement. D.) None of the above

B.)

What is the purpose of the sleep method of the Thread class: A.) Used to temporarily release time for other threads. B.) Puts the thread to sleep for the specified time in milliseconds. C.) To force one thread to wait for another thread to finish. D.) To find the state of a thread.

B.)

Which method of Thread class is used to temporarily release time for other threads: A.) sleep B.) yield C.) pause D.) join

B.)

Which of the following exceptions is a checked exception: A.) ArithmeticException B.) IOException C.) RuntimeException D.) InputMismatchException

B.)

Which of the following statements is false: A.) Exception handling enables programmers to write robust and fault-tolerant programs. B.) Exception handling can catch but not resolve exceptions. C.) Exception handling can resolve exceptions. D.) Custom exception classes can be created if the predefined classes are not sufficient.

B.)

Whitebox testing is also known as: A.) Functional Testing B.) Structural Testing C.) Regression Testing D.) Stress Testing

B.)

__________ Javadoc tag describes an argument of method or constructor: A.) @version B.) @param C.) @argument D.) @desc

B.)

Which of the following are strategies of Blackbox Testing: A.) Test Automation B.) Equivalence Class Partitioning C.) Boundary Value Analysis D.) Decision Table Testing E.) Acceptance Testing F.) Regression Testing

B.), C.), D.)

Which of these are types of review meetings conducted for Software Quality: A.) Secondary Inspection B.) Virtual Logging Meeting C.) Limited Logging Meeting D.) Pair Review E.) Kick-off Meeting F.) No-Logging Meeting Review

B.), C.), D.), F.)

An uncaught exception: A.) Is a possible exception that never actually occurs during the execution of the program. B.) Is an exception that occurs for which the matching catch clause is empty. C.) Is an exception that occurs for which there are no matching catch clauses. D.) Is another term for thrown exception.

C.)

Bottom-up integration testing has its major advantage(s) that: A.) Major decision points are tested early. B.) No drivers need to be written. C.) No stubs need to be written. D,) Regression testing is not required.

C.)

Code Analysis (1) public int countPositive(int[] x) { //Effects: If x == null throw NullPointerException //Else return the number of positive (non-zero) elements in x int count = 0; for (int i = 0; i < x.length; i++) { if (x[i] >= 0) { count++; } } return count; } // Test Input: x = [-4, 2, 0, 2] // Expected output = 2 If possible, identify a test case that does not execute the fault: A.) Test input: x = [1, 2, 3]; Expected output = 3 B.) Test input: x = [0, 0, 0]; Expected output = 0 C.) Test input: x = []; Expected output = 0 D.) No test case possible

C.)

The throws clause of a method: A.) Specifies the exceptions a method catches B.) Specifies the exceptions thrown by the calling method C.) Specifies the exceptions a method throws D.) Specifies the exceptions a method throws and catches.

C.)

To catch an exception, the code that might throw the exception must be enclosed in a: A.) Throws Block B.) Catch Block C.) Try Block D.) Finally Block

C.)

Tools such as Eclipse, FindBugs, Metrics, CheckStyle, etc. can be used for ____________ of code: A.) Dynamic Testing B.) System Testing C.) Static Analysis D.) Blackbox Testing

C.)

What is a Test Fixture: A.) Code to be executed before tests are executed. B.) Annotation used in unit testing. C.) Fixed state of a set of objects uses as a baseline for running tests. D.) Code to be executed after tests are executed.

C.)

What is the basic assumption that underlies event-driven modeling: A.) That the system can be represented as "objects", which are data structures that contain data, in the form of fields, and behavior, in the form of methods. B.) That the system allows multiple concerns to be expressed separately and automatically unified into working systems. C.) That the system can be represented as a model with a finite number of discrete states and external and internal events trigger a transition from one state to another.

C.)

What is the normal order of activities in which traditional software testing is organized. 1. Integration Testing 2. System Testing 3. Unit Testing 4. Acceptance Testing A.) 1, 4, 3, 2 B.) 2, 4, 1, 3 C.) 3, 1, 2, 4 D.) 4, 2, 3, 1

C.)

_____________ are the testers of Unit Testing: A.) Business analysis B.) Customers C.) Developers D.) Independent Testers

C.)

Code Analysis (1) Below is a faulty program. It includes a test case that results in failure. Answer the following questions A - D about this program: public int countPositive(int[] x) { //Effects: If x == null throw NullPointerException //Else return the number of positive (non-zero) elements in x int count = 0; for (int i = 0; i < x.length; i++) { if (x[i] >= 0) { count++; } } return count; } // Test Input: x = [-4, 2, 0, 2] // Expected output = 2 Identify the fault in this program: A.) For loop is incorrect: it is iterating from low to high B.) Initialization of count variable is incorrect C.) If conditional is incorrect: it should consider values less than 0 as well D.) If conditional is incorrect: it is testing for 0 as well

D.)

What is reengineering: A.) Decomposition B.) Create a class-based interface to any system. C.) Identifying classes for a new software system. D.) Identifying the classes in an existing system.

D.)

Which of the following is not included in an exception's stack tree: A.) A descriptive message for the exception. B.) The method-call stack at the time the exception occurred. C.) The name of the exception. D.) Instructions on handling the exception.

D.)

Whitebox testing methodology involves: A.) Code walkthrough B.) Static analysis of code at compile time C.) Involves providing available inputs for the application and validating the actual output produced with the expected output. D.) Looking under the covers and into the implementation details of the subsystem of an application.

D.)

What UML diagram types may be used to represent the essential features of a system: A.) Activity Diagrams B.) Use Case Diagrams C.) Class Diagrams D.) State Diagrams E.) All of the above

E.)


Kaugnay na mga set ng pag-aaral

ECON 2113 Chapter 4 Practice Problems

View Set

Biology 4th 9 weeks test + Chemistry 4th 9 weeks test

View Set