CMPE 187 Midterm/Exam (SJSU)

21
8/19/2019 CMPE 187 Midterm/Exam (SJSU) http://slidepdf.com/reader/full/cmpe-187-midtermexam-sjsu 1/21 CMPE 187: Midterm Exam MCQ Question 1 1 / 1 pts In general Software Quality is the responsibility of: Project Manager Everyone QA Team Developers Question 2 5 / 5 pts Quality can be viewed at from different view points and we discussed five views of quality and their intent. Do the match: Correct! Transcendental View You know it when you see it Correct! User View Meets user needs and expectations Correct! Manufacturing View Conforms to specifications Correct! Product View Quality is inherent Correct!  Value-based View You get what you pay for Question 3 1 / 1 pts Which of the following represents a behavioral characteristic of a system:

Transcript of CMPE 187 Midterm/Exam (SJSU)

Page 1: CMPE 187 Midterm/Exam (SJSU)

8/19/2019 CMPE 187 Midterm/Exam (SJSU)

http://slidepdf.com/reader/full/cmpe-187-midtermexam-sjsu 1/21

CMPE 187: Midterm Exam MCQ

Question 1 

1 / 1 pts 

In general Software Quality is the responsibility of:

Project Manager

Everyone

QA Team

Developers

Question 2 

5 / 5 pts 

Quality can be viewed at from different view points and we discussed five views of quality and their

intent. Do the match:

Correct! 

Transcendental View

You know it when you see it

Correct! 

User View

Meets user needs and expectations

Correct! 

Manufacturing View

Conforms to specifications

Correct! 

Product View

Quality is inherent

Correct! 

 Value-based View

You get what you pay for

Question 3 

1 / 1 pts 

Which of the following represents a behavioral characteristic of a system:

Page 2: CMPE 187 Midterm/Exam (SJSU)

8/19/2019 CMPE 187 Midterm/Exam (SJSU)

http://slidepdf.com/reader/full/cmpe-187-midtermexam-sjsu 2/21

 

Reliability

 All of these

Efficiency

Correctness

Question 4 

1 / 1 pts 

Which of the following is not an attribute of an architecture

Cohesiveness

Loose coupling

Performance

Modularity

Question 5 

1 / 1 pts 

Which of the following is a form of Static Testing:

Correct! 

Code Review

Standard Deviation

Performance Analysis

Load Testing

Question 6 

1 / 1 pts 

In the story of the Three Little Pigs, the first two passed:

Verification

Vitrification

Vilification

Page 3: CMPE 187 Midterm/Exam (SJSU)

8/19/2019 CMPE 187 Midterm/Exam (SJSU)

http://slidepdf.com/reader/full/cmpe-187-midtermexam-sjsu 3/21

 

Validation

Question 7 

1 / 1 pts 

Reliability can be tested via:

Long term testing

Random testing

Systematic testing

Modularized testing

Question 8 

1 / 1 pts 

Which of the following are objectives of testing:

Determine the software works

Reduce risk of failure

 All of these

Reduce cost of testing

Question 9 

1 / 1 pts 

You have set your google chat status as "Available." However, on your contacts' screens, contrary to

what is expected, it shows up as "Busy." This would be an:

Fault

Error

Failure

Defect

Question 10 

1 / 1 pts 

Page 4: CMPE 187 Midterm/Exam (SJSU)

8/19/2019 CMPE 187 Midterm/Exam (SJSU)

http://slidepdf.com/reader/full/cmpe-187-midtermexam-sjsu 4/21

Twitter SRS states that text longer than 140 characters should be truncated to 140 characters and

transmitted. The Twitter App on your iPhone stops working when you enter the 141st character and

forces you to restart the app. This is an example of:

Default State

Salty Taste

Error State

Faulty State

Question 11 

1 / 1 pts 

You are assigned to enhance a calculator with a new function. You work day and night for three days to

build a Golden Ratio function. A user later complains that the Pi value which was working fine before, is

not displayed properly anymore. This error should have been discovered during:

Preliminary Testing

Fundamental Testing

Basic Testing! 

Regression Testing

Question 12 

1 / 1 pts 

Making a small change to a program for testing purposes is known as:

Program Culmination

Program Mutation

Program Contamination

Structural Change

Question 13 

1 / 1 pts 

Implanting a certain number of defects, during testing, into a program is known as:

Page 5: CMPE 187 Midterm/Exam (SJSU)

8/19/2019 CMPE 187 Midterm/Exam (SJSU)

http://slidepdf.com/reader/full/cmpe-187-midtermexam-sjsu 5/21

Program Mutation

Fault Seeding

Program Seeding

Fault Mutation

Question 14 

1 / 1 pts 

Testing can reveal the presence of faults, but not their absence:

Correct! 

True

False

Question 15 

1 / 1 pts 

