Examine the given Python program and select the purpose of the program from…

PYQ KVS TGT/PGT 2023

Examine the given Python program and select the purpose of the program from the following options: N=int(input("Enter the number")) for i in range(2, N): if (N%i==0): print(i)

  1. A.

    to display the proper factors (excluding 1 and the number N itself)

  2. B.

    to check whether N is a prime or Not

  3. C.

    to calculate sum of factors of N

  4. D.

    to display all prime factor of the number N

Attempted by 3001 students.

Sign up free to check your answer

Sign up free

Explore the full course: Kvs Nvs Tier 2 Computer Science

Loading lesson…