CS504 Software Engineering Part 1 Quiz Solved - VU Answer

Provide Software Engineering 1 Quiz Solved. Recent CS504 Quiz 1 Solution for Help in Studies or Exams and Improve Knowledge or Learning Skills. Also, Get PDF Solution File Given Below.


CS504 Software Engineering Part 1 Solved Answer

CS504 QUIZ 1 SOLVED


1. Thin Client Model is one of the configurations of Model.

a) Data-centered

b) client server

c) Layered

d) Reference


2. STL Stands for_ _

a) standard template library

b) Standard Type Link

c) Standard Tempo Line

d) Standard Type Link


3. The three basic principles that guide maintainability are:

Clarity

Enhancement

Flexibility

Simplicity

a) (a), (b) and (c)

b) (a), (c) and (d) 

c) (b), (c) and (d)

d) All of above


4. Goto statements violate the idea of

a) object-oriented code

b) structured code

c) control structure

d) repetition structure


5. A function should not be larger in any case and should not exceed in length

a) Half page

b) One page

c) Two pages

d) Three Pages

6. Data Centered Architectural Style is also called

a) Repository model

b) Client Server model

c) Sub System model

d) Reference model


7. Global variables in C++ should always be referred to by using the

a) ::operator

b) :operator

c) Without an operator

d) None of the given


8. There are layers in OSI reference model.

a) 5

b) 6

c) 7

d) 8


Check Also CS504 Materials


CS504 Midterm Past Papers


CS504 Solved Midterm Papers by Moaaz


CS506 Solved Midterm Past Papers by Waqar


9. Fat Client Model is one of the configurations of Model.

a) Data-centered

b) Layered

c) Reference

d) Client Server


10. Dynamic process model shows the process _ of the System.

a) Components

b) Objects

c) Structure

d) Linkage


11. Which of the following shows a commented statement in C++

a) # Ans = first + second

b) // Ans = first + second

c) \\ Ans = first + second

d) /# Ans = first + second


12. architectural model is widely used in Mainframe application.

a) Client-Server Model

b) Repository Model

c) Filter Model

d) Layered Model


13. Variables should be initialized where they are and they should be declared in the scope possible.

a) defined and smallest

b) declared and medium

c) defined and medium

d) declared and smallest


14. Identifier names also play a significant role in enhancing the _ of a program,

a) Writ ability

b) Readability

c) Reliability

d) All of the given choices 


15.MVC stands for

a) Model View Controller

b) Modern View Center

c) Model View Center

d) Modern View Controller


16. Which of the following is not a possible server in client server environment?

a) Database Server

b) Transaction Server

c) File Server

d) Time Server


17. In case of using unrelated operators in a single expression, would be the best choice to prevent the logical errors.

a) Comments

b) Indents

c) parenthesis

d) Short Cuts

18. In case of header files, construction is to avoid _ errors, the construction should appear in the top of the file (before the file header).

a) Compilation

b) run time

c) logical

d) All of the given


19. A self-documenting code is a code that explains itself without the need of comments and extraneous documentation, like_

a) Flowcharts

b) UML diagrams

c) Process-flow state diagrams

d) All of the given choices


20. Which one of these represents the Krutchen's 4+1 architectural view model

a) Logical view, Process view. Physical view. Development view. Use case view

b) Logical view. Dynamic view. Physical view. Development view. Use case view

c) Logical view. Process view, Physical view. Development view. Sequence view

d) Dynamic view, Process view. Physical view, Development view. Use case view


21. Client server is a system model.

a) Integrated

b) Distributed

c) Heterogeneous

d) Homogeneous


22. Vertical partitioning is also known as

a) Balancing

b) Mutating

c) Parallelizing

d) Factoring


23. "is" prefix should be used for variables and methods.

a) General

b) Boolean

c) Constant

d) None of the given


24. Thin client model places a heavy processing load on _

a) Only server

b) Only network

c) Both server and network

d) Neither server not network


25. C++ header files should have the extension . Source files can have the extension

a) .c and .h

b) .cc and .h

c) .h and .cpp

d) All of the given


26. Which of following is among ten things, which the basic template of GOF design pattern includes.

a) IQ

b) context

c) Performance

d) Requirements


27. Vertical partitioning divides the architecture application from a making perspective.

a) decision

b) Design

c) Conclusion

d) Move


28. Issues like system performance, availability, scalability, and security are analyzed in

a) Logical View

b) physical view

c) Code View

d) Concurrency View


29. Class variables should never be declared public. Public variables violate which of the following:

a) Information hiding

b) Encapsulation

c) Information hiding and Encapsulation

d) None of the give


30. Charles Simonyi first discussed Hungarian Notation, He was of

a) Microsoft

b) IBM

c) Dell

d) Cisco


31. Patterns are devices that allow programs to share knowledge about   their  

a) Code

b) design

c) Analysis

d) Implementation


32. Process view in Krutchen's 4+1 architectural view model captures

