Software Engineering MCQs for Engineering License NEC / Loksewa / ME Exams – Page 2
40 Software Engineering multiple-choice questions with answers and explanations, from the ExamsNepal question bank for Engineering License NEC / Loksewa / ME Exams. Try each question first, then open the answer to check your reasoning.
Preparing for NEC Architecture Engineering License Exam, NEC Civil Engineering License Exam or NEC Electronics, Communication & Automation Engineering License Exam? See the exam pattern, syllabus and free mock tests.
21. What is a model in software engineering?
- A. A representation of a system or process
- B. A document describing a system or process
- C. A tool used for testing software
- D. A software programming language
Discuss this questionShow answer & explanation
Answer: A. A representation of a system or process
Answer: a) A representation of a system or process
Explanation: In software engineering, a model is a representation of a system or process. It can be used to help understand, design, or analyze a system.22. Which of the following is a step in the requirement process?
- A. Designing the system architecture
- B. Implementing the system
- C. Verifying the system
- D. Gathering and analyzing requirements
Discuss this questionShow answer & explanation
Answer: D. Gathering and analyzing requirements
Answer: d) Gathering and analyzing requirements
Explanation: The requirement process involves gathering and analyzing requirements, designing the system architecture, implementing the system, and verifying the system.23. What are use cases?
- A. A tool used for testing software
- B. A technique for gathering and documenting requirements
- C. A design pattern used in object-oriented programming
- D. A programming language
Discuss this questionShow answer & explanation
Answer: B. A technique for gathering and documenting requirements
Answer: b) A technique for gathering and documenting requirements
Explanation: Use cases are a technique for gathering and documenting requirements in software engineering. They describe the interactions between actors and a system, and help to define the system`s functionality.24. What is the object-oriented development cycle?
- A. A process for developing software using an object-oriented approach
- B. A process for developing software using a functional programming approach
- C. A process for developing software using a procedural programming approach
- D. A process for developing software using a database-driven approach
Discuss this questionShow answer & explanation
Answer: A. A process for developing software using an object-oriented approach
Answer: a) A process for developing software using an object-oriented approach
Explanation: The object-oriented development cycle is a process for developing software using an object-oriented approach. It typically involves requirements gathering, analysis, design, implementation, testing, and maintenance.25. What is the Unified Modeling Language (UML)?
- A. A programming language used for web development
- B. A database management system
- C. A modeling language used for software engineering
- D. A testing tool for software applications
Discuss this questionShow answer & explanation
Answer: C. A modeling language used for software engineering
Answer: c) A modeling language used for software engineering
Explanation: The Unified Modeling Language (UML) is a modeling language used in software engineering to visually represent a system`s architecture, design, and behavior. It includes a set of graphical notations and provides a standard way to document software systems.26. What is involved in building a conceptual model?
- A. Defining the system`s requirements
- B. Analyzing the system`s architecture
- C. Developing the system`s user interface
- D. Identifying the system`s entities and relationships
Discuss this questionShow answer & explanation
Answer: D. Identifying the system`s entities and relationships
Answer: d) Identifying the system`s entities and relationships
Explanation: Building a conceptual model involves identifying the system`s entities (objects or concepts) and their relationships. It is an important step in the design process, as it helps to define the system`s structure and behavior.27. What are associations and attributes in a conceptual model?
- A. Entities in the system being modeled
- B. Relationships between entities
- C. Properties of entities
- D. All of the above
Discuss this questionShow answer & explanation
Answer: D. All of the above
Answer: d) All of the above
Explanation: Associations and attributes are both important elements of a conceptual model. Associations represent the relationships between entities, while attributes represent the properties or characteristics of entities.28. How is the behavior of a system represented in a conceptual model?
- A. Using use cases
- B. Using class diagrams
- C. Using activity diagrams
- D. Using state diagrams
Discuss this questionShow answer & explanation
Answer: D. Using state diagrams
Answer: d) Using state diagrams
Explanation: State diagrams are used to represent the behavior of a system in a conceptual model. They show the possible states of an object or system and the events that cause it to transition between states.29. What is the purpose of analysis in software development?
- A. To identify the requirements of the system and the constraints that affect them.
- B. To translate the requirements of the system into a design that can be implemented.
- C. To create a prototype of the system that can be tested by users.
- D. To develop a detailed implementation plan for the system.
Discuss this questionShow answer & explanation
Answer: A. To identify the requirements of the system and the constraints that affect them.
Answer: A
Explanation: Analysis is the process of identifying the requirements of the system and the constraints that affect them. It involves understanding the problem domain, defining the scope of the system, and identifying the stakeholders and their needs.30. What is a use case in software development?
- A. A diagram that shows the relationships between objects in the system.
- B. A detailed description of a specific feature or function of the system.
- C. A set of requirements that define the behavior of the system.
- D. A diagram that shows the sequence of actions performed by the system in response to a user request.
Discuss this questionShow answer & explanation
Answer: B. A detailed description of a specific feature or function of the system.
Answer: B
Explanation: A use case is a detailed description of a specific feature or function of the system. It describes the interactions between the user and the system and the expected outcome of those interactions.31. What is a collaboration diagram in software development?
- A. A diagram that shows the relationships between objects in the system.
- B. A detailed description of a specific feature or function of the system.
- C. A diagram that shows the sequence of actions performed by the system in response to a user request.
- D. A diagram that shows the flow of messages between objects in the system.
Discuss this questionShow answer & explanation
Answer: D. A diagram that shows the flow of messages between objects in the system.
Answer: D
Explanation: A collaboration diagram is a diagram that shows the flow of messages between objects in the system. It shows how objects interact with each other to achieve a specific goal.32. What is a class diagram in software development?
- A. A diagram that shows the relationships between objects in the system.
- B. A detailed description of a specific feature or function of the system.
- C. A diagram that shows the sequence of actions performed by the system in response to a user request.
- D. A diagram that shows the structure of the objects in the system and the relationships between them.
Discuss this questionShow answer & explanation
Answer: D. A diagram that shows the structure of the objects in the system and the relationships between them.
Answer: D
Explanation: A class diagram is a diagram that shows the structure of the objects in the system and the relationships between them. It shows the classes, interfaces, and their relationships in the system.33. What is the purpose of patterns in software development?
- A. To provide a standard way of designing software systems.
- B. To provide a set of best practices for developing software.
- C. To provide a way to reuse proven solutions to common design problems.
- D. To provide a way to document the design of a software system.
Discuss this questionShow answer & explanation
Answer: C. To provide a way to reuse proven solutions to common design problems.
Answer: C
Explanation: Patterns are a way to reuse proven solutions to common design problems. They provide a standard way of solving common design problems and can be used to improve the quality and maintainability of software systems.34. Which of the following is NOT a part of the software development life cycle (SDLC)?
- A. Implementation
- B. Maintenance
- C. Testing
- D. Deployment
Discuss this questionShow answer & explanation
Answer: D. Deployment
Answer: d) Deployment
Explanation: The software development life cycle (SDLC) includes several phases, such as planning, analysis, design, implementation, testing, and maintenance. Deployment is the final stage of the SDLC, where the software is installed and made available to end-users.35. What is the process of converting design models into code called?
- A. Code optimization
- B. Code mapping
- C. Code generation
- D. Code testing
Discuss this questionShow answer & explanation
Answer: C. Code generation
Answer: c) Code generation
Explanation: Code generation is the process of automatically translating design models (such as UML diagrams) into executable code. Code generation tools typically take a high-level representation of the software design and generate code in a specific programming language.36. In UML, what does a solid line with a diamond at one end represent in a class diagram?
- A. Composition
- B. Aggregation
- C. Inheritance
- D. Association
Discuss this questionShow answer & explanation
Answer: A. Composition
Answer: a) Composition
Explanation: In UML, a solid line with a diamond at one end represents a composition relationship between two classes. Composition is a stronger form of aggregation, where the lifetime of the contained object is tied to the lifetime of the container object.37. In UML, what does a message with an open arrowhead in a collaboration diagram represent?
- A. Synchronous message
- B. Asynchronous message
- C. Return message
- D. Create message
Discuss this questionShow answer & explanation
Answer: B. Asynchronous message
Answer: b) Asynchronous message
Explanation: In UML, a message with an open arrowhead in a collaboration diagram represents an asynchronous message. Asynchronous messages do not wait for a response before continuing, whereas synchronous messages do.38. In object-oriented programming, what is the process of creating a new class based on an existing class called?
- A. Aggregation
- B. Inheritance
- C. Composition
- D. Encapsulation
Discuss this questionShow answer & explanation
Answer: B. Inheritance
Answer: b) Inheritance
Explanation: In object-oriented programming, inheritance is the process of creating a new class based on an existing class. The new class inherits all the properties and methods of the existing class and can add new functionality or override existing behavior.39. Which of the following is NOT a type of class in object-oriented programming?
- A. Concrete class
- B. Abstract class
- C. Final class
- D. Virtual class
Discuss this questionShow answer & explanation
Answer: D. Virtual class
Answer: d) Virtual class
Explanation: In object-oriented programming, a virtual class is not a recognized concept. The other types of classes include concrete classes (which can be instantiated), abstract classes (which cannot be instantiated and are intended to be subclassed), and final classes (which cannot be subclassed).40. What is the process of transferring control to a specified handler when an exception is thrown called?
- A. Exception propagation
- B. Exception handling
- C. Exception rethrowing
- D. Exception catching
Discuss this questionShow answer & explanation
Answer: B. Exception handling
Answer: b) Exception handling
Explanation: Exception handling is the process of transferring control to a specified handler when an exception is thrown. The handler can then take appropriate actions, such as logging the error or displaying an error message to the user.