NIELIT O Level Exam

Which variable must be initialized to 1 in the algorithm for factorial computation?

Which variable must be initialized to 1 in the algorithm for factorial computation?

Factorial computation के algorithm में कौन-सा variable 1 से initialize किया जाना चाहिए?

A. Counter

B. Factorial value

C. Input number

D. Loop limit




Correct Answer is :

B. Factorial value



Explanation
The factorial accumulator starts at 1 because 1 is the multiplicative identity.

Factorial accumulator को 1 से initialize किया जाता है क्योंकि multiplication की identity 1 है।
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