NIELIT O Level Exam

<p>What does the following code do?</p><pre><span style="font-size: 14px;">from math import *<br></span><span style="font-size: 14px;">print(cos(0))</span></pre>

What does the following code do?

from math import *
print(cos(0))


निम्न code क्या करता है?

from math import *
print(cos(0))

A. Prints 1.0

B. Raises a NameError

C. Prints cos(0)

D. Error




Correct Answer is :

A. Prints 1.0



Explanation

import * imports cos, and mathematically cos(0) = 1.0.


import * से cos() import हो जाता है और cos(0) का मान 1.0 है।

Latest Current Affairs 2026 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad