Which of the following is a statement in Python that helps detect problems early on, acts as an internal self-check by declaring conditions and is a debugging aid?(1 point)

Responses

statement
statement

assert statement
assert statement

declarative statement
declarative statement

conditional statement
conditional statement

7 answers

The correct answer is:

assert statement

The assert statement in Python is used to set conditions that if not met, will raise an AssertionError. It serves as a debugging aid to help detect problems early in the code.

What is the process of testing out the smallest parts of a code separately before integrating them?(1 point)
Responses

API testing
API testing

unit testing
unit testing

power supply testing
power supply testing

disk fragment testing

The correct answer is:

unit testing

Unit testing involves testing the smallest parts or components of a program separately to ensure that each part functions correctly before integrating them into a larger system.

What call to action should be in your first line of code for a unit test?(1 point)
Responses

print()
print()

import unittest
import unittest

def()
def()

if statement

The correct answer is:

import unittest

In Python, the first line of code for a unit test typically starts with importing the unittest module, which provides the framework for creating and running unit tests.

Which of the following would be described as a form of manual testing that is executed without any test cases, where the programmer explores around freely and openly?(1 point)
Responses

sum testing
sum testing

load testing
load testing

exploratory testing
exploratory testing

def

The correct answer is:

exploratory testing

Exploratory testing is a form of manual testing where testers explore the application freely without predefined test cases, allowing them to discover issues through their own insights and experiences.