Certified Data Engineer Professional Exam QuestionsBrowse all questions from this exam

Certified Data Engineer Professional 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?

Show Answer
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

4 comments
Sign in to comment
barnac1esOption: C
Mar 22, 2024

I think it should be Functional Test

divingbell17Option: A
Jan 1, 2024

A is correct

vctrhugoOption: A
Feb 6, 2024

A. Unit

NickffOption: A
May 6, 2024

Answer is A, unit test