Static Testing and Dynamic Testing are mutually complementary:! 

True

False

Question 16 

1 / 1 pts 

You have written a plug-in for MS Word that translates words from English to Gibberish. During review,

you use a predefined scenario to explain the functionality of the plug-in manually or via simulation. This

is an example of a:

Walkthrough

Code Review

Code Inspection

Unit Testing

Question 17 

1 / 1 pts 

You are given a C++ routine that controls the iRobot Roomba and asked to read and check for

digression from standard coding practices. This is an example of:

Validation

Page 6: CMPE 187 Midterm/Exam (SJSU)

8/19/2019 CMPE 187 Midterm/Exam (SJSU)

http://slidepdf.com/reader/full/cmpe-187-midtermexam-sjsu 6/21

 

Code Inspection

Unit Testing

Walkthrough

Question 18 

1 / 1 pts 

During a code review, both the code and the programmer who wrote the code are evaluated:

True

False

Question 19 

1 / 1 pts Which of the following criteria are used during Static Unit Testing:

Correct! 

 All of these

Completeness

Readability

Minimal Functionality

Question 20 

1 / 1 pts 

You are asked to conduct unit testing for a routine written by Tesla engineers and you discover that the

routine, in addition to turning off the lights, also contains code to engage the handbrake. This violates

the principle of:

Maximum Efficiency

Complex Analysis

Cross Functionality

Minimal Functionality

Question 21 

1 / 1 pts 

Page 7: CMPE 187 Midterm/Exam (SJSU)

8/19/2019 CMPE 187 Midterm/Exam (SJSU)

http://slidepdf.com/reader/full/cmpe-187-midtermexam-sjsu 7/21

 After you make a change request, the Tesla engineers take out the handbrake code and send you the

turn-off-the-lights routine for unit testing. You should ask for:

Preliminary Tests

Unit Test

a Model S

Regression Tests

Question 22 

1 / 1 pts 

Only source code can be inspected during a code review:

True

False

Question 23 

1 / 1 pts 

Which of the following can be done during code creation to prevent defects:

Use assertions

Use standard controls for error checks

Build instrumentation in the code

 All of these

Question 24 

1 / 1 pts 

 Assertions help detect impossible conditions:

Correct! True

False

Question 25 

0 / 1 pts 

Page 8: CMPE 187 Midterm/Exam (SJSU)

8/19/2019 CMPE 187 Midterm/Exam (SJSU)

http://slidepdf.com/reader/full/cmpe-187-midtermexam-sjsu 8/21

It is a good idea to embed error messages in each routine, rather than collect them all in one place:

 You Answered 

True

False

Question 26 

1 / 1 pts 

In the Tesla unit test from questions 20 & 21, you are told that the ignition switch turns off the lights.

However, the routine for the ignition switch is not given to you. What will you need in order to test this

scenario:

Correct! 

Test Driver

Test Routine

Test Stub

 A strongly worded letter to Mr. Elon Musk

Question 27 

1 / 1 pts 

Tesla tells you that the turn-off-the-lights routine checks if a mobile phone is attached to the bluetooth

module, which is not given to you. What will you need in order to test this scenario:

Test Unit

Test Driver

Test Vehicle

Test Stub

Question 28 

1 / 1 pts 

When a test case causes a mutant to fail, such a mutant is said to be:

Impossible

Mutated

Page 9: CMPE 187 Midterm/Exam (SJSU)

8/19/2019 CMPE 187 Midterm/Exam (SJSU)

http://slidepdf.com/reader/full/cmpe-187-midtermexam-sjsu 9/21

 

Killed

 Assasinated

Question 29 

1 / 1 pts 

If a mutant produces the same output as the non-mutated program for all test cases, it is said to be an:

Correct! 

Equivalent

Equivocal

Equal

Equilateral

Question 30 

1 / 1 pts 

The process of determining the causes of a failure is called:

Fault finding

Defaulting

Debugging

 A to Z Testing

Question 31 

1 / 1 pts 

Taking out common attributes of derived classes and aggregating them in to a parent class is known as:

Customization

Deheritance

Generalization

Inheritance

Page 10: CMPE 187 Midterm/Exam (SJSU)

8/19/2019 CMPE 187 Midterm/Exam (SJSU)

http://slidepdf.com/reader/full/cmpe-187-midtermexam-sjsu 10/21

Question 32 

1 / 1 pts 

 Again going back to the Tesla test case, you discover that the Light class has attributes for both head

lights and indicator lights. You recommend deriving HeadLight and IndicatorLight classes from Light and

pushing down their attributes. This is known as:

Lightheadedness

Composition

 Aggregation

Specialization

Question 33 

4 / 4 pts Which of the following are the main characteristics of Object Oriented Programming:

Correct! 

Information Hiding

Dynamic Binding

