Quiz
Semawhores Conquer Software Design
This quiz has question types that open in the usual player.
Questions in this quiz (21)
1The Manifesto for Agile Software Development: [blank_start]individuals and interactions[blank_end] over processes and tools, [blank_start]working software[blank_end] over comprehensive documentation, [blank_start]customer collaboration[blank_end] over contract negotiation, [blank_start]responding to change[blank_end] over following a plan
- Aindividuals and interactions
- Bworking software
- Ccustomer collaboration
- Dresponding to change
2For each test: 1.) [blank_start]Write a test case[blank_end]. 2.) Write/modify code so that [blank_start]test passes[blank_end]. New tests may be discovered. 3.) [blank_start]Refactor[blank_end].
- Atest passes
- BRefactor
- CWrite a test case
3Tests are generally "black box". What does this mean?
- AWritten without knowledge of internal structure
- BWritten with the knowledge of internal structure
4What is testing the smallest testable unit called?
- AUnit testing
- BIntegration testing
- CSystems testing
5Four models for Requirement Variants:
Model #1:
Make [blank_start]a copy of the source tree[blank_end]
[blank_start]Throw away[blank_end] some code, add some new code
Throw away unit tests, [blank_start]add new unit tests[blank_end]
Model #2:
[blank_start]Parameterization[blank_end]: Throw in some 'if'-statements
Model #3:
[blank_start]Polymorphic proposal[blank_end]: Variation through inheritance
Model #4:
[blank_start]Compositional proposal[blank_end]: Factor out rate model responsibility- Aa copy of the source tree
- BThrow away
- Cadd new unit tests
- DParameterization
- EPolymorphic proposal
- FCompositional proposal
6A pattern consists of a [blank_start]name[blank_end], the [blank_start]intent[blank_end], the [blank_start]solution[blank_end], and [blank_start]consequences[blank_end].
- Aname
- Bintent
- Csolution
- Dconsequences
7A pattern is defined by
- Athe problem it solves, not the structure of the solution.
- Bthe structure of the solution, not the problem it solves.
8What are creational design patterns?
- APatterns for creating objects
- BPatterns that define relationships between classes and objects
- CPatterns that are concerned with algorithms and assignment of responsibilities between objects
9What are structural design patterns?
- APatterns for creating objects
- BPatterns that define relationships between classes and objects
- CPatterns that are concerned with algorithms and assignment of responsibilities between objects
10What are behavioral design patterns?
- APatterns for creating objects
- BPatterns that define relationships between classes and objects
- CPatterns that are concerned with algorithms assignment of responsibilities between objects
11The strategy pattern defines three roles: [blank_start]client[blank_end], [blank_start]context[blank_end], and [blank_start]strategy[blank_end].
- Aclient
- Bcontext
- Cstrategy
12In the state pattern, your product's behavior varies at [blank_start]run-time[blank_end] depending on some [blank_start]internal state[blank_end].
- Ainternal state
- Brun-time
13Threads are distinguished from processes in that threads do not share memory but processes do.
- ATrue
- BFalse
14[blank_start]Semaphores[blank_end] and [blank_start]monitors[blank_end] can provide safe access to shared variables.
- ASemaphores
- Bmonitors
15In what type of parallel processing does each instruction performs the same operation on multiple streams of data simultaneously?
- ASingle Instruction Multiple Data (SIMD)
- BSingle Instruction Multiple Threads (SIMT)
- CSymmetric Multiprocessing
- DDistributed Memory
16In what type of parallel processing can NVIDIA graphics processors be used for general purpose parallel computing. It is also a variation on SIMD which simplifies programming.
- ASingle Instruction Multiple Data (SIMD)
- BSingle Instruction Multiple Threads (SIMT)
- CSymmetric Multiprocessing
- DDistributed Memory
17In what type of parallel processing do multiple processors share common memory and I/O resources?
- ASingle Instruction Multiple Data (SIMD)
- BSingle Instruction Multiple Threads (SIMT)
- CSymmetric Multiprocessing
- DDistributed Memory
18In what type of parallel processing are independent computers linked via a high speed network called a cluster?
- ASingle Instruction Multiple Data (SIMD)
- BSingle Instruction Multiple Threads (SIMT)
- CSymmetric Multiprocessing
- DDistributed Memory
19A [blank_start]proxy[blank_end] is a method that stands in place of another method. It has the same interface.
- Aproxy
20What is the process of changing the internal structure of a program without changing the external behavior?
- ARefactoring
- BThreading
- CState Pattern
- DProxy
21Examples of refactoring:
- Introduce [blank_start]method[blank_end].
- [blank_start]Rename[blank_end] variables.
- [blank_start]Move[blank_end] method.
- Replace switch with [blank_start]polymorphism[blank_end].- Amethod
- BRename
- CMove
- Dpolymorphism
Information
- Description
- Quiz used to study for final in Software Design class. Please add questions.
- Author
- Jessica Nwaogbe
- Language
- English
- Views
- 6
- Tags
- Rating
- No ratings yet Rate this quiz