Join Now
Home Aptitude Reasoning DI VA GK CA CA Hindi Quiz Placements
A log of program execution
A message displayed to the user
A report on code coverage
A mock object used in testing
The percentage of code that is executed during testing
The amount of time it takes to run a test suite
The number of test cases that are run during testing
The number of bugs that are found during testing
What is a unit test in Python?
A test that verifies the entire system
A test that verifies a single function or module
A test that verifies the user interface
A test that verifies the database
Testing individual units or components of code in isolation
Testing the entire program as a whole
Testing user interface interactions
Testing database connections
unittest
pytest
selenium
all of the above
raise Exception("Error message")
assert Exception("Error message")
print Exception("Error message")
throw Exception("Error message")
unittest.mock
pytest-mock
mockito
cProfile
timeit
memory_profiler
An error that occurs when the code is not valid Python syntax
An error that occurs when the program runs out of memory
An error that occurs when the program encounters unexpected input
An error that occurs when the program divides by zero
PyLint
Flake8
Bandit