0% found this document useful (0 votes)
488 views82 pages

UNIT 2 - Application Development

Uploaded by

padmasree.ka1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
488 views82 pages

UNIT 2 - Application Development

Uploaded by

padmasree.ka1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

UNIT 2 – Application Development

Topic 1 : Requirement Analysis & Engineering


1. What is the main goal of requirement analysis?

A) Testing software
B) Understanding user needs and defining system requirements
C) Designing system architecture
D) Implementing the system
Answer: B) Understanding user needs and defining system requirements

2. Which of the following is NOT a type of requirement?

A) Functional
B) Non-functional
C) Behavioral
D) Structural
Answer: D) Structural

3. What is a stakeholder in requirement engineering?

A) A testing tool
B) An individual or group with interest in the system
C) A system user only
D) A person writing the code
Answer: B) An individual or group with interest in the system

4. Which document is created during the requirement analysis phase?

A) Source code
B) Test case document
C) Software Requirement Specification (SRS)
D) User manual
Answer: C) Software Requirement Specification (SRS)

5. What does SRS stand for in requirement engineering?

A) Software Risk Specification


B) Software Requirement Specification
C) System Resource Specification
D) Software Reliability Specification
Answer: B) Software Requirement Specification

6. What is the first step in requirement analysis?

A) Requirement elicitation
B) Requirement validation
C) Requirement specification
D) Requirement prioritization
Answer: A) Requirement elicitation
7. Which technique is commonly used for requirement elicitation?

A) Coding
B) Interviewing stakeholders
C) Writing test cases
D) Database design
Answer: B) Interviewing stakeholders

8. What is the purpose of prototyping in requirement analysis?

A) To test the final product


B) To provide a working model for stakeholder feedback
C) To document user manuals
D) To design the database
Answer: B) To provide a working model for stakeholder feedback

9. Which of the following is NOT a requirement validation technique?

A) Peer review
B) Prototyping
C) System testing
D) Walkthrough
Answer: C) System testing

10. What does "functional requirements" refer to?

A) System behaviors and actions


B) System constraints
C) System performance metrics
D) System design architecture
Answer: A) System behaviors and actions

11. What are non-functional requirements?

A) User interface requirements


B) Constraints on system design and operation
C) Database design requirements
D) System algorithms
Answer: B) Constraints on system design and operation

12. What does traceability in requirement engineering ensure?

A) All requirements are linked to design and testing


B) All requirements are functional
C) All stakeholders are documented
D) All risks are mitigated
Answer: A) All requirements are linked to design and testing

13. Which tool is often used for managing requirements?

A) MS Excel
B) JIRA
C) PowerPoint
D) Visual Studio
Answer: B) JIRA

14. What is requirement prioritization?

A) Assigning deadlines to requirements


B) Ranking requirements based on their importance and urgency
C) Writing detailed requirements
D) Allocating budget for each requirement
Answer: B) Ranking requirements based on their importance and urgency

15. Which of these is an example of a functional requirement?

A) The system must respond in under 2 seconds


B) The system should have a login feature
C) The system must use encryption for sensitive data
D) The system should support 100 users concurrently
Answer: B) The system should have a login feature

16. What is requirement elicitation?

A) Identifying stakeholders
B) Collecting requirements from stakeholders
C) Validating requirements
D) Documenting requirements
Answer: B) Collecting requirements from stakeholders

17. Which of these is a non-functional requirement?

A) The system must display error messages


B) The system must have a password reset feature
C) The system should handle 10,000 concurrent users
D) The system must store customer details
Answer: C) The system should handle 10,000 concurrent users

18. What is a use case in requirement analysis?

A) A method for testing


B) A description of a specific system interaction
C) A type of functional requirement
D) A list of system constraints
Answer: B) A description of a specific system interaction

19. What does requirement verification ensure?

A) Requirements meet user needs


B) Requirements are testable
C) Requirements are complete and consistent
D) All of the above
Answer: D) All of the above
20. Which of the following is NOT an elicitation technique?

A) Brainstorming
B) Prototyping
C) Stakeholder interviews
D) Unit testing
Answer: D) Unit testing

21. What is a feasibility study in requirement engineering?

A) Testing system performance


B) Evaluating if requirements are realistic and achievable
C) Conducting user interviews
D) Writing system specifications
Answer: B) Evaluating if requirements are realistic and achievable

22. What is the purpose of requirements modeling?

A) To create diagrams that represent requirements


B) To test software systems
C) To define user roles
D) To prioritize requirements
Answer: A) To create diagrams that represent requirements

23. What is scope creep in requirement analysis?

A) Unexpected changes to system functionality


B) Effective requirement prioritization
C) Testing user requirements
D) Proper stakeholder communication
Answer: A) Unexpected changes to system functionality

24. What does a requirement engineer NOT typically do?

A) Define system requirements


B) Test system performance
C) Validate requirements
D) Document requirements
Answer: B) Test system performance

25. What is a requirement baseline?

A) The finalized set of requirements


B) A draft of all potential requirements
C) A list of rejected requirements
D) A set of test cases
Answer: A) The finalized set of requirements

26. What is requirement negotiation?


A) Resolving conflicts among stakeholders about requirements
B) Prioritizing user stories
C) Writing detailed specifications
D) Testing system prototypes
Answer: A) Resolving conflicts among stakeholders about requirements

27. What is the purpose of a context diagram?

A) To show system components


B) To represent the system boundary and interactions
C) To validate requirements
D) To list user stories
Answer: B) To represent the system boundary and interactions

28. What is the main focus of requirement engineering?

A) Writing code
B) Ensuring accurate and complete requirements
C) Designing system architecture
D) Testing software
Answer: B) Ensuring accurate and complete requirements

29. What is the difference between a user story and a use case?

A) A user story is detailed; a use case is high-level


B) A use case is a scenario; a user story describes functionality
C) A use case defines user interface elements
D) A user story is functional, and a use case is non-functional
Answer: B) A use case is a scenario; a user story describes functionality

30. What is the purpose of requirement management?

A) To develop and test software


B) To handle changes and ensure traceability of requirements
C) To design system architecture
D) To document testing procedures
Answer: B) To handle changes and ensure traceability of requirements

31. Which of the following diagrams is used in requirement engineering?

A) Gantt chart
B) Use case diagram
C) Histogram
D) Pie chart
Answer: B) Use case diagram

32. What is the outcome of the requirement specification phase?

A) Functional prototype
B) Detailed design documents
C) Software Requirement Specification (SRS)
D) Codebase
Answer: C) Software Requirement Specification (SRS)

33. What is a functional decomposition in requirement analysis?

A) Breaking down complex functions into simpler ones


B) Testing individual software components
C) Writing detailed specifications
D) Documenting high-level requirements
Answer: A) Breaking down complex functions into simpler ones

34. What is the significance of requirement traceability?

A) It ensures design and testing cover all requirements


B) It improves system performance
C) It resolves conflicts
D) It prioritizes functional requirements
Answer: A) It ensures design and testing cover all requirements

35. What is an example of a constraint in requirement analysis?

A) The system must handle 500 transactions per second


B) The system must comply with GDPR
C) The system must allow user authentication
D) The system must provide search functionality
Answer: B) The system must comply with GDPR

36. Which method is used to organize requirements in a hierarchical


structure?

A) Context diagram
B) Traceability matrix
C) Requirements tree
D) Use case model
Answer: C) Requirements tree

37. What does a gap analysis identify in requirement engineering?

A) Missing requirements
B) Redundant requirements
C) Invalid requirements
D) Test case failures
Answer: A) Missing requirements

38. Which of the following is an elicitation challenge?

A) Clear documentation
B) Conflicting stakeholder opinions
C) Complete testing
D) Detailed coding
Answer: B) Conflicting stakeholder opinions

39. What is the purpose of the requirement verification phase?

A) Ensuring requirements meet specified quality criteria


B) Writing system code
C) Reviewing test cases
D) Validating system performance
Answer: A) Ensuring requirements meet specified quality criteria

40. What is the outcome of requirement elicitation?

A) Stakeholder interviews
B) System design documents
C) Initial set of requirements
D) Source code
Answer: C) Initial set of requirements

41. Which of the following best describes a use case?

A) A specific interaction between a user and a system


B) A set of testing procedures
C) A list of performance metrics
D) A breakdown of system architecture
Answer: A) A specific interaction between a user and a system

42. Which stakeholders are most critical during requirement gathering?

A) Developers
B) End-users
C) Designers
D) Testers
Answer: B) End-users

43. What is the purpose of requirement validation?

A) To eliminate coding bugs


B) To ensure requirements meet user needs
C) To prioritize system constraints
D) To finalize the system design
Answer: B) To ensure requirements meet user needs

44. What is the main focus of functional requirements?

A) User interface design


B) Performance and scalability
C) System behavior and features
D) Coding practices
Answer: C) System behavior and features
45. Which tool is used to link requirements to design, testing, and
implementation?

A) Requirement management tool


B) Debugging tool
C) Performance monitoring tool
D) Database tool
Answer: A) Requirement management tool

46. What is the role of prototyping in requirement elicitation?

A) Validating requirements early


B) Writing test cases
C) Defining the system architecture
D) Documenting user manuals
Answer: A) Validating requirements early

47. Which requirement is addressed in the early phase of requirement


analysis?

A) Performance requirements
B) Business requirements
C) Security requirements
D) User interface requirements
Answer: B) Business requirements

48. What is an advantage of iterative requirement analysis?

A) Faster development cycles


B) Incorporates feedback progressively
C) Avoids system testing
D) Reduces documentation
Answer: B) Incorporates feedback progressively

49. What is the purpose of the feasibility study?

A) Assess technical and financial viability


B) Write functional requirements
C) Implement system code
D) Conduct unit testing
Answer: A) Assess technical and financial viability

50. What is the ultimate purpose of requirement engineering?

A) To write test cases


B) To ensure a system meets its intended purpose
C) To reduce coding errors
D) To finalize project deadlines
Answer: B) To ensure a system meets its intended purpose
Topic 2 : Software Analysis & Design
1. What is the main purpose of software analysis and design?

A) To write code
B) To understand and specify what the software will do
C) To test the software
D) To create the user interface
Answer: B) To understand and specify what the software will do

2. What does the term "software architecture" refer to?

A) The code written by developers


B) The structure and organization of the software system
C) The design of the user interface
D) The programming language used
Answer: B) The structure and organization of the software system

3. Which of the following is the first phase of the software development


lifecycle?

A) Design
B) Testing
C) Requirement analysis
D) Deployment
Answer: C) Requirement analysis

4. What is a UML diagram used for in software design?

A) To test software
B) To illustrate system architecture and design
C) To write system code
D) To define project timelines
Answer: B) To illustrate system architecture and design

5. What does the term "functional decomposition" mean?

A) Breaking down a software system into smaller, manageable functions


B) Writing functions in code
C) Testing individual system functions
D) Prioritizing system functions
Answer: A) Breaking down a software system into smaller, manageable functions

6. What is the role of a class diagram in software design?

A) To show the sequence of events in the software


B) To model the system’s user interface
C) To represent the classes, their attributes, and relationships
D) To list software requirements
Answer: C) To represent the classes, their attributes, and relationships
7. In object-oriented design, what is an object?

A) A data type
B) A unit of execution
C) An instance of a class
D) A function in the system
Answer: C) An instance of a class

8. What is the purpose of a sequence diagram in UML?

A) To model the internal behavior of an object


B) To show the interaction between objects over time
C) To depict the class hierarchy
D) To show the system architecture
Answer: B) To show the interaction between objects over time

9. What is a use case in software analysis?

A) A requirement of the software


B) A detailed technical document
C) A scenario representing a system's behavior from a user's perspective
D) A test case for the software
Answer: C) A scenario representing a system's behavior from a user's perspective

10. Which design principle focuses on making components independent and


reusable?

A) Encapsulation
B) Inheritance
C) Modularity
D) Polymorphism
Answer: C) Modularity

11. What is an algorithm in software design?

A) A sequence of instructions to perform a task


B) A diagram representing the system structure
C) A document outlining user requirements
D) A test for the software
Answer: A) A sequence of instructions to perform a task

12. What does the term "encapsulation" mean in object-oriented design?

A) Hiding the internal state and requiring all interaction to be performed through methods
B) The process of creating multiple classes
C) The ability of a class to inherit properties from another class
D) Allowing objects to share data directly
Answer: A) Hiding the internal state and requiring all interaction to be performed through
methods

13. What is a state diagram used for in software design?


A) To show how objects interact over time
B) To depict the states an object can be in and the transitions between those states
C) To represent class hierarchies
D) To model the user interface
Answer: B) To depict the states an object can be in and the transitions between those states

14. What is the difference between functional and non-functional


requirements?

A) Functional requirements describe system behavior, while non-functional requirements


define system qualities
B) Functional requirements are for developers, non-functional are for testers
C) Functional requirements define the system architecture, while non-functional define the
user interface
D) There is no difference
Answer: A) Functional requirements describe system behavior, while non-functional
requirements define system qualities

15. Which of the following is a non-functional requirement?

A) The system must support 500 concurrent users


B) The system must allow users to log in
C) The system must store user data
D) The system must display error messages
Answer: A) The system must support 500 concurrent users

16. What is a component diagram in UML?

A) A diagram that represents the system’s functionality


B) A diagram that shows the system’s static structure
C) A diagram that illustrates the system's components and their relationships
D) A diagram that shows the sequence of user actions
Answer: C) A diagram that illustrates the system's components and their relationships

