True/False Exercise - Numpy

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Aparnasunil75
A
Aparnasunil75
Community Contributor
Quizzes Created: 20 | Total Attempts: 40,413
Questions: 10 | Attempts: 427

SettingsSettingsSettings
True/False Exercise - Numpy - Quiz

.


Questions and Answers
  • 1. 

    Ndarray is also known as the alias array

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
    Explanation
    The statement is true because ndarray is indeed an alias for array. The term "alias" means that ndarray is another name or alternative way to refer to the same thing as array. Therefore, both terms can be used interchangeably to refer to the same data structure.

    Rate this question:

  • 2. 

    Ndarray.dataitem Size is the buffer containing the actual elements of the array.

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
    Explanation
    The explanation for the given correct answer is that ndarray.dataitem Size refers to the buffer that holds the actual elements of the array. This buffer contains the data that can be accessed and manipulated using various array operations. Therefore, it is true that ndarray.dataitem Size is the buffer containing the actual elements of the array.

    Rate this question:

  • 3. 

    Transposing an array turns its rows into columns and rows into rows

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
    Explanation
    Transposing an array turns its rows into columns and columns into rows, not rows into rows. Therefore, the correct answer is False.

    Rate this question:

  • 4. 

    Sorting is to arrange the elements of an array in hierarchical order only in ascending

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
    Explanation
    The statement is incorrect because sorting can arrange the elements of an array in either ascending or descending order, depending on the requirement. It is not limited to arranging the elements only in ascending order. Therefore, the correct answer is False.

    Rate this question:

  • 5. 

    Concatenation means joining two or more arrays.-

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
    Explanation
    Concatenation refers to the process of combining or joining two or more arrays together. It involves taking the elements from each array and merging them into a single array, resulting in a longer array that contains all the elements from the original arrays. Therefore, the given statement that concatenation means joining two or more arrays is correct.

    Rate this question:

  • 6. 

    For element-wise operations on 2D array, size of both arrays may not be  same

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
    Explanation
    For element-wise operations on 2D arrays, the size of both arrays must be the same. This is because element-wise operations involve performing the operation between corresponding elements of the arrays. If the arrays have different sizes, it would not be possible to perform the operation for all elements, resulting in an error. Therefore, the statement "size of both arrays may not be the same" is false.

    Rate this question:

  • 7. 

    By default, numpy does sorting in descending order.

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
    Explanation
    By default, numpy does sorting in ascending order, not descending order.

    Rate this question:

  • 8. 

    In 2D array,by default, sorting is done row-wise(i.e. on axis=1)-

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
    Explanation
    In a 2D array, by default, sorting is done row-wise. This means that when sorting the elements of the array, the sorting algorithm will consider each row as a separate entity and sort the elements within each row individually. This is indicated by setting the value of the axis parameter to 1. Therefore, the given statement "True" is correct.

    Rate this question:

  • 9. 

    In 2D array, when axis=0, sorting is done column-wise.

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
    Explanation
    When axis=0 in a 2D array, sorting is done column-wise. This means that the elements in each column of the array will be arranged in ascending or descending order, while the elements in each row will remain in their original order. Therefore, the statement "True" is correct.

    Rate this question:

  • 10. 

    Full form of .CSV is comma separated values

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
    Explanation
    The given correct answer is true because the full form of .CSV is indeed "comma separated values". This file format is commonly used to store tabular data, where each value is separated by a comma. It allows for easy exchange of data between different software applications, making it widely used in data analysis and database management.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 21, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Mar 30, 2020
    Quiz Created by
    Aparnasunil75
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.