Encapsulation

Inheritance

Class structure

Intolerance

Polymorphism

Objects

Information Highway

Question 34 

1 / 1 pts 

Which of the following facilitates understanding the relationship between different phases of software

development such as Requirements Analysis, Design, Implementation, Testing and Deployment:

ER Diagram

Page 11: CMPE 187 Midterm/Exam (SJSU)

8/19/2019 CMPE 187 Midterm/Exam (SJSU)

http://slidepdf.com/reader/full/cmpe-187-midtermexam-sjsu 11/21

 

Traceability Matrix

Pert Chart

Gantt Chart

Question 35 

2 / 2 pts 

Which of these are two types of basic program statements:

 Assessment

Conditional

 Assignment

Continental

Question 36 

1 / 1 pts 

Successive execution of statements in a program is known as:

Control Flow

Data Flow

Execution Flow

Program Flow

Question 37 

0 / 1 pts 

What do conditional statements do to the default flow of a program:

Correct Answer 

 Alter the flow

Test a predicate

Change direction

Page 12: CMPE 187 Midterm/Exam (SJSU)

8/19/2019 CMPE 187 Midterm/Exam (SJSU)

http://slidepdf.com/reader/full/cmpe-187-midtermexam-sjsu 12/21

 Alter the value of data

Question 38 

0 / 1 pts 

 A program path is a sequence of statements from entry to exit:

Correct Answer 

True

False

Question 39 

1 / 1 pts 

 A graphical representation of program statement execution is known as a:

Correct! 

Control Flow Diagram

Execution Chart

Data Flow Diagram

Flow Chart

Question 40 

1 / 1 pts 

If there are no inputs that guarantee the execution of a path, then such a path is known as:

Impossible

Irresistible

Infeasible

Inadequate

Question 41 

1 / 1 pts 

Executing individual program statements and observing the output is known as:

Path Coverage

Page 13: CMPE 187 Midterm/Exam (SJSU)

8/19/2019 CMPE 187 Midterm/Exam (SJSU)

http://slidepdf.com/reader/full/cmpe-187-midtermexam-sjsu 13/21

Branch Coverage

Program Coverage

Full Coverage

Question 42 

1 / 1 pts 

Executing a path that consists of a branch - conditional - is known as:

Path Coverage

Executive Branch Coverage

Branch Coverage

Program Coverage

Question 43 

0 / 1 pts 

You are asked by Apple to test Siri interaction for their new version of iOS for automobiles. The routine

you are unit testing has 1700 branches based on if Siri's response needs to be an affirmative or not. You

select a path and write a test case that tests all possible combinations of Siri's responses (Yes/No) in

this path. Your test case achieves:

Health Coverage

Predicate Coverage

Path Coverage

Program Coverage

Question 44 

0 / 1 pts 

If we identify a path, in order to execute the path (if possible) we need to generate input data that,in this path, satisfy all: 

 You Answered 

Correct Answer: 

Conditions

Page 14: CMPE 187 Midterm/Exam (SJSU)

8/19/2019 CMPE 187 Midterm/Exam (SJSU)

http://slidepdf.com/reader/full/cmpe-187-midtermexam-sjsu 14/21

Question 45 

1 / 1 pts 

The collection of all data entities read by the routine whose values must be fixed prior to entering the

routine is known as an: 

Correct! 

Input Vector

Input Condition

Input Parameter Set

Input Format

Question 46 

1 / 1 pts 

Which of the following are done by a program unit:

 Assign Values to Variables

Perform Computations

 Accept Input

 All of these

Question 47 

1 / 1 pts 

The difference between static data flow testing and dynamic data flow testing is that during static data

flow testing, the program is:

Correct! 

Not executed

Untouched

Executed

Broken down

Question 48 

3 / 3 pts 

Which of these are three types of data flow anomalies that arise by the use of variables:

Correct! 

Page 15: CMPE 187 Midterm/Exam (SJSU)

8/19/2019 CMPE 187 Midterm/Exam (SJSU)

http://slidepdf.com/reader/full/cmpe-187-midtermexam-sjsu 15/21

 

Defined and redefined

Defined but not assigned

Defined but not referenced

Undefined but referenced

Renamed and reused

Unnamed

Undefined but tested

Question 49 

1 / 1 pts 

During data flow testing, you come across the following code -

int x, y, z;

x = 0, y = 0, z = 1;

w = (x + y) / z ;

One of the problems with this could be that:

Correct! 

w is undefined

x and y are both zeros

z has a unit value

Brackets around x + y

Question 50 

1 / 1 pts 

 A data flow graph is a:

Multi-dimensional graph

Directed Graph

Graph with circles and ellipses

Page 16: CMPE 187 Midterm/Exam (SJSU)

8/19/2019 CMPE 187 Midterm/Exam (SJSU)