17. In the context of software design, what is abstraction?

A) Hiding the complex reality while exposing only the necessary parts
B) Creating detailed system specifications
C) Representing system interactions over time
D) Writing the code for a software system
Answer: A) Hiding the complex reality while exposing only the necessary parts

18. What is a flowchart used for in software design?

A) To depict the class structure


B) To show the flow of control in a system or process
C) To model the system’s data storage
D) To show user interface elements
Answer: B) To show the flow of control in a system or process

19. What does a collaboration diagram in UML illustrate?


A) How objects collaborate with each other
B) The flow of control through the system
C) The structure of the system’s components
D) The interactions between users and the system
Answer: A) How objects collaborate with each other

20. What is a "design pattern" in software engineering?

A) A pre-designed piece of code for common tasks


B) A solution to a recurring design problem
C) A set of test cases for software
D) A method of writing code quickly
Answer: B) A solution to a recurring design problem

21. What is meant by the term "cohesion" in software design?

A) The degree to which different classes depend on each other


B) The degree to which the elements of a module or class are related
C) The structure of the system
D) The interaction between system components
Answer: B) The degree to which the elements of a module or class are related

22. What is the role of the design phase in software engineering?

A) To test the software


B) To plan and outline how the software will meet the requirements
C) To develop the user interface
D) To write the source code
Answer: B) To plan and outline how the software will meet the requirements

23. Which of the following is an example of a design tool?

A) Visual Paradigm
B) Git
C) Eclipse
D) JUnit
Answer: A) Visual Paradigm

24. What is the main goal of refactoring in software design?

A) To improve the software’s performance


B) To rewrite the entire code
C) To restructure existing code without changing its behavior
D) To fix security vulnerabilities
Answer: C) To restructure existing code without changing its behavior

25. What does the "Open/Closed Principle" refer to in design?

A) A system should be open to modification but closed to extension


B) A system should be closed to both modification and extension
C) A system should be open to both modification and extension
D) A system should only be modified if absolutely necessary
Answer: C) A system should be open to both modification and extension

26. What is the purpose of a "context diagram" in system design?

A) To show the overall system and its interactions with external entities
B) To represent the system’s data model
C) To define the software’s requirements
D) To model the system’s state transitions
Answer: A) To show the overall system and its interactions with external entities

27. In software design, what is coupling?

A) The degree of dependency between different modules or components


B) The degree of similarity between system components
C) The interaction between objects
D) The flow of control in a process
Answer: A) The degree of dependency between different modules or components

28. Which of the following best defines "inheritance" in object-oriented


design?

A) A class can inherit properties and behaviors from another class


B) A class can implement multiple interfaces
C) A class can only inherit properties from one parent class
D) A class can define its own unique properties
Answer: A) A class can inherit properties and behaviors from another class

29. What is the key benefit of using design patterns in software design?

A) To reduce the time needed for coding


B) To standardize the design approach for common problems
C) To create new programming languages
D) To reduce software testing efforts
Answer: B) To standardize the design approach for common problems

30. What does a data flow diagram (DFD) illustrate in software design?

A) The flow of control within the software


B) The data input, processing, and output within a system
C) The relationships between objects in the system
D) The architecture of the system
Answer: B) The data input, processing, and output within a system

31. What is the primary goal of software design?

A) To create a working prototype


B) To define how the software will be built and structured
C) To write unit tests
D) To deploy the software
Answer: B) To define how the software will be built and structured
32. What is the definition of "abstraction" in software design?

A) Hiding unnecessary details and showing only essential features


B) Writing detailed documentation
C) Creating complex system models
D) Adding security features to the design
Answer: A) Hiding unnecessary details and showing only essential features

33. What is the purpose of a "component diagram" in UML?

A) To represent the user interface components


B) To show the system’s components and how they interact
C) To depict the system’s class hierarchy
D) To model user interactions
Answer: B) To show the system’s components and how they interact

34. Which of the following is an advantage of using object-oriented design?

A) Reduces the complexity of system testing


B) Encourages code reuse through inheritance
C) Eliminates the need for documentation
D) Makes code execution faster
Answer: B) Encourages code reuse through inheritance

35. In object-oriented design, what is a "class"?

A) A template for creating objects


B) A collection of related methods
C) A single instance of an object
D) A set of variables in memory
Answer: A) A template for creating objects

36. What is a "module" in software design?

A) A single function in the system


B) A collection of related classes or functions
C) A single line of code
D) A part of the system that performs a test
Answer: B) A collection of related classes or functions

37. What is a "deployment diagram" in UML used to model?

A) The deployment of components and their physical locations


B) The flow of control in the system
C) The user interface layout
D) The interactions between objects
Answer: A) The deployment of components and their physical locations

38. What does the term "design validation" refer to?

A) Ensuring that the software meets user requirements


B) Writing code based on the design
C) Conducting security testing
D) Verifying system architecture
Answer: A) Ensuring that the software meets user requirements

39. What is the purpose of "concurrent design" in software development?

A) To develop the system one module at a time


B) To allow multiple teams to design different parts of the system simultaneously
C) To test the system before starting development
D) To deploy the software quickly
Answer: B) To allow multiple teams to design different parts of the system simultaneously

40. What is the main focus of the "behavioral design" phase?

A) To define how the system will perform under load


B) To model the interactions between system components
C) To design the user interface
D) To write the source code
Answer: B) To model the interactions between system components

41. What is the purpose of "interface design" in software development?

A) To define how users interact with the system


B) To describe the architecture of the software
C) To plan the database schema
D) To write the system’s code
Answer: A) To define how users interact with the system

42. In software analysis, what is a "functional requirement"?

A) A description of system behavior


B) A non-technical description of the user interface
C) A requirement for system performance
D) A set of test cases
Answer: A) A description of system behavior

43. What is the difference between "user interface design" and "interaction
design"?

A) UI design focuses on the visual layout; interaction design focuses on user-system


communication
B) UI design is only about buttons, while interaction design is about coding
C) There is no difference
D) UI design focuses on data security
Answer: A) UI design focuses on the visual layout; interaction design focuses on user-
system communication

44. What is the first step in the software design process?

A) Code writing
B) Requirement gathering
C) Design validation
D) Prototyping
Answer: B) Requirement gathering

45. What is a "data dictionary" in software design?

A) A document describing data flow in the system


B) A repository of data definitions, including names, types, and relationships
C) A tool for visualizing data structures
D) A source code that manages data input
Answer: B) A repository of data definitions, including names, types, and relationships

46. What does the "SOLID" principle refer to in software design?

A) A set of design principles for creating clean, maintainable code


B) A system for creating modular code
C) A tool for designing UML diagrams
D) A method for testing system requirements
Answer: A) A set of design principles for creating clean, maintainable code

47. What does the "Single Responsibility Principle" (SRP) suggest?

A) A class should have only one reason to change


B) A class should have multiple roles
C) A system should have a single module
D) A class should have multiple properties
Answer: A) A class should have only one reason to change

48. In software design, what is a "database schema"?

A) A sequence of operations for data processing


B) The structure that defines how data is stored and accessed in a database
C) A method for validating database transactions
D) A code that retrieves data from a database
Answer: B) The structure that defines how data is stored and accessed in a database

49. What is the purpose of "risk analysis" in software design?

A) To evaluate potential issues that could impact the system's development or performance
B) To test the software for security vulnerabilities
C) To define the user interface
D) To create a project timeline
Answer: A) To evaluate potential issues that could impact the system's development or
performance

50. Which of the following is an example of a "system design" model?

A) Flowchart
B) User manual
C) Database schema
D) Test case
Answer: A) Flowchart
51. What is "modularization" in software design?

A) Breaking down a large system into smaller, independent components


B) The process of integrating different systems
C) Coding the software in multiple languages
D) Writing complex, interdependent code
Answer: A) Breaking down a large system into smaller, independent components

52. What is the role of the "interaction diagram" in software design?

A) To show the flow of data in the system


B) To model how objects communicate and interact
C) To represent the user interface
D) To create detailed system code
Answer: B) To model how objects communicate and interact

53. In object-oriented analysis, what is "polymorphism"?

A) The ability of objects to take on multiple forms


B) The process of defining multiple classes for the system
C) The ability to inherit properties from a parent class
D) The process of combining classes into one
Answer: A) The ability of objects to take on multiple forms

54. What is the purpose of "design by contract" in software engineering?

A) To ensure that system components behave according to predefined rules


B) To improve system performance
C) To validate user input
D) To test system interactions
Answer: A) To ensure that system components behave according to predefined rules

55. Which of the following describes "sequence diagrams" in software design?

A) Diagrams that depict how objects interact with each other over time
B) Diagrams that define the system's architecture
C) Diagrams that show how data is processed in the system
D) Diagrams that define system modules
Answer: A) Diagrams that depict how objects interact with each other over time

56. What is the purpose of "interface segregation" in software design?

A) To design a system with smaller, more focused interfaces


B) To create a single large interface for all system components
C) To allow direct communication between all modules
D) To prevent the use of object-oriented design
Answer: A) To design a system with smaller, more focused interfaces

57. What is a "unified modeling language" (UML) diagram used for?

A) To model and visualize the system’s design


B) To define the system's hardware
C) To test the system
D) To define the coding standard
Answer: A) To model and visualize the system’s design

58. What is the purpose of "testing" in the design phase?

A) To check if the software meets performance requirements


B) To check if the system is free of errors
C) To check if the system design meets the user’s needs
D) To review the source code
Answer: C) To check if the system design meets the user’s needs

59. What is "iteration" in software design?

A) A process of repeating a set of actions to refine and improve the system


B) A method for increasing system performance
C) A tool for managing project timelines
D) A code review process
Answer: A) A process of repeating a set of actions to refine and improve the system

60. What is the primary advantage of using "agile" methodologies in software


design?

A) Faster system testing


B) Continuous collaboration and iterative development
C) Detailed upfront design
D) Less documentation
Answer: B) Continuous collaboration and iterative development

TOPIC 3 : Flow Charts

1. What is the primary purpose of a flowchart in application development?

A) To represent data models


B) To represent the sequence of steps in a process or system
C) To create user interfaces
D) To store data in databases
Answer: B) To represent the sequence of steps in a process or system

2. Which symbol in a flowchart represents the start or end of a process?

A) Rectangle
B) Diamond
C) Oval
D) Parallelogram
Answer: C) Oval

3. What does a rectangle symbol represent in a flowchart?


A) A decision
B) A process or operation
C) Input or output
D) Start or end
Answer: B) A process or operation

4. Which flowchart symbol is used to represent a decision or branching point?

A) Oval
B) Rectangle
C) Diamond
D) Parallelogram
Answer: C) Diamond

5. In a flowchart, what does a parallelogram symbol represent?

A) Start or end
B) Process or operation
C) Decision or condition
D) Input or output
Answer: D) Input or output

6. What is the main advantage of using flowcharts in software development?

A) To improve system performance


B) To visualize and organize complex processes
C) To create user interface designs
D) To store data
Answer: B) To visualize and organize complex processes

7. What type of flowchart is used to represent a system that involves many


decision points and paths?

A) Simple flowchart
B) Hierarchical flowchart
C) Decision flowchart
D) Process flowchart
Answer: C) Decision flowchart

8. Which of the following is NOT typically represented in a flowchart?

A) Algorithmic steps
B) Program source code
C) Decision points
D) Process flow
Answer: B) Program source code

9. What is the first step in creating a flowchart for a process?

A) Drawing decision points


B) Identifying the start and end points
C) Adding the process steps
D) Defining the input and output
Answer: B) Identifying the start and end points

10. How are flowcharts used in debugging software applications?

A) To define the code logic


B) To visualize the program’s flow and identify errors
C) To design the user interface
D) To store logs of errors
Answer: B) To visualize the program’s flow and identify errors

11. What is a "loop" in the context of a flowchart?

A) A repetition of a process or decision


B) A single decision point
C) A rectangle representing an action
D) A process that cannot be repeated
Answer: A) A repetition of a process or decision

12. In flowcharting, what does the term "flow" refer to?

A) The input data


B) The sequence of actions or steps in the process
C) The output data
D) The decision-making process
Answer: B) The sequence of actions or steps in the process

13. What does an arrow symbolize in a flowchart?

A) Input
B) Process
C) Output
D) Direction of flow
Answer: D) Direction of flow

14. What does a "connector" symbol in a flowchart indicate?

A) The flow of data


B) A continuation of the flowchart on another page or section
C) A decision point
D) A process or operation
Answer: B) A continuation of the flowchart on another page or section

15. What does the "multiple outputs" situation in a flowchart typically


involve?

A) One decision point leading to multiple paths


B) Multiple processes occurring simultaneously
C) A loop that repeats indefinitely
D) The end of the process
Answer: A) One decision point leading to multiple paths
16. What does a flowchart help a developer understand during application
development?

A) How to write the source code


B) The logical flow of data and operations
C) How to design the user interface
D) How to create databases
Answer: B) The logical flow of data and operations

17. What is the benefit of using flowcharts for algorithm design?

A) It allows for easy visualization of the process and logic


B) It provides a detailed list of programming instructions
C) It defines the database schema
D) It generates code automatically
Answer: A) It allows for easy visualization of the process and logic

18. Which of the following is true about the flowcharting process?

A) It is mostly used to generate code directly


B) It simplifies complex systems into understandable visual representations
C) It focuses on designing user interfaces
D) It provides exact machine code
Answer: B) It simplifies complex systems into understandable visual representations

19. In a flowchart, what should be done if there are multiple paths after a
decision symbol?

A) Create a loop back to the decision point


B) Use a connector to merge paths
C) Use separate decision points for each path
D) Only use one path, ignoring the others
Answer: C) Use separate decision points for each path

20. When should a flowchart be updated during the development process?

A) Only after the entire application is complete


B) When changes are made to the logic or steps of the process
C) When the code is finalized
D) When the database schema is defined
Answer: B) When changes are made to the logic or steps of the process

21. Which of the following symbols is used in a flowchart to represent a sub-


process?

A) Circle
B) Rectangle
C) Diamond
D) Double rectangle
Answer: D) Double rectangle

22. How do flowcharts help in improving the efficiency of an application?


A) By speeding up the coding process
B) By identifying redundant processes and streamlining the flow
C) By generating test cases
D) By optimizing the database schema
Answer: B) By identifying redundant processes and streamlining the flow

23. Which of the following is NOT typically a part of a flowchart?

A) Actions
B) Decisions
C) Database schema
D) Inputs/Outputs
Answer: C) Database schema

24. What should be considered when designing a flowchart for a complex


system?

A) The system’s user interface


B) The sequence of operations, inputs, and decision points
C) The machine code that will execute
D) The database structure
Answer: B) The sequence of operations, inputs, and decision points

25. How can a flowchart be used to represent a recursive function?

A) By drawing a loop that repeats until a condition is met


B) By using a decision symbol only
C) By splitting the flowchart into multiple sections
D) By representing it as a sub-process
Answer: A) By drawing a loop that repeats until a condition is met

26. What is an advantage of using flowcharts during the software design


phase?

A) It helps identify system requirements


B) It automates the coding process
C) It provides a clear visual representation of the workflow
D) It generates user documentation
Answer: C) It provides a clear visual representation of the workflow

27. What does a flowchart help identify in an application process?

A) The hardware requirements


B) The input and output interfaces
C) The optimal sequence of operations
D) The programming language used
Answer: C) The optimal sequence of operations

28. In a flowchart, what is the purpose of the "return" symbol?

A) To signify the end of a process


B) To loop back to the beginning of the process
C) To show an external process or system interaction
D) To represent a conditional check
Answer: B) To loop back to the beginning of the process

29. What is the role of the "end" symbol in a flowchart?

A) To indicate that a process is repeated


B) To represent input or output
C) To show the conclusion of a process or task
D) To indicate a decision point
Answer: C) To show the conclusion of a process or task

30. How are flowcharts useful in communication between team members?

A) By showing the database design


B) By providing a clear visual structure for discussing processes and logic
C) By automating code generation
D) By defining user interfaces
Answer: B) By providing a clear visual structure for discussing processes and logic

31. What is the advantage of breaking down a flowchart into sub-processes?

A) It increases the complexity of the system


B) It allows for easier management and debugging
C) It eliminates the need for testing
D) It decreases the efficiency of the process
Answer: B) It allows for easier management and debugging

32. What is the purpose of a flowchart in documenting a process?

A) To automate the documentation generation


B) To serve as a visual record of the process for future reference
C) To define the system architecture
D) To store input/output data
Answer: B) To serve as a visual record of the process for future reference

33. In a flowchart, what does the symbol for a "delay" represent?

A) A decision point
B) A process that takes time to complete
C) A looping operation
D) A start or end point
Answer: B) A process that takes time to complete

34. What is a common mistake to avoid when drawing a flowchart?

A) Overcomplicating the flowchart with unnecessary details


B) Using too few decision points
C) Using too many symbols
D) Making the flowchart too simple
Answer: A) Overcomplicating the flowchart with unnecessary details
35. What should you do if a process in a flowchart becomes too complicated?

A) Add more decision symbols


B) Split the flowchart into smaller sub-processes
C) Remove the decision points
D) Simplify the steps by removing details
Answer: B) Split the flowchart into smaller sub-processes

36. What does a "nested decision" in a flowchart refer to?

A) A decision point that leads to multiple branches


B) A decision point inside another decision point
C) A decision that leads to a sub-process
D) A loop that repeats indefinitely
Answer: B) A decision point inside another decision point

37. What is the role of a flowchart in system testing?

A) It helps write test cases for the application


B) It documents the system architecture
C) It helps visualize the expected flow of data and processes
D) It generates input data for testing
Answer: C) It helps visualize the expected flow of data and processes

38. How does flowcharting help with debugging?

A) By automating error detection


B) By allowing programmers to trace the flow of the process and pinpoint issues
C) By storing error logs
D) By generating unit tests
Answer: B) By allowing programmers to trace the flow of the process and pinpoint issues

39. Which of the following is NOT a common symbol used in flowcharts?

A) Process
B) Decision
C) Error
D) Input/Output
Answer: C) Error

40. What is an example of a process that could be represented in a flowchart?

A) Sorting a list of numbers


B) Writing the code
C) Storing data in a database
D) Creating a user interface
Answer: A) Sorting a list of numbers

41. How can flowcharts assist in training new team members?

A) By providing code examples


B) By offering visual explanations of processes
C) By automating task delegation
D) By writing test cases
Answer: B) By offering visual explanations of processes

42. What is a common flowcharting mistake to avoid?

A) Overusing symbols
B) Leaving out decision points
C) Making the chart too complex
D) Adding too many sub-processes
Answer: C) Making the chart too complex

43. When should you use flowcharts in the software development lifecycle?

A) Only during the testing phase


B) Only after coding is complete
C) During both the design and development phases
D) Only in the requirements gathering phase
Answer: C) During both the design and development phases

44. What does the "arrow" symbol represent in a flowchart?

A) Start or end of the process


B) Process or operation
C) Direction of flow or sequence
D) Input/output
Answer: C) Direction of flow or sequence

45. Which of the following should NOT be included in a flowchart?

A) Algorithmic steps
B) Start and end points
C) Comments and annotations
D) Code snippets
Answer: D) Code snippets

46. In a flowchart, what does a "merge" symbol represent?

A) A process that ends


B) Two separate paths coming together
C) A decision point
D) An external process
Answer: B) Two separate paths coming together

47. What can a flowchart be used for besides software design?

A) Writing machine code


B) Describing hardware architecture
C) Documenting business processes
D) Generating user interfaces
Answer: C) Documenting business processes
48. Which is true about the flowchart's role in process optimization?

A) It automates code generation


B) It highlights potential bottlenecks and inefficiencies
C) It stores data flow
D) It focuses solely on user input
Answer: B) It highlights potential bottlenecks and inefficiencies

49. How can flowcharts be used in project management?

A) By detailing system architecture


B) By outlining project timelines and task sequences
C) By generating test cases
D) By automating project tasks
Answer: B) By outlining project timelines and task sequences

50. What is an essential characteristic of a well-designed flowchart?

A) It includes unnecessary details


B) It is easy to understand and follow
C) It uses complex symbols
D) It is lengthy and detailed
Answer: B) It is easy to understand and follow

TOPIC 4: DFD
1. What does a Data Flow Diagram (DFD) represent in application
development?

A) The structure of the database


B) The flow of data through a system
C) The design of the user interface
D) The programming logic
Answer: B) The flow of data through a system

2. In a DFD, what does a process represent?

A) A source of data
B) A data storage mechanism
C) A transformation of input data into output
D) A flow of data between systems
Answer: C) A transformation of input data into output

3. Which symbol in a DFD represents a data store?

A) Rectangle
B) Circle
C) Parallel lines
D) Arrow
Answer: C) Parallel lines
4. What does an arrow in a DFD signify?

A) A data store
B) A decision point
C) A flow of data between processes
D) A process
Answer: C) A flow of data between processes

5. What is the highest level of abstraction in a Data Flow Diagram called?

A) Level 1 DFD
B) Context diagram
C) Level 2 DFD
D) Process diagram
Answer: B) Context diagram

6. Which of the following is NOT typically represented in a Data Flow


Diagram (DFD)?

A) Data processes
B) Data storage
C) Data flow
D) Code logic
Answer: D) Code logic

7. In a Data Flow Diagram, how is external data or an entity represented?

A) Using a circle
B) Using an arrow
C) Using a rectangle
D) Using parallel lines
Answer: C) Using a rectangle

8. In DFDs, what do "data stores" represent?

A) Input sources
B) Outputs of processes
C) Repositories of data stored for later use
D) Interfaces between systems
Answer: C) Repositories of data stored for later use

9. What is the primary purpose of using Data Flow Diagrams in system


design?

A) To define the system’s architecture


B) To depict the flow of data and processes in the system
C) To generate the code automatically
D) To document the user interface
Answer: B) To depict the flow of data and processes in the system

10. How does a DFD help during the system development phase?
A) It generates code
B) It helps document system architecture
C) It allows the team to visualize how data flows through the system
D) It defines the database schema
Answer: C) It allows the team to visualize how data flows through the system

11. What is the main difference between a Level 0 and Level 1 DFD?

A) Level 0 is a more detailed diagram


B) Level 1 focuses on processes, and Level 0 represents the overall system
C) Level 0 is used for debugging, and Level 1 is used for design
D) Level 1 contains external entities, while Level 0 does not
Answer: B) Level 1 focuses on processes, and Level 0 represents the overall system

12. What is represented by a "balancing" process in DFDs?

A) The consistency between the context diagram and Level 1 DFD


B) The ability to change processes
C) The data flow between processes at different levels
D) The flow of data across multiple systems
Answer: A) The consistency between the context diagram and Level 1 DFD

13. Which of the following symbols is used in a DFD to represent a process?

A) Square
B) Rectangle
C) Circle or oval
D) Parallelogram
Answer: C) Circle or oval

14. In a DFD, what type of relationship is represented by an arrow?

A) Data flow between processes


B) A data storage process
C) A control flow
D) A decision point
Answer: A) Data flow between processes

15. How is a data store depicted in a Level 1 DFD?

A) As a circle
B) As a rectangle
C) As a set of parallel lines
D) As an arrow
Answer: C) As a set of parallel lines

16. What is the relationship between DFDs and business processes?

A) DFDs represent the hardware setup of the business


B) DFDs model the flow of data in business processes
C) DFDs are used to design the company's organizational chart
D) DFDs are used to create the marketing strategy
Answer: B) DFDs model the flow of data in business processes

17. Which of the following DFD levels shows the most detailed level of data
flows?

A) Level 0
B) Level 1
C) Level 2
D) Context diagram
Answer: C) Level 2

18. What is the purpose of "decomposition" in DFD creation?

A) To break down complex processes into smaller, more manageable components


B) To combine multiple systems into one
C) To integrate hardware into the system
D) To remove unnecessary data
Answer: A) To break down complex processes into smaller, more manageable components

19. Which symbol in a DFD represents external entities (e.g., users, external
systems)?

A) Rectangle
B) Oval
C) Parallelogram
D) Circle
Answer: A) Rectangle

20. Which type of diagram is the first step in creating a DFD?

A) Flowchart
B) Context diagram
C) UML diagram
D) Sequence diagram
Answer: B) Context diagram

21. How can data flow between processes be described in a DFD?

A) Data flows are represented as arrows connecting the processes


B) Data flows are not represented in DFDs
C) Data flows are represented as rectangles
D) Data flows are shown as circles inside processes
Answer: A) Data flows are represented as arrows connecting the processes

22. What does a "process" in a DFD do?

A) It stores data
B) It transforms input data into output data
C) It defines data flow rules
D) It generates external data
Answer: B) It transforms input data into output data
23. What is the purpose of creating a DFD at different levels (Level 0, Level 1,
etc.)?

A) To represent the system at various levels of detail


B) To represent the system’s design and code
C) To document the user interface design
D) To show the system architecture
Answer: A) To represent the system at various levels of detail

24. What should be avoided when creating a DFD?

A) Including too many levels of detail


B) Including data flow arrows
C) Including external entities
D) Using process decomposition
Answer: A) Including too many levels of detail

25. How does a Level 2 DFD differ from a Level 1 DFD?

A) Level 2 is more abstract, showing only high-level processes


B) Level 2 shows processes in more detail, breaking them down further
C) Level 2 uses fewer processes than Level 1
D) Level 2 focuses only on data storage
Answer: B) Level 2 shows processes in more detail, breaking them down further

26. Which of the following is NOT a valid DFD symbol?

A) Process symbol (circle)


B) Data store (parallel lines)
C) External entity (rectangle)
D) Decision symbol (diamond)
Answer: D) Decision symbol (diamond)

27. What type of system can be modeled using DFDs?

A) Only large enterprise systems


B) Any system that processes and stores data
C) Only hardware components
D) Only user interfaces
Answer: B) Any system that processes and stores data

28. What is a key characteristic of a "context diagram" in DFDs?

A) It is the highest level and shows only the overall system with external entities
B) It shows detailed internal processes
C) It includes multiple levels of processes and data flow
D) It defines all the database structures
Answer: A) It is the highest level and shows only the overall system with external entities

29. In a DFD, what is the meaning of a double line around a process symbol?
A) The process is external to the system
B) The process is critical and must be executed
C) The process represents a stored data item
D) The process is being decomposed into sub-processes
Answer: D) The process is being decomposed into sub-processes

30. How does a DFD help in understanding system requirements?

A) By showing the system's hardware setup


B) By visualizing the flow of data and interactions between components
C) By documenting all the user interface designs
D) By automatically generating code
Answer: B) By visualizing the flow of data and interactions between components

31. Which of the following is an example of an external entity in a DFD?

A) A database
B) A process
C) A user or external system interacting with the system
D) A data flow
Answer: C) A user or external system interacting with the system

