Que.The functioning of all() and any() is same.
|
a. True |
b. False |
c. May be True or False |
d. Can’t say |
Que.What does the function all() do?
|
a. Returns 1 if all elements within it are 0 |
b. Returns 0 if all elements within it are 0 |
c. Returns 0 if all elements within it are non-zero |
d. Returns 1 if all elements within it are non-zero |
Returns 1 if all elements within it are non-zero
Que.What will be the output of the following code?all([1 0])
|
a. 1 |
b. 0 |
c. Error |
d. Nan |
Que.Choose the correct hierarchy of operations.
|
a. |,&,+,- |
b. +,-,&,| |
c. :,+,-,& |
d. |,:,&,.^ |
Que.What is the output of the following code?2++++++++9
|
a. 11 |
b. 74 |
c. 25 |
d. Error |
Que.What is the output of the following code?sin(Inf) & sin(nan)
|
a. Error |
b. 1 |
c. 0 |
d. Nan |
Que.What will be the output of the following code?all([Nan])
|
a. 1 |
b. 0 |
c. Error |
d. Nan |
Que.What will be the output of the following code?~xor(3476,1234)
|
a. 1 |
b. 0 |
c. Error |
d. NaN |
Que.What will be the output of the following code?~or(~xor(1,1),~or(0,1))
|
a. 1 |
b. 0 |
c. NaN |
d. Error |
Que.What will be the output of the following code?any(sin(0), NaN)
|
a. 1 |
b. Error |
c. 0 |
d. No such function |