Paper Tayyari

Midterm PreparationMidterm ki tayyari

Questions from past midterm papers.Pichhle midterm papers ke sawal.

72 MCQs · 33 short · 37 long questions · 72 MCQs from past papers72 MCQs · 33 short · 37 long sawal · 72 MCQs past papers se

Start mock testMock test shuru karein
DoneHal kiye 0/72
– correctsahi
1.
★ Midterm Spring 2010Lecture 8

The state transition diagram

  1. Adepicts relationships between data objects
  2. Bdepicts functions that transform the data flow
  3. Cindicates how data are transformed by the system
  4. Dindicates system reactions to external events

A state transition diagram shows the states of a system and how it reacts to events.

2.
★ Midterm Spring 2010Lecture 10

A poorly designed interface can cause a user to make catastrophic errors is one of the motivations for GUI.

  1. ATrue
  2. BFalse

The handout lists catastrophic user errors from poor interfaces as a motivation for good GUI design.

3.
★ Midterm 2006Lecture 10

The prototyping model of software development is

  1. AA reasonable approach when requirements are well defined.
  2. BA useful approach when a customer cannot define requirements clearly
  3. CThe best approach to use for projects with large development teams
  4. DA risky model that rarely produces a meaningful product

Prototyping helps when the customer cannot state requirements clearly.

4.
★ Midterm past paperLecture 10

A poorly designed interface can cause a user to make catastrophic errors is one of the motivations for GUI.

  1. ATrue
  2. BFalse
  3. CSometimes
  4. DNone of the above

Avoiding user errors caused by poor interfaces is a key reason for good GUI design.

5.
★ Midterm Spring 2010Lecture 20

Interaction Diagrams depict the ------------- Behavior of the system

  1. AStatic
  2. BDynamic
  3. CActive
  4. DNon of the above

Interaction diagrams show how objects interact over time, i.e. dynamic behaviour.

6.
★ Midterm Spring 2010Lecture 21

Asynchronous massages are denoted

  1. AHalf Arrow
  2. BSimple Line
  3. CFull Arrow
  4. DNon of above

Asynchronous messages (signals) are drawn with a half arrow.

7.
★ Midterm Spring 2010Lecture 21

which one is not the type of massage which sequence diagram depict

  1. ASynchronous
  2. Basynchronous
  3. CCreate
  4. DUpdate

Sequence diagrams show synchronous, asynchronous, create and destroy messages, not 'update'.

8.
★ Midterm 2011Lecture 24

What would be the most suitable architecture to develop a commercial web page to do business transactions over the internet ?

  1. AClient server model
  2. BIsland model
  3. CRAD model
  4. DRepository model

Web transactions follow the client-server model with browsers as clients and the web server as server.

9.
★ Midterm past paperLecture 24

Layered architecture consists of:

  1. AOne single layer
  2. BMultiple layers
  3. COnly hardware layer
  4. DOnly software layer

A layered architecture is organized as multiple layers.

10.
★ Midterm past paperLecture 24

In layered architecture, which layers are closer to machine hardware?

  1. AOuter layers
  2. BMiddle layers
  3. CInner layers
  4. DInterface layers

Inner layers are closest to the hardware.

11.
★ Midterm past paperLecture 24

In layered architecture, outer layers communicate with inner layers through:

  1. ADirect memory
  2. BInterfaces
  3. CHardware ports
  4. DDrivers

Each layer uses the services of the layer below through its interface.

12.
★ Midterm past paperLecture 38

Equivalence classes are used to:

  1. AIncrease memory
  2. BDivide problem domain into classes for testing
  3. CDelete bugs
  4. DWrite documentation

Equivalence partitioning divides the input domain into classes for testing.

13.
★ Midterm past paperLecture 39

What is an infeasible path in a program?

  1. AA path executed frequently
  2. BA path executed only once
  3. CA path never executed for any input data
  4. DA path executed during debugging

An infeasible path cannot be executed by any input.

14.
★ Midterm past paperLecture 39

Which testing technique includes coverage schemes?

  1. ABlack box testing
  2. BWhite box testing
  3. CIntegration testing
  4. DSystem testing

Statement, branch and path coverage are white box techniques.

15.
★ Midterm past paperLecture 42

Debugging is considered:

  1. AOnly an art
  2. BOnly a science
  3. CBoth art and science
  4. DNeither art nor science

Debugging needs both systematic method and intuition.

16.
★ Midterm past paperLecture 43

Which error occurs when a program repeatedly displays the same message or data?

  1. ALogical error
  2. BLoop error
  3. CSyntax error
  4. DPointer error