32. What does a data store in a DFD typically represent?

A) A collection of data entries from external sources


B) A place where data is processed
C) A system's temporary working data storage
D) A transformation of data
Answer: C) A system's temporary working data storage

33. When is a DFD considered balanced?

A) When it has multiple processes


B) When the input and output data flows are consistent between levels
C) When it shows both external and internal data flows
D) When it has no data stores
Answer: B) When the input and output data flows are consistent between levels

34. What is the role of an external entity in a DFD?

A) It processes data
B) It stores data
C) It represents a source or destination of data outside the system
D) It creates data flows between processes
Answer: C) It represents a source or destination of data outside the system

35. In a DFD, what is the function of data flow arrows?

A) To represent decision points


B) To show the direction and movement of data between processes and entities
C) To indicate the end of the process
D) To show the processes being performed
Answer: B) To show the direction and movement of data between processes and entities

36. What should a DFD avoid representing?

A) User interaction
B) Software design
C) System performance
D) Detailed process flow control logic
Answer: D) Detailed process flow control logic

37. What level of DFD would typically represent user interactions with a
system?

A) Context diagram
B) Level 1
C) Level 2
D) Detailed data flow diagram
Answer: A) Context diagram

38. Which of the following represents an external data flow in a DFD?

A) Data flow from one process to another


B) Data flow from an external entity to the system
C) Data stored in a database
D) Data within a sub-process
Answer: B) Data flow from an external entity to the system

39. What should be done if a process in a DFD is too complex?

A) Add more entities


B) Remove data stores
C) Decompose it into sub-processes
D) Use less data flow arrows
Answer: C) Decompose it into sub-processes

40. How do DFDs help with system documentation?

A) They show detailed algorithms


B) They provide an easy-to-understand representation of data flow and processes
C) They replace the need for flowcharts
D) They generate the system’s documentation automatically
Answer: B) They provide an easy-to-understand representation of data flow and processes

41. Which DFD level is the least abstract and provides the most detail about
processes?

A) Level 0
B) Context diagram
C) Level 1
D) Level 2
Answer: D) Level 2
42. What is an important aspect of DFD design?

A) Keeping the diagram as simple and clear as possible


B) Representing all processes with detailed code
C) Ensuring data stores are not used
D) Avoiding any external entities
Answer: A) Keeping the diagram as simple and clear as possible

43. What does a "leveled" DFD mean?

A) The diagram includes multiple processes


B) The DFD is broken down into multiple hierarchical levels of detail
C) The diagram only includes the system’s inputs and outputs
D) The diagram only shows high-level systems
Answer: B) The DFD is broken down into multiple hierarchical levels of detail

44. What does a Data Flow Diagram help identify in the system design phase?

A) The flow of control between processes


B) The physical hardware setup
C) The flow of data and necessary transformations
D) The logic for handling errors
Answer: C) The flow of data and necessary transformations

45. Which of the following is a characteristic of a "Context Diagram"?

A) It includes only the external entities and data flows of the system
B) It includes detailed processes and data flows
C) It includes low-level data stores
D) It focuses only on database interactions
Answer: A) It includes only the external entities and data flows of the system

46. Which symbol in a DFD represents a data flow?

A) A rectangle
B) A circle
C) An arrow
D) A parallelogram
Answer: C) An arrow

47. When should a DFD be used in the application development process?

A) Only after coding is complete


B) During the requirements gathering and system design phases
C) Only during the testing phase
D) During hardware installation
Answer: B) During the requirements gathering and system design phases

48. What is a major benefit of using DFDs?

A) They simplify the coding process


B) They provide a graphical view of how the system operates in terms of data flow
C) They replace the need for testing
D) They automate the generation of algorithms
Answer: B) They provide a graphical view of how the system operates in terms of data flow

49. What kind of system can be best visualized using DFDs?

A) A hardware-based system
B) A simple text processing application
C) A system where data flow and transformation are key components
D) A system that does not require data storage
Answer: C) A system where data flow and transformation are key components

50. How can a DFD be used to improve system efficiency?

A) By highlighting unnecessary processes and redundant data flows


B) By automating the system's code generation
C) By reducing the need for external entities
D) By adding complex decision points
Answer: A) By highlighting unnecessary processes and redundant data flows

TOPIC 5 : Concepts of OOPS


1. Which of the following is a key concept of Object-Oriented Programming?

A) Polymorphism
B) Data abstraction
C) Encapsulation
D) All of the above
Answer: D) All of the above

2. What does OOP stand for?

A) Object Overload Programming


B) Object-Oriented Programming
C) Object-Oriented Process
D) Operational Object Programming
Answer: B) Object-Oriented Programming

3. What is the primary purpose of encapsulation in OOP?

A) To hide the implementation details and protect data


B) To allow the program to run faster
C) To make code reusable
D) To provide a single point of access
Answer: A) To hide the implementation details and protect data

4. Which concept is used to represent real-world objects in OOP?

A) Variables
B) Methods
C) Classes and Objects
D) Functions
Answer: C) Classes and Objects

5. Which of the following is an example of inheritance in OOP?

A) A child class inheriting properties from a parent class


B) An object calling methods from another object
C) A class containing both variables and functions
D) A method accessing data from a class
Answer: A) A child class inheriting properties from a parent class

6. Which keyword is used to define a class in Java?

A) function
B) class
C) method
D) object
Answer: B) class

7. What is polymorphism in OOP?

A) The ability to create multiple classes


B) The ability to overload operators
C) The ability of different objects to respond to the same method in different ways
D) The ability to define different data types
Answer: C) The ability of different objects to respond to the same method in different ways

8. Which of the following is true about abstraction in OOP?

A) It hides unnecessary implementation details from the user


B) It refers to the process of combining attributes and behavior
C) It allows a method to work with any data type
D) It creates a relationship between classes
Answer: A) It hides unnecessary implementation details from the user

9. What does the term "method overloading" mean in OOP?

A) Using the same method name with a different number or type of parameters
B) Changing the method's return type
C) Changing the class structure
D) Using a different name for a method
Answer: A) Using the same method name with a different number or type of parameters

10. What is the significance of the super keyword in Java?

A) It defines a method in the subclass


B) It is used to call a constructor from the superclass
C) It defines an interface in the superclass
D) It accesses private members of a class
Answer: B) It is used to call a constructor from the superclass
11. Which OOP principle allows a class to derive properties and behavior
from another class?

A) Encapsulation
B) Polymorphism
C) Inheritance
D) Abstraction
Answer: C) Inheritance

12. Which of the following best defines an object in OOP?

A) A blueprint for creating classes


B) A collection of methods
C) An instance of a class containing data and behavior
D) A function that manipulates data
Answer: C) An instance of a class containing data and behavior

13. Which of the following concepts is used to restrict direct access to an


object’s attributes in OOP?

A) Inheritance
B) Encapsulation
C) Polymorphism
D) Abstraction
Answer: B) Encapsulation

14. What is the purpose of a constructor in OOP?

A) To initialize an object when it is created


B) To delete an object when it is no longer needed
C) To define the object’s methods
D) To inherit properties from the superclass
Answer: A) To initialize an object when it is created

15. What is the main characteristic of polymorphism in OOP?

A) Multiple objects having the same properties


B) Objects of different types responding to the same method
C) The ability of a class to inherit from multiple classes
D) The creation of multiple constructors in a class
Answer: B) Objects of different types responding to the same method

16. Which of the following is the correct syntax to inherit a class in Java?

A) class Child extends Parent


B) class Child inherits Parent
C) class Child implements Parent
D) class Child : Parent
Answer: A) class Child extends Parent

17. In OOP, what is the relationship between a class and an object?


A) A class is an instance of an object
B) An object is an instance of a class
C) A class contains methods, and an object contains attributes
D) An object is a blueprint for creating classes
Answer: B) An object is an instance of a class

18. What does method overriding allow in OOP?

A) A subclass to provide a specific implementation for a method that is already defined in its
superclass
B) A method to be called without any arguments
C) A subclass to inherit methods from multiple classes
D) A method to be inherited by other classes
Answer: A) A subclass to provide a specific implementation for a method that is already
defined in its superclass

19. Which of the following is an example of an abstract class?

A) A class that cannot be instantiated directly


B) A class that contains only methods
C) A class that defines concrete methods only
D) A class with all private methods
Answer: A) A class that cannot be instantiated directly

20. Which of the following is NOT a feature of object-oriented programming?

A) Inheritance
B) Encapsulation
C) Function pointers
D) Polymorphism
Answer: C) Function pointers

21. Which of the following OOP principles is used to define a clear interface
while hiding internal workings?

A) Polymorphism
B) Encapsulation
C) Inheritance
D) Abstraction
Answer: D) Abstraction

22. What is an interface in OOP?

A) A blueprint for methods that a class must implement


B) A way to define variables for a class
C) A function that interacts with objects
D) A type of object used for inheritance
Answer: A) A blueprint for methods that a class must implement

23. What is the difference between a class and a structure in OOP?


A) A class can have private members, whereas a structure cannot
B) A class is used to store data only, while a structure defines behavior
C) A structure is an instance of a class
D) A class is not a blueprint, but a structure is
Answer: A) A class can have private members, whereas a structure cannot

24. What happens if an object of an abstract class is instantiated in OOP?

A) The program will compile without errors


B) An error will occur at runtime
C) The abstract class will automatically be converted to a concrete class
D) The abstract class will be ignored during instantiation
Answer: B) An error will occur at runtime

25. Which of the following is an example of method overloading?

A) Defining two methods with the same name but different parameter types
B) Defining two methods with the same name and parameters
C) Calling a method with different return types
D) Calling a method inside itself
Answer: A) Defining two methods with the same name but different parameter types

26. What does the term "dynamic binding" refer to in OOP?

A) The binding of a method call to a class at compile time


B) The binding of a method call to a class at runtime
C) The process of creating new instances of objects
D) The process of storing objects in memory
Answer: B) The binding of a method call to a class at runtime

27. What is the purpose of the keyword in Java?

A) It refers to the current object


B) It is used to define the constructor
C) It calls a superclass constructor
D) It creates a new object
Answer: A) It refers to the current object

28. What is an example of a constructor in OOP?

A) A method that initializes an object


B) A method that defines a class’s behavior
C) A method that assigns values to attributes
D) A method that creates new instances of a class
Answer: A) A method that initializes an object

29. What is the main difference between an interface and an abstract class?

A) An interface can contain method implementations, while an abstract class cannot


B) An interface can only define abstract methods, while an abstract class can have both
abstract and concrete methods
C) An interface can inherit other interfaces, while an abstract class cannot
D) An abstract class is more efficient than an interface
Answer: B) An interface can only define abstract methods, while an abstract class can have
both abstract and concrete methods

30. In OOP, what does the term "message passing" mean?

A) Sending data from one object to another


B) Calling a function to perform a task
C) Passing control to the superclass
D) Creating new objects
Answer: A) Sending data from one object to another

31. What does the term "access modifier" refer to in OOP?

A) It defines the visibility of a class or its members


B) It controls the performance of the class
C) It is used to change the return type of a method
D) It defines the methods in a class
Answer: A) It defines the visibility of a class or its members

32. Which of the following is true about a static method in OOP?

A) It can be accessed without creating an instance of the class


B) It can only be called within the constructor
C) It can only access instance variables
D) It can override instance methods
Answer: A) It can be accessed without creating an instance of the class

33. Which of the following is NOT a benefit of using OOP?

A) Code reusability
B) Code maintainability
C) Improved performance
D) Code organization
Answer: C) Improved performance

34. Which of the following is an example of a data abstraction technique in


OOP?

A) Using private fields and public getter/setter methods


B) Inheriting properties from a superclass
C) Overloading methods with different parameters
D) Using multiple interfaces in a class
Answer: A) Using private fields and public getter/setter methods

35. What is the main advantage of inheritance in OOP?

A) It allows the creation of a new object


B) It provides the ability to reuse code from existing classes
C) It creates multiple copies of the same object
D) It eliminates the need for constructors
Answer: B) It provides the ability to reuse code from existing classes
36. Which of the following is true about multiple inheritance in OOP?

A) A class can inherit from more than one class


B) A class can inherit from only one class
C) Multiple inheritance is supported directly in Java
D) A class can inherit from multiple interfaces but only one class
Answer: D) A class can inherit from multiple interfaces but only one class

37. What does the final keyword indicate in Java?

A) A method cannot be overridden


B) A class cannot be inherited
C) A variable cannot be reassigned
D) All of the above
Answer: D) All of the above

38. What is the relationship between a superclass and subclass in inheritance?

A) A subclass inherits the properties and methods of the superclass


B) A superclass inherits the properties and methods of the subclass
C) A subclass and superclass cannot share methods
D) A superclass defines new methods for the subclass
Answer: A) A subclass inherits the properties and methods of the superclass

39. Which of the following is a feature of polymorphism in OOP?

A) Different objects can share the same method name


B) Methods can have different names in subclasses
C) Only one class can implement polymorphism
D) Objects can interact with each other through different classes
Answer: A) Different objects can share the same method name

40. What does the term "constructor overloading" mean?

A) Defining multiple constructors in the same class with different parameters


B) Using the same constructor with different class names
C) Calling a constructor from another constructor
D) Reusing constructors from other classes
Answer: A) Defining multiple constructors in the same class with different parameters

41. Which OOP concept does method overriding implement?

A) Inheritance
B) Polymorphism
C) Encapsulation
D) Abstraction
Answer: B) Polymorphism

