Docsity

PSEM Exam Questions and Answers: Software Engineering Principles, Exams of Technology

Toggle sidebar
bg1
Professional Software Engineering Master Certification
(PSEM) Exam
Question 1. Which SDLC model is most suitable for projects with well-defined requirements and
minimal changes expected during development?
A) Agile
B) Spiral
C) Waterfall
D) Kanban
Answer: C
Explanation: The Waterfall model is best for projects with stable, clear requirements as it follows a
linear, sequential approach.
Question 2. What is the primary advantage of using Agile methodologies over traditional Waterfall?
A) Lower documentation requirements
B) Improved flexibility and adaptability to change
C) Reduced need for stakeholder involvement
D) Strict phase completion before next phase
Answer: B
Explanation: Agile emphasizes adaptability, enabling teams to incorporate changes and feedback
throughout development.
Question 3. In Scrum, who is responsible for maximizing the value of the product resulting from the
work of the Development Team?
A) Scrum Master
B) Product Owner
C) Stakeholder
D) Developer
Answer: B
Explanation: The Product Owner manages the product backlog and ensures the team delivers value.
Question 4. Which of the following is not a ceremony in Scrum?
A) Sprint Planning
B) Daily Stand-up
C) Backlog Grooming
D) Code Review
Answer: D
Explanation: Code Review is not a Scrum ceremony; it’s a development practice.
Question 5. What artifact in Scrum tracks the remaining work in a sprint?
A) Product Backlog
B) Burn-down Chart
C) Increment
D) Retrospective
Answer: B
Explanation: The Burn-down Chart visually represents work left to complete in the sprint.
Question 6. Which SDLC model incorporates risk analysis at every iteration?
A) Spiral
B) Waterfall
C) V-Model
D) Lean
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29

Partial preview of the text

Download PSEM Exam Questions and Answers: Software Engineering Principles and more Exams Technology in PDF only on Docsity!

(PSEM) Exam

Question 1. Which SDLC model is most suitable for projects with well-defined requirements and minimal changes expected during development? A) Agile B) Spiral C) Waterfall D) Kanban Answer: C Explanation: The Waterfall model is best for projects with stable, clear requirements as it follows a linear, sequential approach. Question 2. What is the primary advantage of using Agile methodologies over traditional Waterfall? A) Lower documentation requirements B) Improved flexibility and adaptability to change C) Reduced need for stakeholder involvement D) Strict phase completion before next phase Answer: B Explanation: Agile emphasizes adaptability, enabling teams to incorporate changes and feedback throughout development. Question 3. In Scrum, who is responsible for maximizing the value of the product resulting from the work of the Development Team? A) Scrum Master B) Product Owner C) Stakeholder D) Developer Answer: B Explanation: The Product Owner manages the product backlog and ensures the team delivers value. Question 4. Which of the following is not a ceremony in Scrum? A) Sprint Planning B) Daily Stand-up C) Backlog Grooming D) Code Review Answer: D Explanation: Code Review is not a Scrum ceremony; it’s a development practice. Question 5. What artifact in Scrum tracks the remaining work in a sprint? A) Product Backlog B) Burn-down Chart C) Increment D) Retrospective Answer: B Explanation: The Burn-down Chart visually represents work left to complete in the sprint. Question 6. Which SDLC model incorporates risk analysis at every iteration? A) Spiral B) Waterfall C) V-Model D) Lean

(PSEM) Exam

Answer: A Explanation: The Spiral model emphasizes risk assessment in each cycle. Question 7. Which Agile framework uses Kanban boards to visualize workflow and limit work in progress? A) Scrum B) Extreme Programming (XP) C) Kanban D) Lean Answer: C Explanation: Kanban uses boards to manage workflow and WIP limits. Question 8. What is the primary focus of Lean software development? A) Maximizing documentation B) Eliminating waste C) Adding complexity D) Extensive planning Answer: B Explanation: Lean aims to deliver value by removing unnecessary processes and waste. Question 9. Which of the following is a key principle of the Agile Manifesto? A) Processes over people B) Following a plan over responding to change C) Customer collaboration over contract negotiation D) Comprehensive documentation Answer: C Explanation: Agile values customer collaboration highly. Question 10. What does the “INVEST” acronym stand for in the context of user stories? A) Independent, Negotiable, Valuable, Estimable, Small, Testable B) Integrated, Necessary, Valuable, Efficient, Simple, Testable C) Independent, Necessary, Verifiable, Estimable, Small, Timely D) Individual, Negotiable, Valuable, Estimable, Secure, Testable Answer: A Explanation: INVEST ensures user stories are well-formed and actionable. Question 11. Which requirements elicitation technique involves users building mockups to clarify needs? A) Interview B) Workshop C) Prototyping D) Brainstorming Answer: C Explanation: Prototyping helps clarify requirements by visualizing the product. Question 12. What is the main purpose of a use case diagram? A) To design databases B) To capture functional requirements C) To manage risks D) To plan sprints

(PSEM) Exam

C) Monolithic D) SOA Answer: B Explanation: Event-Driven architecture handles asynchronous and real-time event processing. Question 19. In Domain-Driven Design (DDD), what is a "bounded context"? A) A database boundary B) A deployment zone C) A logical boundary within which a model is defined and applicable D) A security layer Answer: C Explanation: Bounded context separates models and definitions to prevent ambiguity. Question 20. Which SOLID principle emphasizes one responsibility per class? A) Open/Closed Principle B) Liskov Substitution Principle C) Single Responsibility Principle D) Dependency Inversion Principle Answer: C Explanation: The Single Responsibility Principle dictates each class should have one reason to change. Question 21. Which design pattern ensures a class has only one instance and provides a global access point to it? A) Factory B) Adapter C) Singleton D) Observer Answer: C Explanation: Singleton restricts instantiation to a single object. Question 22. What is the primary goal of the DRY principle? A) Duplicate code for safety B) Avoid code duplication C) Write long functions D) Use complex logic Answer: B Explanation: DRY (Don't Repeat Yourself) minimizes redundancy for maintainability. Question 23. Which design pattern allows adding responsibilities to objects dynamically? A) Decorator B) Factory C) Facade D) Strategy Answer: A Explanation: The Decorator pattern attaches new behaviors to objects at runtime. Question 24. Which principle is violated if a subclass alters the expected behavior of its superclass? A) Dependency Inversion B) Liskov Substitution

(PSEM) Exam

C) Interface Segregation D) Open/Closed Answer: B Explanation: Liskov Substitution requires subclasses to maintain superclass behavior. Question 25. What is horizontal scalability? A) Increasing server RAM B) Adding more servers to distribute load C) Upgrading CPU in a single server D) Reducing network bandwidth Answer: B Explanation: Horizontal scaling involves adding servers for increased capacity. Question 26. Which API style is based on resource-oriented architecture and uses HTTP methods? A) GraphQL B) SOAP C) REST D) CORBA Answer: C Explanation: RESTful APIs use HTTP verbs and resource URIs. Question 27. In microservices, which technique is commonly used for communication between services? A) Shared database B) Message queues C) Global variables D) Monolithic functions Answer: B Explanation: Message queues decouple services and support asynchronous communication. Question 28. What is the main benefit of gRPC over REST for internal service communication? A) Human-readable JSON B) Language-agnostic binary protocol for performance C) Simpler URLs D) Lack of versioning Answer: B Explanation: gRPC uses efficient binary protocols and supports multiple languages. Question 29. What is an aggregate in Domain-Driven Design? A) A database schema B) A group of entities treated as a unit for data changes C) A network packet D) An API endpoint Answer: B Explanation: Aggregates ensure data consistency within their boundaries. Question 30. Which of the following is NOT a creational design pattern? A) Singleton B) Factory C) Adapter

(PSEM) Exam

Answer: B Explanation: Value objects are compared by their attributes, not identity. Question 37. RESTful APIs should be: A) Stateful B) Stateless C) Use only POST methods D) Use SOAP envelopes Answer: B Explanation: RESTful services are stateless, enhancing scalability and simplicity. Question 38. Which design principle recommends preferring composition over inheritance? A) DRY B) KISS C) SOLID D) Dependency Inversion Answer: C Explanation: SOLID principles, particularly the Dependency Inversion and Open/Closed, encourage composition. Question 39. Which sorting algorithm has the best average-case time complexity? A) Bubble Sort B) Insertion Sort C) Merge Sort D) Selection Sort Answer: C Explanation: Merge Sort has an average-case complexity of O(n log n). Question 40. In big O notation, what is the time complexity of searching for an element in a balanced binary search tree? A) O(1) B) O(n) C) O(log n) D) O(n^2) Answer: C Explanation: Balanced BSTs allow searches in logarithmic time. Question 41. Which data structure is optimal for implementing a priority queue? A) Stack B) Linked List C) Heap D) Queue Answer: C Explanation: Heaps efficiently support priority queue operations. Question 42. What is the worst-case time complexity of quicksort? A) O(n log n) B) O(n^2) C) O(n) D) O(1)

