I have this function call question in my sample exam it is for my finals and i would like to get your point for view
<p>The question is to consider the following function definition:</p>

<pre><code>def read_value_type(prompt='Enter a Boolean&gt; ', convert=bool):
    val = input(prompt)
    return convert(val)
</code></pre>

<p>as a multiple choice:</p>

<ol>
<li><code>val = read_value_type(convert=bool, prompt='Enter a boolean&gt;')</code></li>
<li><code>val = read_value_type(prompt='Enter a float&gt; ')</code></li>
<li><code>val = read_value_type()</code></li>
</ol>

<p>and it is asked which of the above are valid calls to <code>read_value_type</code>?</p>

<p>Since none display errors, and seem to be reading, I was wondering whether the three of them would call the function or not?</p>