42. What is the purpose of a destructor in OOP?

A) It initializes an object when it is created


B) It cleans up the resources used by an object when it is destroyed
C) It defines the behavior of a method
D) It constructs a new instance of a class
Answer: B) It cleans up the resources used by an object when it is destroyed

43. What is the role of an abstract class?

A) It can be instantiated directly


B) It provides a common template for other classes
C) It cannot contain abstract methods
D) It defines both abstract and concrete methods only
Answer: B) It provides a common template for other classes

44. Which of the following is a valid reason to use polymorphism?

A) To create multiple copies of an object


B) To allow methods to behave differently based on the object calling them
C) To limit the number of classes
D) To hide the internal details of a class
Answer: B) To allow methods to behave differently based on the object calling them

45. What is the primary function of an interface in Java?

A) To provide a base for object inheritance


B) To define a contract for what a class can do without specifying how it is done
C) To store data for a class
D) To prevent a class from being inherited
Answer: B) To define a contract for what a class can do without specifying how it is done

46. What is the advantage of using method overloading in OOP?

A) It allows methods to have different names in different classes


B) It reduces the complexity of calling methods with different arguments
C) It ensures methods can only be called once
D) It provides dynamic method binding
Answer: B) It reduces the complexity of calling methods with different arguments

47. Which of the following is a disadvantage of inheritance in OOP?

A) It creates too many child classes


B) It can result in tight coupling between classes
C) It hides the internal workings of a class
D) It simplifies object creation
Answer: B) It can result in tight coupling between classes

48. What is meant by the term "tight coupling" in OOP?

A) The relationship between classes that are highly dependent on each other
B) The relationship between classes that are loosely dependent on each other
C) The behavior of a class that is independent of other classes
D) The method by which classes inherit from each other
Answer: A) The relationship between classes that are highly dependent on each other
49. What is an example of encapsulation in OOP?

A) Creating a method with the same name in a subclass


B) Hiding the data by making attributes private and providing public getter and setter
methods
C) Overriding a method to change its behavior
D) Using multiple classes to represent different concepts
Answer: B) Hiding the data by making attributes private and providing public getter and
setter methods

50. Which of the following is an important characteristic of OOP?

A) Code duplication
B) Procedural function calls
C) Object reuse and modularity
D) Lack of data protection
Answer: C) Object reuse and modularity

TOPIC 6 : Software Change Management


1. Which of the following is NOT a client-side scripting language?

A) JavaScript
B) HTML
C) CSS
D) PHP
Answer: D) PHP

2. What does HTTP stand for in web development?

A) HyperText Transmission Protocol


B) HyperText Transfer Protocol
C) Hyper Transfer Text Protocol
D) HyperText Terminal Protocol
Answer: B) HyperText Transfer Protocol

3. Which of the following is the correct HTML element for inserting a line
break?

A) <br>
B) <hr>
C) <lb>
D) <break>
Answer: A) <br>

4. What is the main purpose of CSS in web development?

A) To define the structure of a webpage


B) To add interactivity to a webpage
C) To apply styles and formatting to a webpage
D) To handle server-side logic
Answer: C) To apply styles and formatting to a webpage

5. Which of the following technologies is used for creating dynamic web


pages?

A) HTML
B) CSS
C) JavaScript
D) FTP
Answer: C) JavaScript

6. Which of the following methods is used to send form data in HTML?

A) POST
B) GET
C) PUT
D) Both A and B
Answer: D) Both A and B

7. What does the acronym AJAX stand for?

A) Asynchronous JavaScript and XML


B) Asynchronous JavaScript and XSLT
C) Active JavaScript and XML
D) Active JavaScript and XSLT
Answer: A) Asynchronous JavaScript and XML

8. What is the purpose of the DOCTYPE declaration in an HTML document?

A) To declare the document type and version of HTML


B) To define the title of the webpage
C) To specify the character encoding of the page
D) To create a navigation menu
Answer: A) To declare the document type and version of HTML

9. Which of the following is a JavaScript framework?

A) AngularJS
B) Bootstrap
C) Django
D) Flask
Answer: A) AngularJS

10. Which tag is used to create a hyperlink in HTML?

A) <hyperlink>
B) <link>
C) <a>
D) <href>
Answer: C) <a>
11. What is the function of the GET method in an HTTP request?

A) To submit data to the server


B) To request data from the server
C) To update data on the server
D) To delete data from the server
Answer: B) To request data from the server

12. Which of the following is used to style web pages in CSS?

A) Classes
B) IDs
C) Inline styles
D) All of the above
Answer: D) All of the above

13. Which of the following is the correct syntax for adding an image in
HTML?

A) <image src="url" alt="description">


B) <img src="url" alt="description">
C) <img href="url" alt="description">
D) <image href="url" alt="description">
Answer: B) <img src="url" alt="description">

14. What is the use of cookies in web applications?

A) To store user data on the client side


B) To store server-side data
C) To encrypt user data
D) To manage web server sessions
Answer: A) To store user data on the client side

15. Which of the following is a backend technology used in web development?

A) [Link]
B) React
C) Bootstrap
D) HTML
Answer: A) [Link]

16. Which HTTP method is used to update an existing resource on the server?

A) POST
B) PUT
C) GET
D) DELETE
Answer: B) PUT

17. Which of the following is NOT a type of SQL join?


A) INNER JOIN
B) LEFT JOIN
C) RIGHT JOIN
D) REWRITE JOIN
Answer: D) REWRITE JOIN

18. What is the purpose of the <form> tag in HTML?

A) To create a container for user input


B) To create a button on a webpage
C) To link an external CSS file
D) To embed multimedia elements
Answer: A) To create a container for user input

19. Which of the following is used to perform client-side validation in web


forms?

A) PHP
B) CSS
C) JavaScript
D) SQL
Answer: C) JavaScript

20. Which of the following is an example of a web server?

A) Apache
B) React
C) jQuery
D) Bootstrap
Answer: A) Apache

21. What is the primary function of a web browser?

A) To send requests to web servers


B) To host web pages
C) To create and store HTML files
D) To send email
Answer: A) To send requests to web servers

22. What does the acronym HTML stand for?

A) HyperText Markup Language


B) Hyper Transfer Markup Language
C) HomeText Markup Language
D) HyperLink Markup Language
Answer: A) HyperText Markup Language

23. Which HTML element is used to define a list of items?

A) <ol>
B) <li>
C) <ul>
D) Both A and C
Answer: D) Both A and C

24. What is the primary purpose of the sessionStorage in JavaScript?

A) To store data across multiple tabs in a browser


B) To store data for the duration of a page session
C) To store large amounts of data for offline use
D) To store data in a database
Answer: B) To store data for the duration of a page session

25. Which of the following technologies is used to manage databases in web


applications?

A) SQL
B) HTML
C) CSS
D) JavaScript
Answer: A) SQL

26. Which of the following is NOT a JavaScript event?

A) onClick
B) onSubmit
C) onHover
D) onLoad
Answer: C) onHover

27. What does a RESTful API allow a web application to do?

A) Query the database for data


B) Provide a standard way to interact with web services over HTTP
C) Create and manage sessions on the server
D) Handle user input on the client side
Answer: B) Provide a standard way to interact with web services over HTTP

28. What is the purpose of the meta tag in an HTML document?

A) To link to external CSS files


B) To define the character encoding and other metadata
C) To create hyperlinks
D) To define the content of the page
Answer: B) To define the character encoding and other metadata

29. Which of the following is the main purpose of using a Content


Management System (CMS)?

A) To manage and organize digital content for websites


B) To optimize the performance of web pages
C) To design the front-end layout of a website
D) To handle back-end database operations
Answer: A) To manage and organize digital content for websites
30. What is the function of the return statement in JavaScript?

A) It terminates the execution of the current function and returns a value


B) It creates a new function
C) It causes the page to reload
D) It links a JavaScript function to an HTML element
Answer: A) It terminates the execution of the current function and returns a value

31. What is the purpose of the div tag in HTML?

A) To create a table structure


B) To define a division or section in a webpage layout
C) To format text in paragraphs
D) To create a list of items
Answer: B) To define a division or section in a webpage layout

32. Which of the following is a tool used to create responsive web designs?

A) Bootstrap
B) [Link]
C) Django
D) jQuery
Answer: A) Bootstrap

33. What is the role of the localhost in web development?

A) It refers to the local server for testing web applications


B) It is the domain name for external web servers
C) It is used to send HTTP requests to a server
D) It refers to a content management system
Answer: A) It refers to the local server for testing web applications

34. Which of the following is true about APIs in web development?

A) They allow different software applications to communicate with each other


B) They are only used on the server side
C) They are only used in desktop applications
D) They are used to store user credentials
Answer: A) They allow different software applications to communicate with each other

35. What is the purpose of the action attribute in the <form> tag?

A) It defines where to send the form data


B) It defines the input type of the form fields
C) It applies the CSS styles to the form
D) It submits the form data
Answer: A) It defines where to send the form data

36. Which of the following is NOT a JavaScript library?

A) jQuery
B) React
C) Angular
D) CSS
Answer: D) CSS

37. What is the role of the $.ajax() function in jQuery?

A) It handles AJAX requests for asynchronous server communication


B) It creates a new DOM element
C) It validates form data
D) It manipulates CSS styles
Answer: A) It handles AJAX requests for asynchronous server communication

38. Which of the following is an advantage of using CSS Flexbox?

A) It allows for easier and more flexible layout design


B) It helps optimize JavaScript code
C) It improves database performance
D) It reduces HTTP request time
Answer: A) It allows for easier and more flexible layout design

39. Which method is used to attach an event handler in JavaScript?

A) addEventListener()
B) attachEvent()
C) onClick()
D) bindEvent()
Answer: A) addEventListener()

40. Which of the following is a valid URL?

A) [Link]
B) [Link]
C) www://example
D) www://[Link]
Answer: A) [Link]

41. What does a domain name represent in web development?

A) The physical address of the server hosting the website


B) A human-readable address for a website
C) The type of web application used
D) The code for generating web pages
Answer: B) A human-readable address for a website

42. What is the purpose of the href attribute in an HTML link?

A) To specify the link's destination URL


B) To define the text for the link
C) To style the link using CSS
D) To trigger JavaScript functions
Answer: A) To specify the link's destination URL
43. Which of the following is used to dynamically generate web pages?

A) SQL
B) JavaScript
C) HTML
D) CSS
Answer: B) JavaScript

44. Which HTTP status code indicates that the request was successful?

A) 200
B) 404
C) 500
D) 301
Answer: A) 200

45. What is the primary function of a web API?

A) To store user data securely


B) To facilitate communication between different software systems
C) To manage client-side data
D) To handle authentication requests
Answer: B) To facilitate communication between different software systems

46. Which of the following is a server-side language?

A) JavaScript
B) PHP
C) HTML
D) CSS
Answer: B) PHP

47. What is the purpose of using caching in web applications?

A) To store temporary data for faster access


B) To store data in the database
C) To handle client-side input validation
D) To apply styles to the web pages
Answer: A) To store temporary data for faster access

48. Which of the following is the best practice for securing a web application?

A) Using HTTPS for secure communication


B) Using weak passwords for testing
C) Allowing direct database access to clients
D) Storing sensitive data in cookies
Answer: A) Using HTTPS for secure communication

49. What is the purpose of the id attribute in HTML elements?

A) To style elements using CSS


B) To uniquely identify an element for JavaScript and CSS
C) To create links to external pages
D) To define an element's position on the page
Answer: B) To uniquely identify an element for JavaScript and CSS

50. What does the acronym CMS stand for?

A) Content Management System


B) Content Markup System
C) Client Management Software
D) Creative Media Server
Answer: A) Content Management System

TOPIC 8 : IDE TOOLS


1. What does IDE stand for in software development?

A) Integrated Development Environment


B) Integrated Data Environment
C) Intelligent Development Environment
D) Internal Development Environment
Answer: A) Integrated Development Environment

2. Which of the following is NOT a typical feature of an IDE?

A) Code editor
B) Debugger
C) Compiler
D) Database
Answer: D) Database

3. Which IDE is most commonly used for developing Java applications?

A) Visual Studio
B) Eclipse
C) PyCharm
D) IntelliJ IDEA
Answer: B) Eclipse

4. Which of the following is a popular IDE for Python development?

A) Xcode
B) PyCharm
C) NetBeans
D) Android Studio
Answer: B) PyCharm

5. Which of the following IDEs is designed for C# development?

A) NetBeans
B) IntelliJ IDEA
C) Visual Studio
D) Sublime Text
Answer: C) Visual Studio

6. Which feature of an IDE allows developers to automatically find and fix


errors in their code?

A) Code completion
B) Syntax highlighting
C) Debugger
D) Version control
Answer: C) Debugger

7. Which programming language is associated with the Xcode IDE?

A) C++
B) Swift
C) Java
D) Python
Answer: B) Swift

8. What is the main purpose of the "IntelliSense" feature in IDEs?

A) To automatically fix syntax errors


B) To provide suggestions and code completions
C) To run the program
D) To manage project dependencies
Answer: B) To provide suggestions and code completions

9. Which of the following is a feature of version control integrated into IDEs?

A) Debugging
B) Auto-completion
C) Git integration
D) Code formatting
Answer: C) Git integration

10. What is the function of the "Refactoring" tool in an IDE?

A) It helps debug the code


B) It helps in analyzing the code structure
C) It automatically optimizes the code for performance
D) It improves and reorganizes the code without changing its behavior
Answer: D) It improves and reorganizes the code without changing its behavior

