Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT "DEGREE LEVEL : SOFTWARE ENGINEERING (COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
Solution
Which of the following test cases ensures branch coverage for the Python code given below?

Solution
What is the cyclomatic complexity of the following Python function?

Solution
Consider the following Python function:

From a black-box testing perspective, how many input equivalence classes are appropriate for testing this function?
From a black-box testing perspective, how many input equivalence classes are appropriate for testing this function?
Solution
You are building a logistics module for an e-commerce platform. Depending on the delivery location, you must use different delivery partners like BlueDart, Delhivery, or Ekart. The logic to choose the partner is based on pin code and priority, and this choice should be encapsulated so the client code doesn’t have to instantiate the correct partner explicitly.
Which design pattern should be used to decouple the client from the instantiation logic?
Which design pattern should be used to decouple the client from the instantiation logic?
Solution
You have a base class Document with a method print(). A derived class EncryptedDocument throws an exception when print() is called because it must first be decrypted.
Which SOLID principle is violated in this scenario?
Which SOLID principle is violated in this scenario?
Solution
In an online seller portal, the Product class includes common attributes like name, cost, and category. Subclasses like Electronics, Books, and Clothing extend Product by adding specific attributes.
Which object-oriented concept does this MOST closely illustrate?
Which object-oriented concept does this MOST closely illustrate?
Solution
An OrderProcessing module first checks if a user is logged in, then verifies cart items, and finally calculates total cost—all as a single process.
What is the most likely cohesion type?
What is the most likely cohesion type?
Solution
Which of the following statements about the product backlog are correct?
Solution
Which of the following are true about Gantt Charts?
Solution
Solution
An e-commerce website allows users to browse product categories, view product details, and compare items without requiring login. Only at the checkout stage are users asked to sign in or create an account.
Which design heuristic is being followed in this scenario?
Which design heuristic is being followed in this scenario?
Solution
A photo-editing software introduces a step-by-step guide when a new user opens the app for the first time, showing how to apply filters and save images. This feature supports:
Solution
A startup jumps straight into coding a mobile app based on initial requirements, but later learns users are unhappy with the interface. Which of the following would have helped them avoid this?
Solution
Solution
You’re unclear about what features independent sellers want in a new portal. You ask open-ended questions and follow up based on their responses.
Which type of interview format are you likely using?
Which type of interview format are you likely using?
Solution
A digital wallet app was released after rigorous testing. However, users report that transactions sometimes fail on specific browsers. The development team investigates and releases a patch update to resolve this.
Which phase of the software development process does this activity belong to?
Which phase of the software development process does this activity belong to?
Solution
A blog site has frequent visitors for its top articles. The team implements a mechanism where previously fetched articles are served directly from memory rather than querying the database every time.
Which type of optimization is being applied?
Which type of optimization is being applied?
Solution
Your team deploys a major update to a new server setup. If anything breaks, they want to instantly switch all users back to the older version.
Which deployment strategy enables this type of rollback?
Which deployment strategy enables this type of rollback?
Solution
As a developer, you're testing a new feature on your local machine using a connected local database. You've not yet pushed your code to the central repository.
Which environment are you currently working in?
Which environment are you currently working in?
Solution
While managing a growing codebase, your team uses GitHub, JIRA, and Slack. A new intern is onboarded and wants to know why a certain function exists. No documentation is available.
Which practice could have prevented this gap?
Which practice could have prevented this gap?
Solution
You are working as a software engineer in a medium-sized company developing an e-commerce platform. A customer reports that they are unable to track their orders in the app. The issue is passed on to you after initial attempts to resolve it through basic FAQs and scripted responses failed.
Which team most likely handled the initial customer query before escalating it to you?
Which team most likely handled the initial customer query before escalating it to you?
Solution
What type of tool is an IDE (Integrated Development Environment) like IntelliJ IDEA or VS Code?
Solution
You want to find out which function in your program is the slowest and how many times it is called.
Which technique is most appropriate?
Which technique is most appropriate?
Solution
You are working on a seller portal project. Your teammate suggests creating a diagram that shows the classes involved, their attributes, and their relationships to facilitate a design discussion.
Which UML diagram should you use in this situation?
Which UML diagram should you use in this situation?
Solution
Ravi modified three files (file1, file2, and file3) in his local Git repository. Two of them (file1 and file2) are ready to be committed, but one was just for testing and should not be committed.
Which sequence of commands should Ravi use to commit only the two ready files?
Which sequence of commands should Ravi use to commit only the two ready files?
Solution
Shape
Thickness [ / ]
3
All colors