(PSEM) Exam

Answer: B Explanation: Quick Sort’s worst case occurs with poor pivot choices, leading to O(n^2). Question 43. Which of the following is an example of a dynamic programming problem? A) Binary Search B) Fibonacci Sequence C) Bubble Sort D) Linear Search Answer: B Explanation: Dynamic programming efficiently solves problems with overlapping subproblems like Fibonacci. Question 44. What is a race condition? A) When code runs faster than expected B) Two threads access shared data simultaneously, leading to unpredictable results C) Code that never finishes D) A network bottleneck Answer: B Explanation: Race conditions occur when threads access shared data unsafely. Question 45. Which synchronization primitive allows only one thread to access a resource at a time? A) Semaphore B) Mutex C) Barrier D) Event Answer: B Explanation: Mutexes provide exclusive access for thread synchronization. Question 46. What is the primary difference between a process and a thread? A) Threads are independent, processes are not B) Processes share memory, threads do not C) Threads share process memory, processes have separate memory D) Processes are faster than threads Answer: C Explanation: Threads within a process share memory space; processes are isolated. Question 47. In which programming paradigm are functions first-class citizens and immutability is emphasized? A) Procedural B) Object-Oriented C) Functional D) Logic Answer: C Explanation: Functional programming treats functions as values and emphasizes immutability. Question 48. Which refactoring technique involves breaking large functions into smaller, more manageable ones? A) Extract Method B) Inline Variable C) Rename Method

(PSEM) Exam

Answer: B Explanation: Selenium automates browser actions for UI testing. Question 55. What does code coverage measure? A) Amount of documentation B) Percentage of code executed by tests C) Number of lines of code D) Defect density Answer: B Explanation: Code coverage indicates how much code is tested. Question 56. What is the main vulnerability exploited in SQL Injection? A) Buffer overflow B) Unsanitized user input in SQL queries C) Cross-site scripting D) Broken authentication Answer: B Explanation: SQL Injection occurs when user input is directly used in SQL statements. Question 57. Which of the following is a security concern addressed by OWASP Top 10? A) Strong typing B) Cross-Site Scripting (XSS) C) Code formatting D) Agile ceremonies Answer: B Explanation: XSS is a critical web security risk on the OWASP Top 10 list. Question 58. Which practice helps prevent cross-site scripting (XSS) vulnerabilities? A) Input validation and output encoding B) Disabling logs C) Using plain HTTP D) Ignoring user input Answer: A Explanation: Validating and encoding input/output mitigates XSS attacks. Question 59. What is the difference between authentication and authorization? A) Authentication verifies identity; authorization grants access rights B) Authorization verifies identity; authentication grants access C) Both are the same D) Neither are security related Answer: A Explanation: Authentication confirms who you are, authorization determines what you can access. Question 60. What is the aim of static application security testing (SAST)? A) Find security flaws by analyzing running code B) Analyze source code or binaries for vulnerabilities without execution C) Test application performance D) Check user experience Answer: B Explanation: SAST scans code for vulnerabilities without running the application.

(PSEM) Exam

Question 61. Which type of test ensures that software meets business requirements and is acceptable to the client? A) Unit test B) Regression test C) Acceptance test D) Performance test Answer: C Explanation: Acceptance testing validates software against business needs. Question 62. Which of the following is a dynamic analysis tool? A) SonarQube B) Fortify C) OWASP ZAP D) ESLint Answer: C Explanation: OWASP ZAP performs dynamic analysis by monitoring running applications. Question 63. What is the primary goal of continuous integration (CI)? A) Manual deployments B) Merging code changes frequently and running automated tests C) Writing unit tests D) Running regression tests only Answer: B Explanation: CI automates integration and testing of new code changes. Question 64. Which tool is commonly used for orchestrating containerized applications? A) Docker B) Kubernetes C) Ansible D) Vagrant Answer: B Explanation: Kubernetes manages and orchestrates containers at scale. Question 65. What is Infrastructure as Code (IaC)? A) Manual server configuration B) Defining infrastructure through code/scripts for automation C) Writing application logic D) Physical hardware setup Answer: B Explanation: IaC automates infrastructure provisioning using scripts and configuration files. Question 66. Which practice involves releasing software to production in small, frequent increments? A) Waterfall B) Continuous Delivery C) Regression Testing D) Manual Deployment Answer: B Explanation: Continuous Delivery automates and speeds up software release cycles.