11. Which of the following IDEs supports web development?

A) Visual Studio Code


B) Android Studio
C) Xcode
D) PyCharm
Answer: A) Visual Studio Code
12. Which feature allows the IDE to assist with error handling and
debugging?

A) Code suggestion
B) Debugger
C) Version control
D) Linter
Answer: B) Debugger

13. Which of the following is an example of a free and open-source IDE?

A) Visual Studio
B) Eclipse
C) Xcode
D) JetBrains Rider
Answer: B) Eclipse

14. What does the term "syntax highlighting" refer to in an IDE?

A) Identifying and fixing errors in the code


B) Automatically completing lines of code
C) Color-coding different elements of the code for readability
D) Formatting the code automatically
Answer: C) Color-coding different elements of the code for readability

15. What is the primary purpose of a debugger in an IDE?

A) To compile the code


B) To help the programmer step through the code line by line
C) To format the code automatically
D) To test the software
Answer: B) To help the programmer step through the code line by line

16. Which of the following IDEs is commonly used for web development?

A) PyCharm
B) Visual Studio Code
C) Eclipse
D) NetBeans
Answer: B) Visual Studio Code

17. Which programming language does Android Studio primarily support?

A) C++
B) Java
C) Kotlin
D) Both B and C
Answer: D) Both B and C

18. What is the purpose of "code completion" in an IDE?


A) To run the program
B) To suggest possible code completions as the developer types
C) To debug the program
D) To organize code comments
Answer: B) To suggest possible code completions as the developer types

19. What does the "build" feature do in an IDE?

A) It automatically tests the code


B) It compiles the code into an executable form
C) It refactors the code
D) It formats the code
Answer: B) It compiles the code into an executable form

20. Which IDE is known for its integration with cloud-based tools and
services?

A) NetBeans
B) Visual Studio Code
C) Eclipse
D) IntelliJ IDEA
Answer: B) Visual Studio Code

21. Which of the following features is common to most IDEs for managing
code dependencies?

A) Build systems
B) Project templates
C) Version control integration
D) Code folding
Answer: C) Version control integration

22. Which of the following IDEs is preferred for Java development?

A) Eclipse
B) Xcode
C) PyCharm
D) Android Studio
Answer: A) Eclipse

23. What is the "terminal" feature in an IDE used for?

A) Running terminal commands directly from the IDE


B) Generating graphical user interfaces
C) Running database queries
D) Viewing network activity
Answer: A) Running terminal commands directly from the IDE

24. Which IDE is commonly used for mobile app development for iOS?

A) NetBeans
B) Android Studio
C) Visual Studio
D) Xcode
Answer: D) Xcode

25. Which IDE is known for its support for Python development?

A) Eclipse
B) NetBeans
C) PyCharm
D) Visual Studio
Answer: C) PyCharm

26. What is the main advantage of using an IDE over a simple text editor for
coding?

A) Faster execution time


B) Ability to compile and run code directly
C) More complex code
D) No need for a compiler
Answer: B) Ability to compile and run code directly

27. Which of the following is NOT a feature of an IDE?

A) Integrated Debugger
B) Code Snippets
C) Code Folding
D) Web Hosting
Answer: D) Web Hosting

28. Which IDE is best known for its integration with Microsoft technologies?

A) PyCharm
B) IntelliJ IDEA
C) Visual Studio
D) Eclipse
Answer: C) Visual Studio

29. What is the primary purpose of "unit testing" in an IDE?

A) To measure the execution speed of the code


B) To validate that individual components of code work correctly
C) To refactor the code
D) To format the code
Answer: B) To validate that individual components of code work correctly

30. Which of the following IDEs is known for being lightweight and highly
customizable?

A) Sublime Text
B) Eclipse
C) Visual Studio
D) Xcode
Answer: A) Sublime Text

31. Which IDE is most often used for developing applications in the C
programming language?

A) Eclipse
B) Code::Blocks
C) Xcode
D) PyCharm
Answer: B) Code::Blocks

32. Which feature in an IDE helps to automatically detect and highlight errors
in the code?

A) Syntax highlighting
B) Auto-completion
C) Linter
D) Build system
Answer: C) Linter

33. Which IDE is designed primarily for developing applications for Android
devices?

A) Xcode
B) Android Studio
C) Visual Studio
D) PyCharm
Answer: B) Android Studio

34. Which of the following IDEs is a cross-platform tool, compatible with


Windows, macOS, and Linux?

A) Visual Studio
B) IntelliJ IDEA
C) Xcode
D) NetBeans
Answer: B) IntelliJ IDEA

35. What does the "debugger" feature in an IDE allow a developer to do?

A) Optimize the code


B) Identify and fix errors in the code by stepping through it
C) Automatically run unit tests
D) Format the code
Answer: B) Identify and fix errors in the code by stepping through it

36. What is a common use case for "code folding" in an IDE?

A) To hide unnecessary parts of the code to focus on the important sections


B) To format the code
C) To run unit tests
D) To enable autocomplete suggestions
Answer: A) To hide unnecessary parts of the code to focus on the important sections

37. Which of the following is a common feature for managing code versioning
in an IDE?

A) Git integration
B) Code generation
C) Database management
D) Memory profiling
Answer: A) Git integration

38. Which IDE is known for its "intelligent" code completion and suggestion
features?

A) Eclipse
B) Sublime Text
C) Visual Studio
D) IntelliJ IDEA
Answer: D) IntelliJ IDEA

39. What is the main function of an "integrated terminal" in an IDE?

A) To compile the code


B) To run command-line scripts directly from the IDE
C) To debug the code
D) To run the program
Answer: B) To run command-line scripts directly from the IDE

40. Which IDE is most popular for web development with JavaScript?

A) Visual Studio
B) NetBeans
C) Visual Studio Code
D) IntelliJ IDEA
Answer: C) Visual Studio Code

41. Which IDE is designed specifically for developing cross-platform mobile


apps using Flutter?

A) Eclipse
B) Visual Studio
C) Android Studio
D) IntelliJ IDEA
Answer: D) IntelliJ IDEA

42. What is the primary function of the "compiler" in an IDE?

A) To execute the code


B) To format the code
C) To convert source code into machine code
D) To debug the code
Answer: C) To convert source code into machine code

43. Which of the following IDEs is known for being lightweight and fast?

A) Eclipse
B) Sublime Text
C) Visual Studio
D) PyCharm
Answer: B) Sublime Text

44. Which IDE is used for developing Ruby applications?

A) RubyMine
B) IntelliJ IDEA
C) NetBeans
D) Eclipse
Answer: A) RubyMine

45. What is "code linting" in an IDE?

A) Automatically generating code


B) Analyzing the code for potential errors and style violations
C) Automatically fixing syntax errors
D) Compiling the code
Answer: B) Analyzing the code for potential errors and style violations

46. Which IDE is typically used for PHP development?

A) Visual Studio Code


B) NetBeans
C) PHPStorm
D) Xcode
Answer: C) PHPStorm

47. Which IDE is known for its seamless integration with Azure and other
Microsoft services?

A) Visual Studio Code


B) IntelliJ IDEA
C) NetBeans
D) Eclipse
Answer: A) Visual Studio Code

48. What is the purpose of the "project explorer" in an IDE?

A) To manage the application's version control


B) To display the structure of files and directories in a project
C) To run the code
D) To write the code
Answer: B) To display the structure of files and directories in a project
49. Which IDE supports the development of both Android and iOS
applications using the Xamarin framework?

A) Xcode
B) Visual Studio
C) IntelliJ IDEA
D) PyCharm
Answer: B) Visual Studio

50. What does the "refactoring" tool in an IDE help the developer do?

A) Automatically run unit tests


B) Automatically format the code
C) Improve and optimize the structure of the code
D) Fix errors in the code
Answer: C) Improve and optimize the structure of the code

TOPIC 9 : Reporting Tools


1. What is the primary purpose of reporting tools in business?

A) To generate financial transactions


B) To create graphical user interfaces
C) To analyze and present data in a readable format
D) To store large amounts of data
Answer: C) To analyze and present data in a readable format

2. Which of the following is a popular reporting tool used for business


intelligence?

A) Microsoft Word
B) Microsoft Excel
C) Tableau
D) Notepad
Answer: C) Tableau

3. What is the main benefit of using a reporting tool like Power BI?

A) It stores data securely


B) It helps in creating user interfaces
C) It provides powerful data visualization and reporting
D) It generates random reports
Answer: C) It provides powerful data visualization and reporting

4. Which reporting tool is widely used for creating ad-hoc reports in


enterprise systems?

A) SAP Crystal Reports


B) Microsoft Word
C) Google Sheets
D) Adobe Illustrator
Answer: A) SAP Crystal Reports

5. What type of report can be generated using a reporting tool like Crystal
Reports?

A) Summary reports
B) Detailed transactional reports
C) Performance dashboards
D) All of the above
Answer: D) All of the above

6. Which of the following is a feature of reporting tools?

A) Data extraction
B) Data analysis
C) Data visualization
D) All of the above
Answer: D) All of the above

7. What is the primary function of report filtering in reporting tools?

A) To change the layout of the report


B) To focus on specific data based on certain criteria
C) To add visual elements
D) To share reports with others
Answer: B) To focus on specific data based on certain criteria

8. Which of the following is an open-source reporting tool?

A) Google Analytics
B) Jaspersoft
C) Tableau
D) Microsoft Power BI
Answer: B) Jaspersoft

9. What is the role of dashboards in reporting tools?

A) To create static reports


B) To provide real-time data visualization for decision making
C) To format reports into tables
D) To filter data automatically
Answer: B) To provide real-time data visualization for decision making

10. Which feature of a reporting tool is used to generate a report periodically


or on a scheduled basis?

A) Ad-hoc reporting
B) Scheduled reporting
C) Data analysis
D) Report sharing
Answer: B) Scheduled reporting
11. Which of the following is a web-based reporting tool?

A) Microsoft Access
B) Google Data Studio
C) SAP Business Objects
D) IBM Cognos
Answer: B) Google Data Studio

12. What is a key advantage of using cloud-based reporting tools?

A) They require no installation


B) They are less secure
C) They work offline only
D) They are costly to use
Answer: A) They require no installation

13. Which report type is used to track trends over a period of time?

A) Historical reports
B) Transactional reports
C) Trend reports
D) Summary reports
Answer: C) Trend reports

14. What type of data does a reporting tool like Power BI connect to?

A) Static data
B) Only relational data
C) Both structured and unstructured data
D) Only unstructured data
Answer: C) Both structured and unstructured data

15. Which type of reporting tool would be most useful for generating financial
statements?

A) Performance reporting tools


B) Operational reporting tools
C) Financial reporting tools
D) Marketing reporting tools
Answer: C) Financial reporting tools

16. What does OLAP stand for in the context of reporting?

A) Online Analytical Processing


B) Online Application Programming
C) Operational Logistics and Analytics Processing
D) Online Analytics and Reporting
Answer: A) Online Analytical Processing

17. What feature allows users to drill down into data for more detailed
analysis in reporting tools?
A) Data sorting
B) Data visualization
C) Drill-through functionality
D) Data filtering
Answer: C) Drill-through functionality

18. Which of the following is an example of a BI tool that includes reporting


capabilities?

A) Excel
B) Google Analytics
C) QlikView
D) WordPress
Answer: C) QlikView

19. What type of report provides a summary of key performance indicators


(KPIs) for a business?

A) Detail report
B) Executive summary report
C) Operational report
D) Trend report
Answer: B) Executive summary report

20. What is the purpose of aggregating data in reporting tools?

A) To group data by a particular attribute for summarized views


B) To calculate trends in data over time
C) To filter out irrelevant data
D) To export data to other systems
Answer: A) To group data by a particular attribute for summarized views

21. Which feature allows you to visualize multiple data sets in a single report?

A) Multi-source reporting
B) Single-source reporting
C) Charting and graphing
D) Export functionality
Answer: A) Multi-source reporting

22. What is the significance of report scheduling in reporting tools?

A) It ensures reports are generated automatically at specified intervals


B) It sends reports only to the administrator
C) It allows users to modify the layout of the report
D) It tracks real-time data
Answer: A) It ensures reports are generated automatically at specified intervals

23. Which of the following reporting tools is typically used for enterprise-level
reporting?
A) Google Data Studio
B) Crystal Reports
C) Microsoft Excel
D) WordPress
Answer: B) Crystal Reports

24. In a reporting tool, what is meant by "drill-down"?

A) Aggregating data into categories


B) Expanding the data for more detailed information
C) Filtering data by certain conditions
D) Summarizing large sets of data
Answer: B) Expanding the data for more detailed information

25. What type of reports are used for monitoring the performance of
employees or systems?

A) Operational reports
B) Financial reports
C) Trend reports
D) HR reports
Answer: A) Operational reports

26. Which type of reporting tool would be used to create real-time


dashboards?

A) Power BI
B) Google Data Studio
C) Tableau
D) All of the above
Answer: D) All of the above

27. What is the benefit of using a self-service reporting tool?

A) It allows end-users to create reports without needing technical knowledge


B) It requires developers to create reports
C) It is used solely for creating presentations
D) It does not allow customization of reports
Answer: A) It allows end-users to create reports without needing technical knowledge

28. What is the function of "data filtering" in reporting tools?

A) It removes irrelevant data from reports


B) It adds new data sources to the report
C) It formats the report into a printable form
D) It schedules report generation
Answer: A) It removes irrelevant data from reports

