Project Linked Person
Project Linked Person Interview Questions and Answers
Q1. 4. How to define 3 dimensional array using MATLAB or python. Obtaining maximum from matrix elements.
To define 3D array in MATLAB or Python, use array indexing. To obtain maximum from matrix elements, use max() function.
In MATLAB, use array indexing with three dimensions: A(x,y,z)
In Python, use numpy library to create 3D array: np.array([[[1,2],[3,4]],[[5,6],[7,8]]])
To obtain maximum from matrix elements, use max() function: max(A)
In Python, use np.max() function to obtain maximum from matrix elements
Q2. 2. How to obtain minimum value of a function without using derivatives.
To obtain minimum value of a function without using derivatives, use methods like bisection, golden section search, or simulated annealing.
Bisection method involves repeatedly dividing the interval in half and checking which half contains the minimum value.
Golden section search is similar to bisection but uses a fixed ratio to divide the interval.
Simulated annealing is a probabilistic method that randomly explores the function space to find the minimum value.
Q3. 5. How to get median of a data sequence
To get the median of a data sequence, sort the data and find the middle value.
Sort the data sequence in ascending or descending order
If the sequence has an odd number of values, the median is the middle value
If the sequence has an even number of values, the median is the average of the two middle values
Example: For the sequence [3, 1, 4, 2, 5], sort it to [1, 2, 3, 4, 5] and the median is 3
Example: For the sequence [3, 1, 4, 2, 5, 6], sort it to [1, 2, 3, 4, 5, 6] and the med...read more
Interview Questions of Similar Designations
Calculate your in-hand salary
Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary
Reviews
Interviews
Salaries
Users/Month