Component Testing and Interface Types

Component interface testing, 4 interface types, 3 classes of interface error

download Export
search_insights Statistics
stylus_note White Board
Quran
calculate Calculator
dictionary Dictionary
fullscreen Full Screen
QUESTION OF

volume_mute Read quiz aloud
Views #: 188
Questions #: 12
Time: 10 minutes
Pass Score: 80.0%
Style
Mode

What Component Testing Focuses On

1 pts
volume_mute

When testing composite components made up of several interacting objects, what should testing focus on?

note_alt Add notes
flag Flag
volume_mute

Correct Answer

Explanation


Component Interface Testing Model

1 pts
volume_mute

The diagram below illustrates component interface testing where components A, B, and C have been integrated.

Test cases A B C

Where are test cases applied in component interface testing?

note_alt Add notes
flag Flag
volume_mute

Correct Answer

Explanation


Four Types of Component Interfaces

1 pts
volume_mute
To complete the line match
  1. Click on an item in the first group
  2. Click on an item in the second group
  3. To delete a match, double click on a line

Interface Type

Message passing interfaces
Procedural interfaces
Parameter interfaces
Shared memory interfaces

Description

A block of memory is shared between components; data placed by one subsystem and retrieved by others
Data or function references are passed from one component to another
One component requests a service from another by passing a message; results returned in a reply message
One component encapsulates a set of procedures that can be called by other components

Match each interface type to its correct description.

note_alt Add notes
flag Flag
volume_mute

Correct Answer

Explanation


Shared Memory Interface Use Case

1 pts
volume_mute

Which type of system most commonly uses shared memory interfaces between components?

note_alt Add notes
flag Flag
volume_mute

Correct Answer

Explanation


Three Classes of Interface Errors

1 pts
volume_mute
Scenarios
×A binary search method is called with an unordered array because the caller assumed any array would work
×A method is called with parameters in the wrong order, causing incorrect behavior
×A producer updates shared data too slowly; the consumer reads stale data
Interface misuse
Interface misunderstanding
Timing errors

Interface errors fall into three classes. Classify each scenario into the correct error class.

note_alt Add notes
flag Flag
volume_mute

Correct Answer

Explanation


Interface Misuse - Most Common Type

1 pts
volume_mute

Interface misuse is particularly common with which type of interface, and what forms does it typically take? Select all that apply.

note_alt Add notes
flag Flag
volume_mute

Correct Answer

Explanation


Queue Overflow Interface Defect

1 pts
volume_mute

An object implements a queue as a fixed-length data structure. A calling object assumes the queue is infinite and never checks for overflow. Under what condition is this defect revealed during testing?

note_alt Add notes
flag Flag
volume_mute

Correct Answer

Explanation


Fault Interaction Between Modules

1 pts
volume_mute

A module calls another module expecting a correct return value. The called module has a subtle fault and returns a value that is valid but incorrect. The error only becomes obvious when a later computation using the returned value goes wrong. What does this scenario illustrate?

note_alt Add notes
flag Flag
volume_mute

Correct Answer

Explanation


Interface Testing Guidelines

1 pts
volume_mute

Which of the following are recommended guidelines for testing component interfaces? Select all that apply.

note_alt Add notes
flag Flag
volume_mute

Correct Answer

Explanation


Stress Testing in Message-Passing Systems

1 pts
volume_mute

Why is stress testing particularly recommended for message-passing systems during interface testing?

note_alt Add notes
flag Flag
volume_mute

Correct Answer

Explanation


Inspections vs. Testing for Interface Errors

1 pts
volume_mute

For detecting interface errors, the text suggests that inspections can sometimes be better than testing. In what way are inspections particularly effective for interface testing?

note_alt Add notes
flag Flag
volume_mute

Correct Answer

Explanation


Interface Errors Are Common

1 pts
volume_mute

Research on software defects has highlighted the prevalence of interface errors. Which statement correctly reflects this finding?

note_alt Add notes
flag Flag
volume_mute

Correct Answer

Explanation