http://slidepdf.com/reader/full/cmpe-187-midtermexam-sjsu 16/21

Undirected Graph

Question 51 

1 / 1 pts 

The set of all input to a program is known as:

Data Domain

Input Domain

Input Set

Data Set

Question 52 

1 / 1 pts When a set of input data makes a program to execute an unexpected path, it is known as:

Correlation Error

Default Error

Computation Error

Domain Error

Question 53 

1 / 1 pts 

 A program is considered an input classifier:

Correct! 

True

False

Question 54 

0 / 1 pts You are given a task to test the spell check routine for MS Word and you notice that, when you input

words for testing purposes, a group of correctly spelled words are consistently flagged as misspelled.

This could be regarded as:

Correlation Error

Page 17: CMPE 187 Midterm/Exam (SJSU)

8/19/2019 CMPE 187 Midterm/Exam (SJSU)

http://slidepdf.com/reader/full/cmpe-187-midtermexam-sjsu 17/21

Domain Error

Functional Error

Conditional Error

Question 55 

0 / 1 pts 

 A domain is a set of values for which a program performs non-identical computations

 You Answered 

True

False

Question 56 

1 / 1 pts You are asked to write a routine that would help the drawing module of MS PowerPoint restrict all

geometric shapes to be contained within the boundaries of a slide. This is an example of a:

Open Range

Closed Boundary

Closed Range

Open Boundary

Question 57 

1 / 1 pts 

You are asked to further restrict geometric shapes so that they lie within the printable area defined by a

printer which allows points on or within an area of a page. This is an example of:

Closed Rim

Open Rim

Open Boundary

Closed Boundary

Question 58 

1 / 1 pts 

Page 18: CMPE 187 Midterm/Exam (SJSU)

8/19/2019 CMPE 187 Midterm/Exam (SJSU)

http://slidepdf.com/reader/full/cmpe-187-midtermexam-sjsu 18/21

Points where two or more boundaries cross are known as:

Intersections

Exclusive Set

Extreme Points

Inclusive Set

Question 59 

2 / 2 pts 

Which of the following can cause a domain error:

Correct! 

Incorrect assignment to a variable used in a predicate

Inconsistent design

Inconsistent requirement

Incorrectly specified predicate

Question 60 

0.5 / 1 pts 

 Apple sends you the executable for their Maps app for testing. The only kind of testing you can perform

are:Correct! 

Black-box Testing

White-box Testing

Static Testing

Dynamic Testing

Question 61 

1 / 1 pts 

For the boundary condition x + 7 y >= 6, the point (-1,1) would be an:

Undeterminate

ON-OFF Point

Page 19: CMPE 187 Midterm/Exam (SJSU)

8/19/2019 CMPE 187 Midterm/Exam (SJSU)

http://slidepdf.com/reader/full/cmpe-187-midtermexam-sjsu 19/21

 

ON Point

OFF Point

Question 62 

3 / 3 pts 

Select three types of interfaces:

Boundary condition

Shared memory

Message Passing

Cross-sectional

Function call interface

Cross-border

Question 63 

5 / 5 pts 

Identify common approaches to Integration Testing

Correct! 

Top-down Testing

Bottom-up Testing

Sandwich Testing

Incremental Testing

Sandstorm Testing

Comprehensive Testing

Big-bang Testing

Total Testing

Sandbox Testing

Page 20: CMPE 187 Midterm/Exam (SJSU)

8/19/2019 CMPE 187 Midterm/Exam (SJSU)

http://slidepdf.com/reader/full/cmpe-187-midtermexam-sjsu 20/21

Question 64 

1 / 1 pts 

One disadvantage of Top-down approach to Integration Testing is that discovery of major faults are

deferred towards the end of the integration process, because major design decision are embodied

in the top-level modules: 

True

False

Question 65 

1 / 1 pts 

One disadvantage of the Bottom-up approach to Integration Testing is that it may not be possible to

observe meaningful system functions because of an absence of lower level modules and the presence of

stubs.

True

False

Question 66 

1 / 1 pts 

Skeletal code written to simulate a calling function during Unit Testing is known as a:

Correct! 

Driver

Stub

Dummy code

Pseudo Function Call

Question 67 

1 / 1 pts 

Skeletal code written to simulate a called function during Unit Testing is known as a:

Driver

Simulation Function

Skeletal Routine

Page 21: CMPE 187 Midterm/Exam (SJSU)

8/19/2019 CMPE 187 Midterm/Exam (SJSU)

http://slidepdf.com/reader/full/cmpe-187-midtermexam-sjsu 21/21

Stub

Question 68 

1 / 1 pts 

 A test team observes non-changing constant values during a program execution. This can be termed as:

Static Analysis

Stochastic Analysis

Psycho Analysis

Dynamic Analysis