Repeated output of the same data is a symptom of a loop error.

17.
★ Midterm Spring 2010

By following modern system engineering practices simulation of reactive systems is no longer necessary

  1. ATrue
  2. BFalse

Simulation is still needed to check the behaviour of reactive systems before they are built.

18.
★ Midterm Spring 2010

Control flow diagrams are

  1. Aneeded to model event driven systems.
  2. Brequired for all systems
  3. Cused in place of data flow diagrams
  4. Duseful for modeling user interfaces

Control flow diagrams model the events and control that drive event-driven systems.

19.
★ Midterm Spring 2010

A change becomes ------------- because of close presence of data and functions

  1. ALocalized
  2. BPrivate
  3. CGlobal
  4. DAccessible

In OO design data and the functions using it sit together, so a change stays local.

20.
★ Midterm Spring 2010

A complex System evolves from a

  1. Asmaller system
  2. Bmedium sysetem
  3. Cbigger system
  4. Dnon of the given

A complex system that works has evolved from a simpler, smaller system that worked.

21.
★ Midterm Spring 2010

Coupling is a measure of ----------------of a module or component.

  1. AIndependent
  2. BDependent
  3. CCloseness
  4. DAll of the given

The handout defines coupling as a measure of the independence of a module or component.

22.
★ Midterm Spring 2010

Software Maintenance phase involves

  1. ADebugging
  2. BAdding new features
  3. Cmaking changes
  4. Dall of the given

Maintenance covers fixing bugs, adding features and making other changes.

23.
★ Midterm Spring 2010

The hardest single part of building a software system is deciding precisely ----------- to build.

  1. Awhat
  2. BHow
  3. CWhen
  4. DWhy

Deciding exactly what to build (the requirements) is the hardest part.

24.
★ Midterm Spring 2010

In Sequence Diagrams the time required by the receiver object to process the message is denoted by an---------------

  1. AActivation Box
  2. BSimple Box
  3. CArrow
  4. DNon of the above

The activation box on a lifeline shows the time the receiver spends processing a message.

25.
★ Midterm Spring 2010

Identifying System Features include ------

  1. Alog important information
  2. Bconduct business
  3. Canalyze business results
  4. Dall of the above

System features cover logging information, conducting business, analysing results and interacting with other systems.

26.
★ Midterm Spring 2010

Which of the following is a fact finding method?

  1. ASite visits
  2. BPrototyping
  3. CStudy of similar systems
  4. DAll of given

Site visits, prototyping and studying similar systems are all fact-finding methods.

27.
★ Midterm Spring 2010

Windows mobile is a popular mobile operating system which seen commonly on PDAs. Which of the following category pair(s) best describe(s) it?

  1. Aapplication software, embedded software
  2. Bsystem software, web-based software
  3. Capplication software, scientific software
  4. Dsystem software, embedded software

An operating system is system software, and on PDAs it runs embedded in the device.

28.
★ Midterm Spring 2010

The Object Oriented approach

  1. Aimproves the reusability of codes.
  2. Bmakes objects less independent.
  3. Cincreases testing time.
  4. Dcomplicates mapping of a system model to an implementation model.

Encapsulated classes can be reused, so OO improves code reusability.

29.
★ Midterm 2011

Cohesion is about making sure each component does _____ thing and does it well .

  1. Athree
  2. Btwo
  3. Cinfinite
  4. Done

A cohesive component does one thing and does it well.

30.
★ Midterm 2011

Collaboration diagrams have basically two types of components: objects and ----------.

  1. Amessages
  2. Bmethods
  3. Cclasses
  4. Dnon of the above

A collaboration diagram consists of objects and the messages they exchange.

31.
★ Midterm 2011

Flow charts represent.

  1. ASequence.
  2. BRandom
  3. CParallel
  4. DNon of above

Flowcharts show a sequential flow of steps.

32.
★ Midterm 2011

what is the most important software quality of a web based transaction .

  1. Aefficiency
  2. BModularity
  3. Cusability
  4. DSecurity

Web-based transactions involve money and personal data, so security matters most.

33.
★ Midterm Spring 2010

The Data dictionary contain description of each software

  1. AConfiguration item.
  2. BData object
  3. CDiagram
  4. DNotation

A data dictionary describes each data object used in the analysis model.

34.
★ Midterm Spring 2010

a cohesion class is one which emphasize ------ unit of ------.

  1. ASingle and multiple.
  2. BMultiple and functionality
  3. CFunctional and single
  4. DSingle and functional

A cohesive class focuses on a single unit of functionality.

35.
★ Midterm Spring 2010

