0% found this document useful (0 votes)
37 views3 pages

Important Questions Stu

This document contains 35 questions related to NumPy and data analysis. The questions cover topics such as data types, NumPy arrays, indexing/slicing, aggregation functions, comparison operators, broadcasting, fancy indexing, structured arrays, arithmetic operations, and slicing elements from NumPy arrays. Sample code is provided with some questions to demonstrate concepts like sorting arrays, concatenating arrays, and extracting array elements based on conditions.

Uploaded by

Sathwika Reddy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views3 pages

Important Questions Stu

This document contains 35 questions related to NumPy and data analysis. The questions cover topics such as data types, NumPy arrays, indexing/slicing, aggregation functions, comparison operators, broadcasting, fancy indexing, structured arrays, arithmetic operations, and slicing elements from NumPy arrays. Sample code is provided with some questions to demonstrate concepts like sorting arrays, concatenating arrays, and extracting array elements based on conditions.

Uploaded by

Sathwika Reddy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

VARDHAMAN COLLEGE OF ENGINEERING

(AUTONOMOUS)
Affiliated to JNTUH, Approved by AICTE, Accredited by NAAC with A++ Grade, ISO 9001:2015 Certified
Kacharam, Shamshabad, Hyderabad – 501218, Telangana, India

QUESTION BANK

Note: These questions are just to understand CAT-1 question paper pattern

1 What is Data Analysis and what are the stages in data analysis?
2 List out types of data.
3 Explain data analysis process with neat diagram.
4 What is NumPy? What are uses of Numpy?
5 Discuss in detail attributes of NumPy array with example.
6 Write any three advantages of NumPy array?
7 Compare Data Analysis and Data Analytics.
8 Discuss in detail quantitative data and qualitative data?
9 Discuss in detail about Data Processing.
10 Write a NumPy program to sort a given array by row and column in ascending
order.
[[5.54 3.38 7.99]
[3.54 4.38 6.99]
[1.54 2.39 9.29]]

11 What is indexing and Slicing? Explain with example program.


12 Write a Numpy program to access following elements from array
[10,20,30,40,50,60,70]
print(a[2:6])
a) elements from 2nd index to 5th index
b) elements from -6th index to -3rd index print(a[-6:-4])
nd
c) upto 2 index print(a[0:3])
d) complete list print(a)

13 What is broadcasting? Apply broadcasting rules to different examples and discuss


it.
14 What are the rules to perform forward and backword indexing?
15 Explain validation and deployment steps in data analysis process.
16 Explain in detail Data Exploration/Visualization.
17 Find the output of the following code.

i) x=array([0, 2, 4, 6, 8])

compute x[1::2] [2 6]
ii) x=array([9, 8, 7, 6, 5, 4, 3, 2, 1, 0])

Compute x[5::-2] [4 6 8]
iii)
x =array([[5, 0, 3, 3],
[7, 9, 3, 5],
[2, 4, 7, 6]])
Compute a) x<5 b) x[x <5] [0 3 3 3 4 2 4]

18 Implement Numpy code for comparison operator functions. (<, <=, >, >=, ==, !=)
Note: Apply operator functions in multidimensional arrays.
19 Implement python code for aggregation functions.(min, max and everything in
between)
20 Illustrate fancy indexing with Numpy code.
21 Write a NumPy program to extract all numbers from a given array which are less
than 6 and greater than 5.
Sample Array:[[5.54, 3.38, 7.99],
[3.54, 4.38, 6.99],
[1.54, 2.39, 9.29]]
22 List the broadcasting rules.
23 Prepare age dataset of your friends (at least 10) and find min , max, and avg height
of your friends using aggregation functions.
24 Write a NumPy program to create a three-dimension array with shape (3,5,4) and
set to a variable.
25 Write a NumPy program to create a 1-D array going from 0 to 50 and an array from
10 to 50.
26 Write a NumPy program to find the 4th & 6th element of a following array.
Sample Array: [[ 2 4 6]
[ 6 8 10]]
27 Write a NumPy program to concatenate two 2-dimensional arrays.
Sample arrays: ([[0, 1, 3], [5, 7, 9]], [[0, 2, 4], [6, 8, 10]]
28 Write a Numpy program to get all the values from the array which is less then the
mean of the entire array.
Sample Array: [[20,25,10,23,26,32,10,5,6],
[0,2,50,20,0,1,28,5,0]]
29 Differentiate between Numpy array and Numpy Structured array with example
30 Write a Numpy program to demonstrate Structured array
and do sorting
31 Write a NumPy program to create a structured array from given student name,
height, class and their data types. Now sort by class, then height if class are equal.
32 Write Numpy code to perform arithmetic operations on
NumPy array
33 Write a Numpy program to demonstrate attributes of numpy array
34 Write a Numpy program to slice elements from the following 1-D array.
[3, 5, 7, 9, 11, 15, 18, 22]
a) from index 1 to index 6
b) from 3rd value to end
c) from 0 to 4 index
d) from index -4 to index -3
35
Write a Numpy program to demonstrate Aggregate Functions

You might also like