Exam Certified Data Engineer Professional All QuestionsBrowse all questions from this exam
Question 88

You are testing a collection of mathematical functions, one of which calculates the area under a curve as described by another function.

assert(myIntegrate(lambda x: x*x, 0, 3) [0] == 9)

Which kind of test would the above line exemplify?

    Correct Answer: A

    The test checks a single function, myIntegrate, and verifies its output for a specific input, lambda x: x*x, within a specified range from 0 to 3. This is characteristic of a unit test, which is designed to test individual components or functions in isolation to ensure they perform as expected.

Discussion
barnac1esOption: C

I think it should be Functional Test

divingbell17Option: A

A is correct

NickffOption: A

Answer is A, unit test

vctrhugoOption: A

A. Unit