(PSEM) Exam

B) Complexity and effort relative to other stories C) Number of developers D) Calendar dates Answer: B Explanation: Story points reflect relative size, not absolute time. Question 74. Which Git workflow is characterized by a master branch and supporting feature, release, and hotfix branches? A) GitHub Flow B) GitFlow C) Forking Workflow D) Trunk-based Development Answer: B Explanation: GitFlow uses multiple branches for structured release management. Question 75. What does “fork” mean in version control systems like Git? A) Merging two branches B) Creating a copy of a repository to make independent changes C) Deleting a branch D) Reverting commits Answer: B Explanation: Forking allows developers to work independently of the main codebase. Question 76. Which Agile role is responsible for facilitating the process and removing impediments? A) Product Owner B) Scrum Master C) Developer D) Stakeholder Answer: B Explanation: The Scrum Master serves the team by ensuring smooth processes. Question 77. Which type of risk is associated with technology choices in a project? A) Market risk B) Technical risk C) Financial risk D) Legal risk Answer: B Explanation: Technical risk arises from technology selection and implementation. Question 78. What is the purpose of a sprint retrospective? A) Estimate story points B) Plan the next sprint C) Reflect on the process and improve D) Assign tasks Answer: C Explanation: Retrospectives help teams identify improvements after each sprint. Question 79. Which communication technique is best for clarifying ambiguous requirements? A) Email only B) Documentation

(PSEM) Exam

C) Workshops and face-to-face discussions D) Ignoring the ambiguity Answer: C Explanation: Interactive workshops promote shared understanding and clarification. Question 80. What is the primary output of a sprint review in Scrum? A) New product backlog B) Shippable product increment C) Sprint plan D) Defect report Answer: B Explanation: The team demonstrates a potentially shippable product increment. Question 81. What does a burn-up chart show in Agile projects? A) Work remaining B) Total work completed over time C) Bugs found D) Code coverage Answer: B Explanation: Burn-up charts show progress toward completion. Question 82. What is the main purpose of backlog refinement (grooming)? A) Assign tasks B) Prioritize and clarify backlog items C) Merge code D) Deploy to production Answer: B Explanation: Backlog refinement prepares stories for future sprints. Question 83. Which requirement type focuses on performance, security, and usability? A) Functional B) Non-functional C) Business D) Stakeholder Answer: B Explanation: Non-functional requirements address system qualities. Question 84. What is a persona in requirements engineering? A) A database schema B) A fictional user representing a user type C) A code module D) A test case Answer: B Explanation: Personas help understand user needs and perspectives. Question 85. Which artifact helps ensure all requirements are implemented and tested? A) Traceability matrix B) User manual C) Deployment script D) Code coverage report

(PSEM) Exam

Question 92. What is the main purpose of the Dependency Inversion Principle? A) Depend on concrete classes B) Depend on abstractions, not concretions C) Use global variables D) Avoid interfaces Answer: B Explanation: Dependency Inversion reduces coupling by relying on abstractions. Question 93. Which design pattern provides a way to create families of related objects without specifying their concrete classes? A) Abstract Factory B) Proxy C) Composite D) Adapter Answer: A Explanation: Abstract Factory produces related objects without binding to specific classes. Question 94. What is the main difference between REST and GraphQL APIs? A) REST allows fetching specific fields, GraphQL cannot B) GraphQL allows clients to specify required fields in a single request C) REST is only for mobile apps D) GraphQL does not support queries Answer: B Explanation: GraphQL enables precise data queries in one request. Question 95. Which pattern allows objects to be created based on a template of an existing object? A) Factory B) Prototype C) Builder D) Composite Answer: B Explanation: The Prototype pattern clones objects from a prototype instance. Question 96. What is the primary benefit of using the Builder pattern? A) Simplifies complex object creation with many optional parameters B) Increases code duplication C) Forces inheritance D) Reduces encapsulation Answer: A Explanation: Builder helps construct complex objects step by step. Question 97. Which pattern decouples an abstraction from its implementation? A) Bridge B) Observer C) Decorator D) Command Answer: A Explanation: Bridge separates abstraction from implementation for flexibility.

