True/False Exercise - Numpy

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Aparnasunil75
A
Aparnasunil75
Community Contributor
Quizzes Created: 20 | Total Attempts: 43,508
| Attempts: 446 | Questions: 10
Please wait...
Question 1 / 10
0 %
0/100
Score 0/100
1. Concatenation means joining two or more arrays.-

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.

Submit
Please wait...
About This Quiz
True/False Exercise - Numpy - Quiz

This True\/False quiz tests knowledge on NumPy, focusing on ndarray characteristics, array operations, and data manipulation techniques.

2. By default, numpy does sorting in descending order.

Explanation

By default, numpy does sorting in ascending order, not descending order.

Submit
3. Full form of .CSV is comma separated values

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.

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

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.

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

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.

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

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.

Submit
7. Ndarray is also known as the alias array

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.

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

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.

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

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.

Submit
10. Transposing an array turns its rows into columns and rows into rows

Explanation

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

Submit
View My Results

Quiz Review Timeline (Updated): Mar 21, 2023 +

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
Cancel
  • All
    All (10)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Concatenation means joining two or more arrays.-
By default, numpy does sorting in descending order.
Full form of .CSV is comma separated values
In 2D array, when axis=0, sorting is done column-wise.
In 2D array,by default, sorting is done row-wise(i.e. on axis=1)-
Ndarray.dataitem Size is the buffer containing the actual elements of...
Ndarray is also known as the alias array
For element-wise operations on 2D array, size of both arrays may not...
Sorting is to arrange the elements of an array in hierarchical order...
Transposing an array turns its rows into columns and rows into rows
Alert!

Advertisement