a) Object model of the design

b) Concurrency and synchronization aspects of the design

c) Mapping(s) of the software onto the hardware and reflects its distributed aspect

d) Static organization of the software in its development environment 


33. In the N-Tire architecture, the idea is to enhance scalability and _ by

disturbing both the date and the application using multiple server machines

a) Usability

b) performance

c) Interoperability

d) Integrity


34. Names representing methods and functions should be and written in mixed case starting with case

a) Noun lower

b) Verb lower page

c) Noun upper

d) Verb upper


35. Floating point constant should always be written with decimal point and at 

a) one decimal 

b) Two decimals

c) Three decimals

d) none of the given


36. Static structural model shows the major system  

a) Leaks

b) Components

c) Activates

d) Objectives


37. Distributing the responsibilities to different subsystems so that we get a software system which is easy to maintain, is called _ the architecture

a) Subtracting

b) partitioning

c) Cloning

d) Balancing


38. It ensures that a class only has one instance and provides a global point of access to it

a) singleton pattern

b) Observer pattern

c) Real pattern

d) None of the given


39. N-tier architecture stems from the struggle to find a between the fat-client architecture and the thin client architecture

a) Concurrency

b) Distribution point

c) middle ground

d) Similarity


40. In client server model, the application is modeled as a set of that are provided by servers.

a) Request

b) Protocols

c) service

d) Requirements


41. Maintainability and portability issues are discussed in  

a) Functional view

b) Physical view

c) code view

d) Logical view


42. In case of a file server, client request selected records from a and the server transmits recorded to client over the network

a) Local memory

b) Network

c) Database

d) file


43. Physical view in Krutchen's 4+1 architectural view modelcaptures .

a) Object model of the design

b) Concurrency and synchronization aspects of the design

c) Mapping(s) of the software onto the hardware and reflectsits distributed aspect

d) Static organization of the software in its development environment 


44.Logical view in Krutchen's 4+1 architectural view model captures .

a) Concurrency and synchronization aspects of the design

b) Mapping(s)of the software onto the hardware and reflects its distributed aspect

c) Object model of the design

d) Static organization of the software in its development environment 


45. When programmers use shortcuts and cryptic codes in their program,  

becomes a major problem.

a) Maintenance

b) Reusability

c) Availability

d) Readability 


46.Which one is correct?

a) double total = 0.5;

b) double total = .5;

c) double total = .50;

d) all of the given


47. “Description of communicating objects and classes that are customized to solve a general design problem in a particular context” is called _ .

a) Design Pattern

b) System Pattern

c) System Design

d) Design Method


48. Development view in Krutchen's 4+1 architectural view model captures

a) Object model of the design

b) Concurrency and synchronization aspects of the design

c) Mapping(s) of the software onto the hardware and reflects its distributed aspect

d) Static organization of the software in its development environment


49. Client-server model tries to _ data and processing.

a) Distribute

b) Merge

c) Clone

d) Proceed

50. Which indent size eliminates the chance of code lines splitting?

a) 2

b) 4

c) 3

d) 6


51. Which one of these is a correct short cut used by the programmer?

a) x*=a

b) x=*a

c) x*a=

d) =a*x


52. was the first pure Object-Oriented language in which observer pattern was used in implementing its Model View Controller pattern

a) Smalltalk

b) PASCAL

c) JAVA

d) C++


53. Identify the TRUE statement

a) Portability effects Security

b) Size of data types vary from one machine to other

c) Size of control structures vary from one machine to other

d) None of the given options 


54. which of the following statements are same in output 1) a = a >> 2

2) a = a/4

3) a = a * 2

a) (1) and (3) only

b) (2) and (3) only

c) (1) and (2) only

d) All produce the same result 

 

56. Code should not be:

a) Commented

b) indented

c) cryptic

d) aligned


57. If (!(block < activeBlock)) is equvivalent to:

a) if (block < activeBlock))

b) if ((block == activeBlock))

c) if ((block >= activeBlock))

d) None of the given


58. The form for (; ;) should be used for

a) Nested loop

b) Empty loop

c) More than 1000 iteration

d) Less than 1000 iterations


59. The clients and servers, in a client server environment, are connected through ____.

a) Framework

b) Interface

c) Middleware

d) Groupware


60. provides a unified interface to a set of intelligence in a sub-system

a) Observer pattern

b) Singleton pattern

c) Façade pattern

d) All of the above 


61. Complex expressions:

a) Make the code easy to modify

b) Make the code difficult to modify

c) Make the code easy to understand

d) Does not affect the understandability


62. Which of the following is used for multi-level commenting?

a) // Comment 

b) /*Comment*/

c) (Comment)

d) */Comment/*



Download CS504 Quiz 1 Solution PDF File



See Also Important Materials


All VU Midterm Past Papers Solved by Waqar


VU All Short Notes


Latest VU Midterm MCQs 2020 Solved


Share with fellows to get easily help in studies


Post a Comment

0 Comments