Software Engineering Questions
Explore questions in the Software Engineering category that you can ask Spark.E!
A state machine diagram describes the behaviour of§ an object.§ a use case.§ an operation.§ an actor.§ a class.
A design class is most cohesive when it§ is designed by only one person.§ does not require database access.§ has few dependencies to other classes.§ is used in only one scenario of a use case.§ has responsibilities that are closely related.
Which pattern prevents one from creating more than one instance of a variable?§ Bridge Pattern§ Mediator Pattern§ Observer Pattern§ Proxy Pattern§ Singleton Pattern
The Observer design pattern is used to§ defer instantiation of a class to its subclasses.§ provide a placeholder for another object.§ notify other objects about updates.§ encapsulate how a set of objects interact.§ decouple an abstraction from its implementation.
Which of the following CANNOT be shown on a Gantt chart?§ the task dependencies§ the time estimates for each task§ the resource assignment for each task§ the tasks that lie on the critical path§ the progress of each task
In the Model-View-Controller (MVC) architectural pattern, the Model represents§ the objects used to render data in the user interface.§ the process control mechanism used by the system.§ the controls with which the user interacts.§ the data viewed and manipulated by the user.§ the business logic of the application.
Black box testing uses test values at the boundaries of a subdomain because§ these values are easier for us to figure out.§ this will make integrating components easier.§ errors are more likely to occur here.§ black box testing only works for such values.§ these values can be given to us by the users.
When testing a simple loop, what is the minimum number of test cases required?
The purpose of data flow testing is to ensure the correctness of values§ stored by a program into a database.§ that move into and out of a database.§ that pass through a user interface.§ of program variables.§ output by a program.
When testing a nested loop, we initially test the inner loop while holding the outer loop at§ its minimum value.§ its middle value.§ its maximum value.§ both its minimum and maximum value.
Which statement is NOT true about a use-case actor?§ An actor can represent a person.§ An actor also can be represented by a domain model class.§ An actor represents a role a user can play.§ An actor can represent an internal database.§ An actor can represent a system.
Which of the following is NOT a configuration management activity?§ change management§ version management§ risk management§ release management§ system building
Testing every statement in a program guarantees that all defects (bugs) will be found.§ Yes, definitely!§ Yes, but only for simple programs.§ Yes, but only for programs using object-oriented languages.§ No, no way!!
What do we capture in use-case modeling?§ user interface requirements§ hardware requirements§ acceptance tests§ system behavior§ data requirements
An exclusive or (XOR) constraint states that§ an attribute cannot have null values.§ an attribute must either be null or can only have one of two values.§ instances of the same class cannot be related to each other.§ instances of only one of two classes can be related to instances of another class.§ two classes cannot be related by an association class.
The source code of a software component is required to do which type of testing?§ regression testing§ beta testing§ alpha testing§ acceptance testing§ system testing
Basis path testing ensures that we have tested at least§ all interactions between programs.§ all the ways of executing the loops in a program.§ all the statements in a program.§ all the data structures in a program.§ all the inputs to a program.
In the UML the multiplicity of an association specifies§ which classes can be related to each other.§ how many classes participate in the association.§ the navigability of the association.§ the number of objects that must/can be related.§ whether role names are required.
In the UML, the concept of generalization§ relates two different classes by an association relationship.§ allows a class to remove attributes and operations from its subclasses.§ supports the concept of stereotype.§ allows a class to specialize its attributes and operations.§ links instances of different classes together.
o Which of the following is not likely to contribute to the complexity of software development?§ The vocabulary of the application domain§ The number and size of the programs that need to be implemented§ The nature of the application domain§ A large development team§ Insufficient hardware resources