In sequence Diagram events are organized in a ------ time line

  1. Avertical
  2. Bhorizontal
  3. CVertical and Horizontal
  4. DNon of above

In a sequence diagram time runs down the page along vertical lifelines.

36.
★ Midterm Spring 2010

Software crisis came in 1960 what is the main reason to for the crisis

  1. ASoftware development technique
  2. BHardware
  3. CSoftware
  4. DNon of above

The crisis came from the lack of proper techniques for developing large software.

37.
★ Midterm Spring 2010

central role of the software requirement Document in entire development process is related to

  1. AProject planning
  2. BProject tracing
  3. CChange control
  4. DAll of above

The SRS is the basis for planning, tracking and controlling changes in a project.

38.
★ Midterm Spring 2010

The scope description establishes the ---------- between the system we are developing and everything else in the universe.

  1. ABoundary
  2. BSystem
  3. Climitation
  4. DNone of above

A scope description sets the boundary between the system and its environment.

39.
★ Midterm Fall 2006

Both the software engineer and customer take an active role in software requirements engineering-a set of activities that is often referred to as Requirement_______________

  1. AManaging
  2. BRecognition
  3. CAnalysis
  4. DModeling

Pressman calls these joint requirements engineering activities analysis.

40.
★ Midterm Fall 2006

_________ is a measure of independence of a module or component.

  1. ACohesion
  2. BCoupling
  3. CLoop coupling
  4. DLoop cohesion

The handout defines coupling as a measure of the independence of a module or component.

41.
★ Midterm Fall 2006

In the Functional design, the structure of the system revolves around __________

  1. AFunctions
  2. BSequences
  3. CModels
  4. DFlows

Functional (action-oriented) design decomposes the system around functions.

42.
★ Midterm Fall 2006

Use case is the part of designing phase of software engineering

  1. ATrue
  2. BFalse

Use cases capture requirements in the definition (analysis) phase, not design.

43.
★ Midterm Fall 2006

Three categories of risks are

  1. Abusiness risks, personnel risks, budget risks
  2. Bproject risks, technical risks, business risks
  3. Cplanning risks, technical risks, personnel risks
  4. Dmanagement risks, technical risks, design risks

Risks are grouped as project, technical and business risks.

44.
★ Midterm Fall 2007

Business model is the part of designing phase of software engineering development life cycle

  1. ATrue
  2. BFalse

The business (domain) model is built during analysis/definition, not design.

45.
★ Midterm Fall 2007

The best way to conduct a requirements validation review is to

  1. AExamine the system
  2. BHave the customer look over the requirements
  3. CSend them to the design team
  4. DUse checklist to examine the questions

A checklist of questions applied to each requirement gives a systematic validation review.

46.
★ Midterm Fall 2007

The system specification describes the

  1. AFunction, performance and constraints of a computer-based system
  2. Bimplementation of each allocated system
  3. Ctime required for simulation
  4. Delement software architecture

A system specification states the function, performance and constraints of a computer-based system.

47.
★ Midterm 2006

What makes requirements elicitation difficult?

  1. Abounding scope
  2. Bunderstanding user needs
  3. Crequirements volatility
  4. Dall of the above

Problems of scope, understanding and volatility all make elicitation difficult.

48.
★ Midterm 2006

Which of the items listed below is not one of the software engineering layers?

  1. AProcess
  2. BManufacturing
  3. CMethods
  4. DTools

The layers are quality focus, process, methods and tools; manufacturing is not one.

49.
★ Midterm 2006

What are the three generic phases of software engineering?

  1. Adefinition, development, support
  2. Bwhat, how, where
  3. Cprogramming, debugging, maintenance
  4. Danalysis, design, testing

The generic phases are definition (what), development (how) and support (change).

50.
★ Midterm 2006

Which of these items should be used to select a software process framework?

  1. APeople
  2. BProduct
  3. CProject
  4. DAll of the above

The choice of process depends on the people, the product and the project together.

51.
★ Midterm Spring 2006

In DFD we show the flow of data in a system.

  1. ATrue
  2. BFalse

A data flow diagram shows how data flows through a system.

52.
★ Midterm Spring 2006

Which of the followings is not part of software Engineering phases?

  1. AVision
  2. BDefinition
  3. CDevelopment
  4. DProcess

The phases are vision, definition, development and maintenance; process is not a phase.

53.
★ Midterm Spring 2006

Activity Diagram give a pictorial description of

  1. AUse case
  2. BObjects
  3. CState of system
  4. DAll of these.

Activity diagrams give a pictorial description of the flow of a use case.

54.
★ Midterm Spring 2006

