Sunday 12 March 2017

Software design questions.


Architectural design 

  1. The concepts of push/pull type of pipelines are used in
    1. MVC Architectural Style
    2. Pipe-and-Filter Architectural Style
    3. Broker Architectural Style
    4. Layered Architectural Style
  2. In a distributed system when two remote components exchange data, who is responsible for data transformation and transmission ?
    1. Client Stub
    2. Broker
    3. Skeleton
    4. Bridge
  3. Polymorphism allows
    1. component replacement
    2. late binding of operations
    3. set parameters at startup
    4. early binding of operations
  4. Suppose that you are to design a gmail like mail system. The incoming mails are scanned for different security checks at different level one after other. Each level has its own functionality and depends on input from previous levels.For designing such system, what is the best possible architecture that can be used for this situation.
    1. layered architecture
    2. Microkernel
    3. pipe and filter
    4. model view controller
  5. You are fetching data from a NO-SQL platform where the table structure is quite dynamic. It can change depending on the nature of the data. You wouldn't like to change your application everytime the table structure changes. What's the pattern you should use?
    1. microkernel
    2. broker
    3. blackboard architecture
    4. reflection
  6. A typical component may have some features available for global use but some features are for its personal use. Which quality tactic it is employing ?
    1. Separate interface from implementation
    2. Hide Information
    3. Record Playback
    4. Shadow Operation
  7. Consider a cloud based data centre which runs a VMWare based virtualized platform. You are running an application on top of a MacOS which is essentially a virtual machine running on top of VMWare hypervisor. What role does the MacOS play here ?
    1. adapter
    2. internal server
    3. external servers
    4. microkernel module
  8. If you have to design a system that reads a set of student marks for the last 10 years from a file, on which you need to select fall semester marks, then you need to group these marks based on various subjects, sort these records based on marks, and finally report the sorted marks and a statistical trend analysis (mean, median, etc.). Which architectural style would you prefer
    1. model view controller
    2. blackboard
    3. pipe and filter
    4. Microkernel
  9. A complex portal's user-interface part interacts with a set of web-servers. These web-servers, depending on the request type, routes it to the appropriate application service which process the request. The webserver then returns the response to the user-interface. Here what is the role of the webserver?
    1. blackboard
    2. broker
    3. kernel
    4. controller
  10. Which quality attribute would you consider most important for the development of Google type search query system?
    1. Testability
    2. Performance
    3. Security
    4. Modifiability
  11. You are writing a software for a Robocup tournament where your team, comprising of multiple Robots will play a soccer game with another opponent. What should be your architectural strategy to write the overall controlling software for your robot?
    1. use broker pattern for distributed computing
    2. use reflection pattern for flexibility
    3. use blackboard based design
    4. use microkernel architecture
  12. If you want to create a modular design in C, which of the following C language features represent interfaces ?
    1. Struct keyword
    2. Loop constructs
    3. Header files (.h files)
    4. Union keyword
  13. The observers are associated with ...
    1. MVC Architectural Style
    2. Pipe-and-Filter Architectural Style
    3. Broker Architectural Style
    4. Layered Architectural Style
  14. Writing an exception handling code in any GUI application is an example of
    1. Preventing Ripple effect
    2. Fault Recovery
    3. Fault Detection
    4. Fault Prevention
  15. Consider a database application where you don't want your application to have hard-coded names of the database columns. You also don't want the number of columns to be hard-coded in your application. If the structure of the table is changed, you want your application to adjust it at runtime. What is the architectural pattern you would consider here?
    1. pipe and filter
    2. layered pattern
    3. model view controller
    4. reflection
    5. Microkernel
  16. You need to test the response time of an online shopping system based on an assumption that the access to the system by one customer is independent of another. Furthermore, there is an expected number of access requests using which you need to simulate the access requests fpr testing. What kind of stimulus you should use
    1. periodic access requests
    2. sporadic access requests
    3. fixed number of access requests
    4. stochastic model of access requests
  17. Consider a space-rover system that receives various types of input signals like temperature and pressure of the environment, speed of descend at any given point in time, image of the surface, and wind speed and direction. These inputs are converted into a set of numeric data points for further processing. Based on the speed of descend, it may have to adjust and activate the upward thrust or a parachute. If there is an obstacle, it may have to change its direction so that after falling it does not damage the internal parts. These decisions are difficult to hard-code as a systematic workflow. What architectural pattern would be most appropriate here?
    1. model view controller
    2. pipe and filter
    3. Microkernel
    4. Reflection
    5. blackboard
  18. It is possible to define a concurrency view using the module decomposition. Therefore, concurrency view is not a absolute necessity.
    1. false
  19. A person needs to implement a web based scientific calculator. Here the user interface will display numeric keypad, and mathematical operation buttons like arithmetic (+,-,/,*), scientific and statistical functions. Based upon the operations system calculates the expression at the back-end and provide appropriate output, which kind of architecture pattern is best suitable for this kind of software.
    1. model-view-controller
    2. pipe and filter
    3. none of the above
  20. Which of the following view can be used to analyze the network traffic.?
    1. Concurrency View
    2. Class view
    3. Deployment view
    4. Use case View
  21. Which of the following structure does not describe the static property of a software architecture?
    1. Software deployment structure
    2. Software runtime structure
    3. software management structure
    4. Software code structure
  22. Suppose that you are building an web-based online shopping application. What is(are) the appropriate architectural patterns?
    1. model view controller
    2. pipe and filter
    3. Microkernel
    4. blackboard
    5. layered pattern
  23. Layered architecture style is best suited to develop the software applications which require
    1. the components to be easily replaceable
    2. information separating as a dominant factor
    3. the performance quality as a dominant factor
    4. the high security of its data contents
  24. Which of the following has maximum impact on the performance of the system.
    1. Support User Initiative
    2. Separate User Interface
    3. Support System Initiative
    4. Enhance Concurrency
  25. add
Design patterns 
.. to be added
General 
  1. what is serialize object?
  2. what is serialization and de-serialization ?
  1. Design tic tac toe game.

1 comment: