Professional Documents
Culture Documents
Quiz-1
Summer 2023
Department Faculty Total
Program Semester Course Title Instructor Issue Date Due Date Marks
/ Faculty Signature
BS
Summer Formal
Software Mr.: Syed
FCIT Semester Methods in 15/08/2023 22/08/202 5
Engineer Ali Shiraz
SE 3
i ng
Instructions
1. This paper contains 5 Questions. Attempt all questions.
2. This assignment should be completed within assigned time, after the due date, assignment will
not be accepted.
3. Students of particular course will download assignment and submit solution which will only be
accepted through CMS portal.
4. Please ensure that no part of your assignment should be copied from any other source without
acknowledgment of the source and proper referencing (IEEE).
5. Please note that copy-paste is a serious nature of academic dishonesty, it is called “Plagiarism”
and the penalties are attached to being found guilty of committing such offenses.
6. It is allowed using lecture notes, books, and other sources, however needing to refer/cite properly,
Reference list must be given at end of the assignment.
7. This assignment should be submitted in PDF file for this purpose first take image of all hand
written pages and then merge using Smartphone app (from PC/Laptop put all images in word file
and save as PDF) including assignment paper in the start of submission.
8. Assignment can be compressed or break in two parts if file size is larger than uploading limit.
9. The font size should be 12 in Times New Roman, Line Space 1.5, Main Heading font size
Bold 14, Subheading font size 12 Bold and text font size 12 should be used. All figures and
illustrations should be properly titled or numbered on the left side, below.
10. Also ensure that no part of your assignment has been written by any other person, except to the
extent of collaboration and /or group work.
11. In case of theory, the assignment should not exceed than 1000 words and not less than 600
words.
12. Expected outcome of this assignment follows CLO # 1 (C4, PLO-3) - Cognitive Domain:2
(Analyzing); PLO-2: Design/Development of Solutions
This table is for official use; do not write anything on it.
Maximum Score
5 5
Quiz # 1
SPRING 2023
(SES-221) Formal
Methods in SE
Expected Outcome:
CLO 1: Describe the costs and benefits of formal methods. (Cognitive Domain-2(Understand), PLO-1)
CLO 2: Construct formal models of sequential software systems. ((Cognitive Domain-2(Applying ), PLO-2)
Total (5 marks)
2. At which level of formal methods do we focus on translating high-level requirements into more detailed
specifications?
a. Specification.
b. Design
c. Implementation
d. Verification
3. What is a key advantage of using formal methods in software development?
a. Faster development process
b. Elimination of all defects
c. Improved communication with stakeholders.
d. Limited applicability to safety-critical systems
4. Formal methods help in early detection of defects by:
a. Automating the testing process
b. Enforcing rigid coding standards
c. Providing mathematical analysis of system properties.
d. Requiring extensive manual inspections
5. Formal specifications provide a precise and unambiguous description of:
a. Source code
b. User documentation
c. System requirements.
d. Project schedule
6. Which notation is commonly used for formal specification of software systems?
a. UML diagrams
b. Pseudocode
c. Natural language paragraphs
d. Z notation.
Faculty of Computing and Information Technology
(FCIT) Department of Computing Indus University,
Karachi
NAME OF STUDENT: ID No:
7. In the context of cost profiles of software, the majority of defects are introduced during which phase?
a. Requirements analysis
b. Design
c. Implementation.
d. Testing
14. At which level of formal methods would you expect to find techniques like refinement and stepwise
development?
a. Specification
Faculty of Computing and Information Technology
(FCIT) Department of Computing Indus University,
Karachi
NAME OF STUDENT: ID No:
b. Design.
c. Implementation
d. Verification
15. The three levels of formal methods follow a progression from abstract to concrete. Which level is associated with
mathematical proofs about system behavior?
a. Specification
b. Design
c. Implementation
d. Verification
16. One of the challenges in using formal methods is the "formalization gap." What does this term refer to?
a. The difference between formal methods and conventional testing
b. The discrepancy between mathematical models and real-world systems.
c. The gap in expertise between developers and formal analysts
d. The lack of tool support for formal methods
17. Which advantage of using formal methods helps in ensuring the consistency of requirements throughout the
development process?
a. Improved communication.
b. Automatic code generation
c. Rigorous defect detection
d. Enhanced maintainability
18. In the context of formal specifications, what is "refinement"?
a. A process of transforming abstract specifications into more detailed ones.
b. A mechanism to ensure code and specifications match exactly
c. A technique for converting natural language requirements into mathematical models
d. A validation process for verifying correctness of specifications
19. Describe the key advantages of employing formal methods in software development. Illustrate each advantage
with a real-world example, highlighting how formal methods address challenges that traditional methods might
not.
20. Elaborate on the significance of formal specification in software engineering.