29. Which of the following is an example of a business intelligence reporting


tool?
A) QuickBooks
B) Tableau
C) Google Sheets
D) Photoshop
Answer: B) Tableau

30. Which reporting tool is best suited for advanced data analysis and
reporting in complex environments?

A) Excel
B) QlikView
C) Google Data Studio
D) Crystal Reports
Answer: B) QlikView

31. What does the acronym KPI stand for in reporting tools?

A) Knowledge Processing Interface


B) Key Performance Indicator
C) Known Process Input
D) Key Product Information
Answer: B) Key Performance Indicator

32. What is the main advantage of using dynamic reports over static reports?

A) They allow users to interact with and customize the data


B) They are less resource-intensive
C) They are automatically generated
D) They require no further configuration
Answer: A) They allow users to interact with and customize the data

33. Which reporting tool is most used for advanced analytics and predictive
modeling?

A) Microsoft Power BI
B) IBM Cognos
C) Google Analytics
D) SAS
Answer: D) SAS

34. What is a primary function of reports generated by SAP BusinessObjects?

A) Web-based document storage


B) Analysis and visualization of large-scale data
C) User interface design
D) Customer relationship management
Answer: B) Analysis and visualization of large-scale data

35. Which of the following best describes a "summary report"?

A) A report that shows a detailed breakdown of each transaction


B) A report that provides an overview of key metrics
C) A report that generates random data
D) A report used for legal documentation
Answer: B) A report that provides an overview of key metrics

36. Which tool is often used for creating visual reports and dashboards for
marketing analytics?

A) SAP BusinessObjects
B) Google Data Studio
C) Microsoft Word
D) Jaspersoft
Answer: B) Google Data Studio

37. In reporting tools, what does the "export" feature do?

A) Sends reports to an email list


B) Converts reports into different file formats for external use
C) Creates a backup of the report data
D) None of the above
Answer: B) Converts reports into different file formats for external use

38. What type of reporting tool is best for managing financial reports in large
corporations?

A) SAP Crystal Reports


B) Tableau
C) Microsoft Power BI
D) Google Sheets
Answer: A) SAP Crystal Reports

39. What is the purpose of "data aggregation" in reporting?

A) To separate data into smaller groups


B) To combine data from multiple sources into a single report
C) To delete unnecessary data from reports
D) To create complex visualizations
Answer: B) To combine data from multiple sources into a single report

40. Which reporting tool is commonly used for report automation and
distribution?

A) Power BI
B) Microsoft Access
C) Tableau
D) Crystal Reports
Answer: D) Crystal Reports

41. What does "real-time reporting" allow users to do?

A) View reports on a periodic schedule


B) View reports instantly as new data is added
C) Analyze historical data
D) Export reports to external databases
Answer: B) View reports instantly as new data is added

42. Which reporting tool is designed for operational reporting in real-time


environments?

A) SAP Crystal Reports


B) IBM Cognos
C) Google Data Studio
D) Microsoft Power BI
Answer: D) Microsoft Power BI

43. Which of the following is a key function of a report generation tool?

A) To manage web servers


B) To analyze data for insights
C) To create and format reports from data
D) To create marketing strategies
Answer: C) To create and format reports from data

44. What is the primary advantage of interactive reports?

A) They are simple to create


B) They require minimal data processing
C) They allow users to explore and drill down into data
D) They are static and non-editable
Answer: C) They allow users to explore and drill down into data

45. What does "reporting automation" do in business intelligence tools?

A) It ensures that reports are generated and distributed at predefined intervals without manual
intervention
B) It creates new data sources automatically
C) It formats reports into visual charts
D) It restricts access to reports
Answer: A) It ensures that reports are generated and distributed at predefined intervals
without manual intervention

46. Which of these tools is used primarily for customer service reporting?

A) Zendesk
B) Tableau
C) IBM Cognos
D) Google Analytics
Answer: A) Zendesk

47. What does the "data source" in a reporting tool refer to?

A) The software that runs the tool


B) The location from which the data is pulled for the report
C) The format of the report
D) The user who accesses the report
Answer: B) The location from which the data is pulled for the report

48. Which of the following is a common output format for reports generated
by reporting tools?

A) Excel
B) PDF
C) HTML
D) All of the above
Answer: D) All of the above

49. Which feature allows reporting tools to provide more accurate insights
from data?

A) Real-time data updates


B) Data visualization
C) Data aggregation
D) All of the above
Answer: D) All of the above

50. What is the primary function of "report sharing" in reporting tools?

A) To analyze data more effectively


B) To distribute reports to other stakeholders
C) To format reports
D) To create reports automatically
Answer: B) To distribute reports to other stakeholders

Topic 9 : Documentation and User Manuals


1. What is the primary purpose of documentation in software development?

A) To track bugs in the code


B) To provide detailed instructions and information about the system
C) To store user credentials
D) To analyze customer feedback
Answer: B) To provide detailed instructions and information about the system

2. What does a user manual typically include?

A) Source code of the software


B) Instructions for users to operate a product or system
C) Design specifications
D) A list of all employees working on the project
Answer: B) Instructions for users to operate a product or system

3. Which of the following is a key feature of effective documentation?


A) It is long and detailed
B) It is written in technical jargon
C) It is clear, concise, and easy to understand
D) It is only available in printed format
Answer: C) It is clear, concise, and easy to understand

4. Which type of documentation is aimed at developers and engineers?

A) End-user documentation
B) Technical documentation
C) Product documentation
D) Marketing documentation
Answer: B) Technical documentation

5. Which of the following is an example of user documentation?

A) API documentation
B) Release notes
C) End-user installation guide
D) System architecture diagrams
Answer: C) End-user installation guide

6. What is the role of “release notes” in documentation?

A) To provide a summary of the software's features


B) To describe any known issues and new changes in the software
C) To explain the design decisions made by developers
D) To show the source code of the application
Answer: B) To describe any known issues and new changes in the software

7. What is a “help manual” typically used for?

A) To outline the software architecture


B) To explain how to use the software features
C) To list the employees working on a project
D) To summarize the product development lifecycle
Answer: B) To explain how to use the software features

8. Which of the following is NOT a type of documentation?

A) User manual
B) API documentation
C) Project timeline
D) Technical specification
Answer: C) Project timeline

9. What is the main difference between user documentation and system


documentation?

A) User documentation focuses on technical details, while system documentation focuses on


end-users
B) User documentation is aimed at non-technical users, while system documentation is for
developers
C) System documentation is for end-users, and user documentation is for system
administrators
D) There is no difference; both are the same
Answer: B) User documentation is aimed at non-technical users, while system
documentation is for developers

10. Which section is typically found in a user manual?

A) Source code examples


B) Troubleshooting and FAQs
C) Software architecture
D) Business model
Answer: B) Troubleshooting and FAQs

11. What is the primary focus of API documentation?

A) Providing instructions for using the product


B) Describing the application programming interface and how to interact with it
C) Listing known bugs and fixes
D) Describing user interface design
Answer: B) Describing the application programming interface and how to interact with it

12. How should a user manual be structured?

A) With technical jargon and complex language


B) With a logical, easy-to-follow structure and a table of contents
C) With a focus on source code and database design
D) With no index or sections
Answer: B) With a logical, easy-to-follow structure and a table of contents

13. What is a common tool used to create technical documentation?

A) Photoshop
B) Microsoft Word
C) Visual Studio Code
D) Adobe Illustrator
Answer: B) Microsoft Word

14. What type of information is typically found in a system manual?

A) Instructions for using the software


B) Hardware configuration and system requirements
C) Troubleshooting tips for users
D) User interface guidelines
Answer: B) Hardware configuration and system requirements

15. What should a user manual include for effective troubleshooting?

A) A list of technical specifications


B) A summary of the software’s architecture
C) A troubleshooting guide with common issues and solutions
D) A detailed explanation of the development process
Answer: C) A troubleshooting guide with common issues and solutions

16. What is the purpose of a "quick start guide" in user documentation?

A) To provide an in-depth analysis of the product’s features


B) To help users get started with the software quickly
C) To list the system requirements
D) To document the installation process in detail
Answer: B) To help users get started with the software quickly

17. How often should user manuals be updated?

A) Only when the product is released


B) Whenever there are updates or changes to the product
C) Once every year
D) Only when a major bug is fixed
Answer: B) Whenever there are updates or changes to the product

18. Which of the following is NOT part of a user manual’s content?

A) Step-by-step instructions
B) A list of all developers who worked on the software
C) Screenshots or illustrations
D) System configuration details
Answer: B) A list of all developers who worked on the software

19. What is the best format for delivering user manuals for easy access?

A) Printed books only


B) PDF or online formats
C) Word documents
D) Handwritten notes
Answer: B) PDF or online formats

20. What type of documentation is crucial for software maintenance?

A) End-user documentation
B) Technical documentation
C) Marketing documentation
D) Social media documentation
Answer: B) Technical documentation

21. What is the importance of version control in documentation?

A) It helps in adding new users to the system


B) It ensures that the latest documentation is available and tracks changes over time
C) It speeds up the installation process
D) It allows users to comment on documentation
Answer: B) It ensures that the latest documentation is available and tracks changes over time

22. What role does a "Table of Contents" play in a user manual?


A) It summarizes the software’s marketing goals
B) It provides easy navigation to different sections of the manual
C) It lists the software bugs
D) It provides developer credentials
Answer: B) It provides easy navigation to different sections of the manual

23. What is the purpose of using visuals such as screenshots in


documentation?

A) To make the manual look more complex


B) To help users understand the instructions more clearly
C) To increase the size of the document
D) To distract users from the text
Answer: B) To help users understand the instructions more clearly

24. What does the acronym “SOP” stand for in the context of documentation?

A) System Operation Protocol


B) Standard Operating Procedure
C) Software Output Process
D) System Output Program
Answer: B) Standard Operating Procedure

25. Why is it important to keep documentation up to date?

A) To ensure accuracy and reflect any new features or changes in the product
B) To make the documentation longer
C) To fill the documentation with unnecessary information
D) To avoid including new features
Answer: A) To ensure accuracy and reflect any new features or changes in the product

26. Which of the following should NOT be included in a user manual?

A) Detailed technical descriptions for developers


B) Instructions for using the software
C) Contact information for support
D) Troubleshooting steps for common issues
Answer: A) Detailed technical descriptions for developers

27. How is "user feedback" useful in improving documentation?

A) It helps in identifying areas of confusion and making improvements


B) It allows users to comment on design preferences
C) It reduces the need for documentation updates
D) It ensures that the documentation is perfectly written
Answer: A) It helps in identifying areas of confusion and making improvements

28. What is the primary goal of a user manual?

A) To provide legal disclaimers


B) To help users understand and effectively use the product
C) To list all the features of the product in detail
D) To promote the product to customers
Answer: B) To help users understand and effectively use the product

29. What type of information would be found in an installation guide?

A) Features of the software


B) Step-by-step instructions for setting up the software
C) System performance benchmarks
D) Business model of the software company
Answer: B) Step-by-step instructions for setting up the software

30. What is the role of "glossary" in documentation?

A) To list technical terms and their definitions for the user


B) To outline the development lifecycle
C) To summarize key features
D) To provide a list of known bugs
Answer: A) To list technical terms and their definitions for the user

31. What is the purpose of “context-sensitive help” in documentation?

A) It provides help based on the user’s current action or screen


B) It helps with troubleshooting after the software crashes
C) It provides installation instructions
D) It helps with the development process
Answer: A) It provides help based on the user’s current action or screen

32. Which of the following is NOT a typical format for user manuals?

A) PDF
B) Word document
C) HTML-based online help
D) Spreadsheet
Answer: D) Spreadsheet

33. What does “user-centric” documentation focus on?

A) The technical aspects of the software


B) The needs and experiences of the users
C) Developer workflows
D) Company financial data
Answer: B) The needs and experiences of the users

34. What is one advantage of creating online documentation?

A) It can be easily updated and accessed remotely


B) It can only be printed once
C) It requires more storage space
D) It does not require any maintenance
Answer: A) It can be easily updated and accessed remotely
35. What is the purpose of providing "step-by-step instructions" in a user
manual?

A) To guide users through complex tasks in an organized manner


B) To create confusion in the user’s mind
C) To provide technical specifications
D) To offer a deep dive into the software’s architecture
Answer: A) To guide users through complex tasks in an organized manner

36. What type of documentation would a software development company use


to track bugs?

A) API documentation
B) Bug tracking system
C) User manual
D) System requirements documentation
Answer: B) Bug tracking system

37. What does “dynamic documentation” mean?

A) Documentation that changes in real-time based on the user’s interaction


B) Documentation that is static and cannot be edited
C) Documentation that is printed and distributed manually
D) Documentation that explains the software’s architecture
Answer: A) Documentation that changes in real-time based on the user’s interaction

38. What does "accessibility" mean in the context of documentation?

A) The ability to access the documentation online


B) The ability for people with disabilities to easily read and understand it
C) The ability to lock the documentation for security purposes
D) The ability to print the documentation
Answer: B) The ability for people with disabilities to easily read and understand it

39. What is a "formatting guide" in the context of documentation?

A) A guide for writers on how to format the document to ensure consistency


B) A guide for developers on how to write the code
C) A guide for marketing teams to promote the product
D) A guide for end-users to operate the product
Answer: A) A guide for writers on how to format the document to ensure consistency

40. What does “contextual help” provide in a software application?

A) Help that is related to the user’s current task or screen