Use Cases are the part of designing phase of software engineering

  1. ATrue
  2. BFalse

Use cases capture requirements in the definition (analysis) phase, not design.

55.
★ Midterm Spring 2006

In data flow diagram an external entity can store/update data in data store directly

  1. ATrue
  2. BFalse

In a DFD data can reach a data store only through a process, never directly from an external entity.

56.
★ Midterm Spring 2007

Software is a product and can be manufactured using the same technologies used for other engineering artifacts.

  1. ATrue
  2. BFalse

Software is developed or engineered, not manufactured like physical artifacts.

57.
★ Midterm Spring 2007

Ambiguity means _____________.

  1. Aambiguity means that two different readers of the same document interpret the requirement differently
  2. Bambiguity means that two different writers of the same document interpret the requirement differently
  3. Cambiguity means that different readers of the different documents interpret the requirement differently
  4. Dboth "b" and "c"

A requirement is ambiguous when different readers of the same document interpret it differently.

58.
★ Midterm Spring 2007

The current software crisis was caused by the Y2K problem whose seeds were first sown by careless programmers in the early 1970's.

  1. ATrue
  2. BFalse

The software crisis was recognised in the 1960s, long before Y2K, and has broader causes.

59.
★ Midterm past paper

By following modern system engineering practices simulation of reactive systems is no longer necessary.

  1. ATrue
  2. BFalse
  3. CSometimes true
  4. DNone of the above

Reactive systems still need simulation to check their behaviour.

60.
★ Midterm past paper

Windows Mobile is a popular mobile operating system commonly used on PDAs. Which category pair best describes it?

  1. AApplication software, embedded software
  2. BSystem software, web-based software
  3. CApplication software, scientific software
  4. DSystem software, embedded software

An operating system is system software, and on PDAs it is embedded.

61.
★ Midterm past paper

According to coding style guide, how should abbreviations and acronyms be written when used as names?

  1. AAlways in uppercase
  2. BAlways in lowercase
  3. CShould not be uppercase
  4. DWritten with numbers

Abbreviations in names should not be all uppercase, e.g. exportHtmlSource.

62.
★ Midterm past paper

Which of the following is the correct example of abbreviation usage in coding style?

  1. AexportHTMLSource()
  2. BxportHTMLSource()
  3. CexportHtmlSource()
  4. DEXPORTHTMLSOURCE()

Acronyms are written in mixed case, as in exportHtmlSource().

63.
★ Midterm past paper

What is system downtime?

  1. ATime when system runs faster
  2. BPeriod when system works normally
  3. CPeriod when developers fix the system to make it running again
  4. DTime when system is upgraded

Downtime is the period the system is out of service while being fixed.

64.
★ Midterm past paper

In object oriented naming conventions, names representing types should be:

  1. AVerbs
  2. BAdjectives
  3. CNouns written in mixed case starting with uppercase
  4. DNumbers

Type names are nouns in mixed case starting with uppercase, e.g. Account.

65.
★ Midterm past paper

Variable names should start with:

  1. AUppercase letter
  2. BLowercase letter
  3. CNumber
  4. DSymbol

Variable names are mixed case starting lowercase.

66.
★ Midterm past paper

How should constants be written according to naming conventions?

  1. ALowercase letters
  2. BMixed case
  3. CUppercase with underscore
  4. DNumbers only

Constants are all uppercase with underscores, e.g. MAX_SIZE.

67.
★ Midterm past paper

Method and function names should generally be:

  1. ANouns
  2. BVerbs
  3. CAdjectives
  4. DSymbols

Methods do something, so their names are verbs.

68.
★ Midterm past paper

Template types in C++ should be represented by:

  1. ALowercase letters
  2. BSingle uppercase letter
  3. CNumbers
  4. DMixed symbols

C++ template type names use a single uppercase letter, e.g. T.

69.
★ Midterm past paper

Private class variables should have which suffix?

  1. A#
  2. B@
  3. C_
  4. D$

Private class variables get an underscore suffix.

70.
★ Midterm past paper

According to naming conventions, all names in code should be written in:

  1. AUrdu
  2. BEnglish
  3. CFrench
  4. DAny language

All names should be in English.

71.
★ Midterm past paper

What is the main objective of software testing?

  1. ATo prove software has no errors
  2. BTo expose defects in software
  3. CTo increase program size
  4. DTo remove documentation

Testing aims to find defects, not prove their absence.

72.
★ Midterm past paper

A test is considered successful when:

  1. AIt runs without errors
  2. BIt discovers an error
  3. CIt compiles successfully
  4. DIt increases speed

A successful test is one that uncovers an error.