The function that has a return type of double is: double nameNum(int a, double b); . Thus, the right option is B.
In computer programming, the data type of the value returned from a subroutine or method is defined and constrained by the return type (or result type). The return type must be explicitly stated when declaring a function in many programming languages, particularly statically-typed programming languages like C, C++, and Java.
When a method completes all of its statements, gets to the return statement, or throws an exception, whichever comes first, it returns to the code that called it.
A method's return type is specified in the method declaration. The return statement is used in the method's body to return the value.
A method that is declared void does not produce a value. A return statement is optional; however, it is not required.
Learn more about return type
https://brainly.com/question/12977936
#SPJ4