B) Help with installation procedures
C) A glossary of technical terms
D) A list of developers working on the software
Answer: A) Help that is related to the user’s current task or screen

41. Which document would a product manager use to communicate feature


requirements to developers?
A) User manual
B) Feature specification document
C) End-user help guide
D) API documentation
Answer: B) Feature specification document

42. What does “multilingual documentation” refer to?

A) Documentation available in multiple languages


B) Documentation written in a single language
C) Documentation that requires special software
D) Documentation that includes code samples
Answer: A) Documentation available in multiple languages

43. What role does "user feedback" play in documentation?

A) It helps improve and refine the documentation based on user experiences


B) It helps developers write code faster
C) It allows marketing teams to promote the product
D) It allows users to modify documentation directly
Answer: A) It helps improve and refine the documentation based on user experiences

44. Why is "conciseness" important in documentation?

A) To provide detailed information to users


B) To ensure that the documentation is easy to read and follow
C) To make the documentation longer
D) To increase the complexity of the content
Answer: B) To ensure that the documentation is easy to read and follow

45. What type of information should a user manual include?

A) Troubleshooting steps, installation instructions, and feature usage


B) Source code
C) Developer notes
D) Marketing strategy
Answer: A) Troubleshooting steps, installation instructions, and feature usage

46. How can "visual aids" like diagrams help in documentation?

A) They make the documentation harder to understand


B) They provide additional context and clarity for complex information
C) They are unnecessary in documentation
D) They slow down the process of creating documentation
Answer: B) They provide additional context and clarity for complex information

47. What does "versioning" in documentation mean?

A) Writing documentation for new versions of the software


B) Maintaining different versions of the documentation based on software updates
C) Tracking the number of pages in the document
D) Ensuring that no documentation is ever updated
Answer: B) Maintaining different versions of the documentation based on software updates

48. What is "onboarding" documentation?

A) Documentation that helps new employees or users get started with a product or system
B) Documentation for technical support teams
C) Documentation for system administrators only
D) Documentation that describes software bugs
Answer: A) Documentation that helps new employees or users get started with a product or
system

49. How does "usability testing" relate to documentation?

A) It ensures that documentation is user-friendly and easy to understand


B) It helps with code optimization
C) It determines the design of the user interface
D) It helps manage server configurations
Answer: A) It ensures that documentation is user-friendly and easy to understand

50. What is the primary advantage of having well-written documentation?

A) It makes the product more expensive


B) It helps users effectively use the software and reduces the need for support
C) It allows developers to sell the product more easily
D) It focuses on marketing strategies
Answer: B) It helps users effectively use the software and reduces the need for support

TOPIC 10 : Unit and Integrated Testing


1. What is the primary goal of unit testing?

A) To test the integration of multiple modules


B) To test individual components of a system in isolation
C) To test the system’s performance under load
D) To test the user interface of an application
Answer: B) To test individual components of a system in isolation

2. In which testing phase is integration testing performed?

A) Before unit testing


B) After unit testing
C) After system testing
D) After acceptance testing
Answer: B) After unit testing

3. Which of the following is true about unit tests?

A) They are typically written after the software is deployed


B) They validate whether different software modules work together
C) They are written by developers to check individual functions or methods
D) They are not automated
Answer: C) They are written by developers to check individual functions or methods

4. What is the key difference between unit testing and integration testing?

A) Unit testing focuses on individual components, while integration testing focuses on the
interaction between components
B) Unit testing is performed by end-users, and integration testing is done by developers
C) Unit testing is manual, and integration testing is always automated
D) There is no difference; both are the same
Answer: A) Unit testing focuses on individual components, while integration testing focuses
on the interaction between components

5. What is an example of a tool commonly used for unit testing in Java?

A) Selenium
B) JUnit
C) TestComplete
D) LoadRunner
Answer: B) JUnit

6. What is the purpose of mocking in unit testing?

A) To simulate external dependencies and isolate the unit being tested


B) To simulate user input
C) To check the performance of the application
D) To validate the final output of the software
Answer: A) To simulate external dependencies and isolate the unit being tested

7. What type of testing is performed when checking how different modules


work together?

A) Unit testing
B) Integration testing
C) System testing
D) Regression testing
Answer: B) Integration testing

8. Which of the following best describes "stubbing" in unit testing?

A) Replacing a complex function with a simplified version


B) Writing tests for complex scenarios
C) Checking the output of the system
D) Testing external APIs
Answer: A) Replacing a complex function with a simplified version

9. What is a common challenge in integration testing?

A) Lack of unit tests


B) Difficulty in simulating real-world integration conditions
C) Incorrect handling of edge cases
D) Lack of a clear test plan
Answer: B) Difficulty in simulating real-world integration conditions

10. What does a "test case" typically include?

A) Instructions on how to build the software


B) A set of inputs, expected results, and execution steps
C) A description of the software’s user interface
D) A list of developers who worked on the code
Answer: B) A set of inputs, expected results, and execution steps

11. Which testing methodology ensures that individual functions work as


expected before being integrated?

A) Regression testing
B) Unit testing
C) Integration testing
D) End-to-end testing
Answer: B) Unit testing

12. In which of the following cases would integration testing be most useful?

A) To test a specific function for correctness


B) To ensure that the modules work together correctly
C) To test the performance of the system
D) To analyze the usability of the system
Answer: B) To ensure that the modules work together correctly

13. What is the main focus of "black-box" testing?

A) To test the internal structure of the code


B) To test the software’s functionalities without knowing the internal implementation
C) To analyze code performance
D) To check for security vulnerabilities
Answer: B) To test the software’s functionalities without knowing the internal
implementation

14. What is the main benefit of unit testing?

A) It allows for testing the entire system in one go


B) It helps identify bugs in individual components early in the development process
C) It helps identify performance issues
D) It guarantees the system’s overall correctness
Answer: B) It helps identify bugs in individual components early in the development process

15. What does the term "test-driven development" (TDD) refer to?

A) Writing tests after the application is deployed


B) Writing tests to test the software's overall performance
C) Writing tests before writing the actual code
D) Writing tests for user interfaces only
Answer: C) Writing tests before writing the actual code
16. Which of the following is a common framework for integration testing?

A) JUnit
B) Selenium
C) TestNG
D) Mockito
Answer: C) TestNG

17. What is the purpose of "code coverage" in unit testing?

A) To measure how many lines of code have been executed during testing
B) To measure how many users have used the software
C) To identify the most expensive code to run
D) To document the software features
Answer: A) To measure how many lines of code have been executed during testing

18. What is a "stub" used for in integration testing?

A) To simulate external systems or modules


B) To test the security of the system
C) To measure the performance of the system
D) To validate user input
Answer: A) To simulate external systems or modules

19. Which of the following is a key characteristic of unit tests?

A) They are focused on testing multiple components together


B) They are large and complex
C) They are independent of other tests
D) They are performed after the system is fully developed
Answer: C) They are independent of other tests

20. Which of the following is NOT an integration testing technique?

A) Big Bang approach


B) Incremental approach
C) Top-down approach
D) Functional approach
Answer: D) Functional approach

21. What is the main goal of regression testing?

A) To test the system under real-world conditions


B) To ensure new changes do not break existing functionality
C) To check the usability of the system
D) To measure the system’s performance
Answer: B) To ensure new changes do not break existing functionality

22. What is the role of a "test runner" in unit testing?

A) To automate test execution and report the results


B) To perform manual testing
C) To manage the development environment
D) To write the source code
Answer: A) To automate test execution and report the results

23. Which of the following tools is used for automated unit testing in Java?

A) Eclipse
B) JUnit
C) Git
D) Apache Tomcat
Answer: B) JUnit

24. What is the purpose of a "mock object" in unit testing?

A) To simulate a real object’s behavior for testing purposes


B) To simulate user interactions
C) To perform system integration tests
D) To simulate external systems’ responses
Answer: A) To simulate a real object’s behavior for testing purposes

25. What is the "incremental approach" in integration testing?

A) Testing modules one at a time after each new integration


B) Testing the entire system after all modules have been integrated
C) Testing the system’s performance
D) Testing the user interface of the software
Answer: A) Testing modules one at a time after each new integration

26. Which of the following types of testing is done to check the compatibility
between integrated components?

A) Unit testing
B) Compatibility testing
C) Integration testing
D) Load testing
Answer: C) Integration testing

27. What is the term for an error found during unit testing?

A) Bug
B) Fault
C) Defect
D) Issue
Answer: A) Bug

28. What does "end-to-end testing" focus on?

A) Testing individual units in isolation


B) Testing the system from start to finish, including integration with external systems
C) Testing the performance of the code
D) Testing the user interface
Answer: B) Testing the system from start to finish, including integration with external
systems

29. What is "boundary value analysis" in the context of unit testing?

A) Testing the values at the boundaries of input ranges


B) Testing the system for performance
C) Testing integration points between modules
D) Testing for security vulnerabilities
Answer: A) Testing the values at the boundaries of input ranges

30. What is the primary purpose of automated unit testing?

A) To automate the entire software development lifecycle


B) To ensure that new code changes do not break existing functionality
C) To simulate user behavior
D) To evaluate the user experience
Answer: B) To ensure that new code changes do not break existing functionality

31. Which of the following is a tool used for integration testing?

A) Selenium
B) JUnit
C) TestNG
D) Git
Answer: C) TestNG

32. What is a key benefit of integration testing?

A) It focuses on individual functions


B) It identifies performance bottlenecks
C) It ensures that components work together as expected
D) It simulates real-world use of the system
Answer: C) It ensures that components work together as expected

33. What is a test suite?

A) A set of test cases grouped together to test a specific feature or functionality


B) A tool used for automating tests
C) A report of test results
D) A method for tracking bugs
Answer: A) A set of test cases grouped together to test a specific feature or functionality

34. What is the purpose of the "big bang" approach in integration testing?

A) To test all components simultaneously after integration


B) To test components individually before integration
C) To perform regression testing after every new change
D) To test the system’s user interface
Answer: A) To test all components simultaneously after integration

35. Which of the following describes "unit test coverage"?


A) The percentage of code that is tested by unit tests
B) The number of bugs found during unit testing
C) The number of features tested by integration testing
D) The time it takes to run unit tests
Answer: A) The percentage of code that is tested by unit tests

36. What is "test automation"?

A) Writing manual test scripts for each feature


B) Automating the execution of test cases to speed up testing
C) Writing new features of the software
D) Testing the security of the application
Answer: B) Automating the execution of test cases to speed up testing

37. What is the primary purpose of regression testing?

A) To ensure the system meets the requirements


B) To check that new changes do not affect the existing functionality
C) To test the performance under load
D) To test the user interface
Answer: B) To check that new changes do not affect the existing functionality

38. Which of the following is an example of integration testing?

A) Checking that individual functions return correct results


B) Testing that multiple modules interact correctly
C) Checking for memory leaks in individual components
D) Testing the UI layout
Answer: B) Testing that multiple modules interact correctly

39. What is an "assertion" in unit testing?

A) A check to ensure that the test has passed


B) A document containing the test results
C) A tool used to automate tests
D) A statement that compares the expected and actual output
Answer: D) A statement that compares the expected and actual output

40. What is "test isolation" in unit testing?

A) Ensuring that tests are not dependent on external systems or other tests
B) Combining all tests into one large test case
C) Testing multiple modules together at once
D) Running tests after the system is deployed
Answer: A) Ensuring that tests are not dependent on external systems or other tests

41. What type of testing verifies if new changes are integrated correctly
without breaking existing functionality?

A) Unit testing
B) Regression testing
C) Load testing
D) Usability testing
Answer: B) Regression testing

42. What does "continuous integration" ensure in a development


environment?

A) The software is continuously tested in a production environment


B) New code changes are automatically tested and integrated into the system regularly
C) The software is always deployed to the production environment
D) The code is only tested after all features are completed
Answer: B) New code changes are automatically tested and integrated into the system
regularly

43. Which of the following is the goal of "smoke testing"?

A) To verify whether the build is stable enough for more rigorous testing
B) To test the system under heavy load
C) To verify that the user interface is functional
D) To check the system's security features
Answer: A) To verify whether the build is stable enough for more rigorous testing

44. What is "boundary testing"?

A) Testing the software's boundary conditions and limits


B) Testing the software's performance under heavy load
C) Testing the system's security features
D) Testing the software’s user interface
Answer: A) Testing the software's boundary conditions and limits

45. What is the purpose of "system integration testing"?

A) To test individual components of the system


B) To test how different systems or components interact as a whole
C) To ensure the software is ready for release
D) To perform performance testing on the system
Answer: B) To test how different systems or components interact as a whole

46. In which testing phase is integration testing conducted?

A) Before unit testing


B) During system testing
C) After unit testing
D) After acceptance testing
Answer: C) After unit testing

47. What type of testing is used to evaluate software performance under load?

A) Functional testing
B) Load testing
C) Integration testing
D) Regression testing
Answer: B) Load testing
48. What is the goal of "stress testing"?

A) To ensure that the system meets performance standards under normal conditions
B) To test how the system handles extreme conditions or high traffic
C) To test the system's usability
D) To validate the security of the system
Answer: B) To test how the system handles extreme conditions or high traffic

49. Which tool is primarily used for integration testing in Java-based


applications?

A) JUnit
B) Mockito
C) TestNG
D) Apache Ant
Answer: C) TestNG

50. What is the focus of "interface testing"?

A) To test the system’s user interface


B) To test interactions between different system interfaces
C) To test the system’s security features
D) To check for memory leaks
Answer: B) To test interactions between different system interfaces

You might also like