CS6004ES - MS - Exam - Answer Script
CS6004ES - MS - Exam - Answer Script
Duration: 2 hours
Exam type:
Unseen
Materials supplied: None
Instructions to This exam is worth 40% of the assessment for the module.
candidates: Candidates MUST answer the SECTION A with 30 MCQ
questions (compulsory)
Each question carries 2 marks.
Answer Question One and any other from question Two and
Three from Section B. Each question carries 20 marks
No credit will be given for attempting further questions.
Section B
Q-1
1. Encapsulation.
Encapsulation is a way to restrict the direct access to some components of an object,
so users cannot access state values for all of the variables of a particular object.
Encapsulation can be used to hide both data members and data functions, or methods
associated with an instantiated class or object.
2. Advantages
Hiding data: Users will have no idea how classes are being implemented or stored.
All that users will know is that values are being passed and initialized.
More flexibility: Enables you to set variables as red or write-only. Examples include:
setName(), setAge() or to set variables as write-only then you only need to omit the
get methods like getName(), getAge() etc.
Easy to reuse: With encapsulation, it's easy to change and adapt to new requirements
3.
Single Level Inheritance. In Single inheritance, there is only one base class and one
derived class. ...
Multilevel Inheritance. In this type of inheritance, there is only one base class, and
multiple derived class are available. ...
Multiple Inheritance. ...
Hierarchical Inheritance.
4.
The main difference between abstraction and inheritance is that abstraction allows
hiding the internal details and displaying only the functionality to the users,
while inheritance allows using properties and methods of an already existing
class.
Q-2
1. Based on the explanation provide marks
Q-3
1. Integration testing (sometimes called integration and testing, abbreviated I&T) is the
phase in software testing in which individual software modules are combined
and tested as a group. Integration testing is conducted to evaluate the compliance of
a system or component with specified functional requirements
Smoke Testing is a software testing process that determines whether the deployed
software build is stable or not. Smoke testing is a confirmation for QA team to
proceed with further software testing. It consists of a minimal set of tests run on each
build to test software functionalities. Smoke testing is also known as “Build
Verification Testing” or “Confidence Testin
2. The new seven phases of SDLC include planning, analysis, design, development,
testing, implementation, and maintenance.
3. Based on the answer provide marks.