Ch 09: Testing Basics and Techniques

106 Questions106 MCQs0 Short Questions0 Long Questions
๐ŸŽฏ Exam Practice Papers
SEMESTER PASS

CS611 - Software Quality Engineering Examination Practice

Timed practice exam simulation for CS611 - Software Quality Engineering.

๐Ÿ“˜ VU MID TERM EXAMLectures 1 to 22
โฑ๏ธ 60 Mins

Mid Term Examination

Covers syllabus of Lectures 1 to 22 with 30 high-yield MCQs in a timed exam environment.

๐Ÿ“30 MCQs
โฑ๏ธ60 Minutes
๐Ÿ“— VU FINAL TERM EXAMLectures 23 to 45
โฑ๏ธ 90 Mins

Final Term Examination

Comprehensive semester exam preparation with 45 MCQs covering Lectures 23 to 45 with complete course coverage.

๐Ÿ“45 MCQs
โฑ๏ธ90 Minutes
Showing 71 โ€“ 80 of 106 Questions
Page 8 of 11
Q71
๐Ÿง  Long Problem๐Ÿ“˜ CS611๐Ÿ“‘ Lec 9๐Ÿท๏ธ 09.9. Example-II: Black Box TestingHard๐Ÿ”โญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Analyze the black-box testing methodology for a date-handling class as described in Module 09 of the course handouts. Specifically, explain how you would design test cases for a DaysInMonth(month, Year) method. Explain the rationale for testing leap years (every 4th year), century boundaries (even 100s, such as 1900 vs 2000), standard months, February, and invalid values. Finally, write a Python class 'DateTestingSandbox' that implements the DaysInMonth logic with robust exception handling and executes a checklist of test cases that checks century exceptions, leap years, standard months, and invalid inputs, logging failures and outputs.
Q72
๐Ÿง  Long Problem๐Ÿ“˜ CS611๐Ÿ“‘ Lec 9๐Ÿท๏ธ 09.16. Example of InspectionsHard๐Ÿ”โญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Rigorously analyze the role of Code Inspections and Test Checklists as described in Sections 09.16 and 09.17 of the course handouts. Explain the checklist questions asked during code inspections concerning redundancy, external libraries, execution time, code style, and symbolic constants. Differentiate these inspection items from a 'Test Checklist'. Finally, write a Python class 'CodeInspectionAutomator' that takes a source code string and programmatically checks for hardcoded magic numbers, uncalled procedures, and inconsistent formatting/style, generating a detailed SQA compliance report.
Q73
๐Ÿง  Long Problem๐Ÿ“˜ CS611๐Ÿ“‘ Lec 9๐Ÿท๏ธ 09.15. InspectionsHard๐Ÿ”โญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Discuss the process of 'Inspection' as a formal static testing methodology based on Module 09 of the course handouts. Detail the role of the trained facilitator, the objective of evaluating compliance with standards, and the importance of documenting findings. Finally, write a Python class 'SQAFormalInspectionEngine' that models this formal static testing. The class should allow setting up rules (checklists), registering a code file, assigning a non-author moderator, executing an inspection walkthrough that matches the code against the checklists, generating well-documented compliance report data, and logging all violations in a structured defect sheet.
Q74
๐Ÿง  Long Problem๐Ÿ“˜ CS611๐Ÿ“‘ Lec 9๐Ÿท๏ธ 09.11. Example-I: White Box TestingHard๐Ÿ”โญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Rigorously analyze Example 1 and Example 2 of White Box Testing as described in Module 09 of the course handouts. Discuss how Statement Coverage, Branch Coverage, and Path Coverage differ in their ability to detect subtle logic errors (such as the division-by-zero bug shown in calculate()). Then, write a Python class 'WhiteBoxCalculatorAnalyzer' that simulates the calculate(a, b, c) function. The simulator must trace the executed statements, track variable state modifications, calculate statement and branch coverage percentages, programmatically detect when a division-by-zero risk occurs, log a defect, and output a complete testing report.
Q75
โ“ MCQ๐Ÿ“˜ CS611๐Ÿ“‘ Lec 9๐Ÿท๏ธ 09.1. What is Software TestingEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is the primary objective of software testing as defined in Software Quality Engineering?
  1. A.To completely eliminate all possible errors and guarantee zero defects.
  2. B.To execute the software product with the intention of ensuring it gives the desired outcomes and satisfies all requirements and business needs.
  3. C.To automatically generate source code and user documentation from functional models.
  4. D.To manage and track individual project schedules, milestones, and budget variances.
Q76
โ“ MCQ๐Ÿ“˜ CS611๐Ÿ“‘ Lec 9๐Ÿท๏ธ 09.15. InspectionsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which QA activity is classified as the most formal type of static testing (review), typically led by a trained facilitator or moderator, with the primary purpose of evaluating compliance and directly identifying injected defects?
  1. A.Ad-hoc Black Box Testing
  2. B.Software Inspection
  3. C.Regression Testing
  4. D.Sanity Integration Testing
Q77
โ“ MCQ๐Ÿ“˜ CS611๐Ÿ“‘ Lec 9๐Ÿท๏ธ 09.3. Artifact Level TestingEasyโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
At the artifact level, what is considered the primary software artifact that must be tested during SQA activities?
  1. A.The marketing requirements documentation and sales brochures
  2. B.The software program or code written in different programming languages
  3. C.The physical network router configurations and hardware server racks
  4. D.The client's internal corporate payroll directory
Q78
๐Ÿง  Long Problem๐Ÿ“˜ CS611๐Ÿ“‘ Lec 9๐Ÿท๏ธ 09.2. Rationale for TestingHardโญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Discuss the rationale for software testing in Software Quality Assurance. Detail why testing is considered a critical activity, what objective outcomes it provides to stakeholders, and explain how test cases are typically derived and verified at the artifact level.
Q79
โ“ MCQ๐Ÿ“˜ CS611๐Ÿ“‘ Lec 9๐Ÿท๏ธ 09.3. Artifact Level TestingEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
At the artifact level, why is the software program or source code considered the primary target for software testing activities, as outlined in the course handouts?
  1. A.Because source code is where functional requirements are translated into executable logic, and software can only function correctly if its underlying code is correct.
  2. B.Because testing code allows the Quality Assurance team to bypass use cases and skip writing test cases.
  3. C.Because code is naturally immune to human syntax errors and semantic mistakes, making it easy to verify.
  4. D.Because developers write code in different languages solely to satisfy compilers rather than client requirements.
Q80
โ“ MCQ๐Ÿ“˜ CS611๐Ÿ“‘ Lec 9๐Ÿท๏ธ 09.1. What is Software TestingEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is the primary definition of software testing in Software Quality Engineering, representing the core mechanism of product verification?
  1. A.Calculating the financial return on investment (ROI) of SQA processes
  2. B.Comparing the actual behavior of a product with its expected or desired behavior
  3. C.Translating pseudocode specifications into compiles of different programming languages
  4. D.Bypassing the SQA phase entirely to compile hot-fixes directly in production