Which NumPy function is used to create an array of a specified shape where all…

PYQ KVS TGT/PGT 2026

Which NumPy function is used to create an array of a specified shape where all elements are initialized to the value 0?

  1. A.

    np.empty()

  2. B.

    np.zeros()

  3. C.

    np.ones()

  4. D.

    np.null()

Attempted by 421 students.

Sign up free to check your answer

Sign up free

Explore the full course: Kvs Nvs Tier 2 Computer Science

Loading lesson…