Fundamentals of Programming MCQs (Part-11)

What is the purpose of an API in software development?

A Code execution
B Communication between systems
C User interface design
D Database management

Which phase of the Software Development Life Cycle (SDLC) involves gathering and analyzing user requirements?

A Testing
B Design
C Implementation
D Requirement analysis

What is the main goal of software testing?

A Verify functionality
B Write documentation
C Debug code
D Design system

Which method is used in Python for debugging to stop the program at a specific point?

A log()
B debug()
C breakpoint()
D print()

In Java, what is the purpose of the main() method?

A To create objects
B To execute code
C To handle exceptions
D To define classes

What is the purpose of unit testing in software development?

A Test individual components
B Test system integration
C Test user interfaces
D Test deployment

Which of these is used to manage software versions?

A SQL
B Apache
C Node.js
D Git

What does the acronym SDLC stand for in software development?

A System Development Life Cycle
B Software Design Life Cycle
C Software Development Language Coding
D Software Design and Logic Circuits

Which of the following tools is commonly used for debugging in C?

A gdb
B assert()
C log()
D printf()

Which type of testing checks the interaction between different software components?

A System testing
B Integration testing
C Acceptance testing
D Unit testing

In Python, which function is commonly used to handle exceptions?

A throw()
B catch()
C try-except
D raise()

In the SDLC, which phase involves developing and writing the actual code?

A Testing
B Design
C Deployment
D Implementation

What is the purpose of version control systems like Git in programming?

A To run the code
B To compile the code
C To track changes in code
D To test the code

What is the first step in the Software Development Life Cycle (SDLC)?

A Implementation
B Requirement gathering
C Testing
D Design

In Java, what is used to handle multiple exceptions in a single catch block?

A || operator
B | operator
C catch-all
D , operator

Leave a Reply

Your email address will not be published. Required fields are marked *