(PSEM) Exam

Question 98. What is the role of a facade in design patterns? A) Add new behavior B) Provide a unified interface to a subsystem C) Clone objects D) Notify observers Answer: B Explanation: Facade offers a simple interface to complex subsystems. Question 99. Which API protocol is most suitable for high-performance real-time communication? A) REST B) SOAP C) gRPC D) FTP Answer: C Explanation: gRPC is optimized for low-latency, high-throughput scenarios. Question 100. What is a major benefit of Domain-Driven Design (DDD)? A) Encourages technical jargon B) Aligns software design with business domain and language C) Uses only UML diagrams D) Ignores user stories Answer: B Explanation: DDD fosters collaboration between technical and business experts. Question 101. What is a hash table's average-case time complexity for search? A) O(1) B) O(log n) C) O(n) D) O(n log n) Answer: A Explanation: Hash tables provide constant time search in average cases. Question 102. In AVL trees, what is ensured after every insertion and deletion? A) Tree height is reduced B) Binary search property is destroyed C) Tree remains balanced D) All nodes have two children Answer: C Explanation: AVL trees balance after each update to maintain O(log n) operations. Question 103. Which data structure is best for finding the shortest path in a weighted graph? A) Stack B) Queue C) Heap D) Priority queue (used in Dijkstra's algorithm) Answer: D Explanation: Dijkstra’s algorithm uses a priority queue for shortest path calculations. Question 104. What is the result of a deadlock? A) Processes continue to run

(PSEM) Exam

C) Magic Numbers D) Feature Envy Answer: B Explanation: God Objects are classes that centralize too much responsibility. Question 111. Which type of software test is best for verifying interactions between modules? A) Unit Test B) System Test C) Integration Test D) Smoke Test Answer: C Explanation: Integration tests check how modules work together. Question 112. What is the goal of usability testing? A) Measure code speed B) Assess the user experience and ease of use C) Find security flaws D) Test only backend logic Answer: B Explanation: Usability testing evaluates the product’s user-friendliness. Question 113. Which is NOT a type of performance testing? A) Load testing B) Stress testing C) Unit testing D) Soak testing Answer: C Explanation: Unit testing does not evaluate system performance. Question 114. What is defect density? A) Number of users B) Defects per unit size of code C) Number of features D) Code coverage percentage Answer: B Explanation: Defect density measures code quality by counting defects per code size. Question 115. Which automated test framework is primarily for Java? A) JUnit B) Selenium C) Mocha D) Jasmine Answer: A Explanation: JUnit is a popular Java unit testing framework. Question 116. What is the primary purpose of code review? A) Increase code complexity B) Ensure code quality and share knowledge C) Reduce team size D) Avoid documentation

(PSEM) Exam

Answer: B Explanation: Code reviews improve quality and foster knowledge sharing. Question 117. Which vulnerability allows attackers to execute scripts in the browser of another user? A) CSRF B) SQL Injection C) XSS D) SSRF Answer: C Explanation: XSS (Cross-Site Scripting) injects scripts into web pages viewed by users. Question 118. Which is a secure coding practice? A) Hard-coding secrets B) Input validation and sanitization C) Disabling logs D) Using outdated libraries Answer: B Explanation: Validating and sanitizing input prevents many attacks. Question 119. What is the main focus of DAST (Dynamic Application Security Testing)? A) Source code analysis B) Testing running applications for vulnerabilities C) Writing unit tests D) Manual code review Answer: B Explanation: DAST examines applications in runtime for security flaws. Question 120. Which authentication mechanism uses time-based one-time passwords? A) Basic Auth B) OAuth C) TOTP D) SAML Answer: C Explanation: TOTP generates time-limited codes for authentication. Question 121. What is continuous testing in DevOps? A) Only manual tests B) Running automated tests as part of the CI/CD pipeline C) Testing only after release D) Skipping tests Answer: B Explanation: Continuous testing integrates tests into every stage of delivery. Question 122. Which IaC tool is declarative and cloud-agnostic? A) Puppet B) Terraform C) Chef D) Makefile