Project Linked Person

Project Linked Person Interview Questions and Answers

Updated 5 Aug 2021

Q1. 4. How to define 3 dimensional array using MATLAB or python. Obtaining maximum from matrix elements.

Ans.

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.

Ans.

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

Ans.

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

Are these interview questions helpful?
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Interview experiences of popular companies

View all

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

Project Linked Person Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter