Add office photos
Employer?
Claim Account for FREE

NeenOpal Intelligent Solutions

4.1
based on 14 Reviews
Filter interviews by

International Industrial Springs Interview Questions and Answers

Updated 13 Aug 2024

Q1. Q2.) Difference between list and tuple? a = [1,2,3,4,5,6,7,8,9] print(a[-1:-5]) Without running this code in compiler, tell the output

Ans.

The code will output an empty list as a result of slicing from -1 to -5 in the list 'a'.

  • Slicing in Python allows you to access a subset of elements in a list or tuple.

  • When slicing, the start index is inclusive and the end index is exclusive.

  • In this case, a[-1:-5] will result in an empty list because the start index -1 is greater than the end index -5.

View 1 answer

Q2. Q1.) Given sample data in text, read it in python Solution: Take the text to notepad, save it as CSV and then read it in python Check the number of null values Check the number of unique values Make a new colum...

read more
Ans.

Read sample data in text, check for null and unique values, create new column by multiplying two features

  • Save text data as CSV and read in Python using pandas

  • Use isnull() to check for null values

  • Use nunique() to check for unique values

  • Create a new column by multiplying two existing columns

  • Add the new column to the existing dataframe

Add your answer

Q3. Q4.) Fibonacci series in python

Ans.

Fibonacci series is a sequence of numbers where each number is the sum of the two preceding ones.

  • Use a loop or recursion to generate Fibonacci series in Python.

  • Start with 0 and 1 as the first two numbers in the series.

  • Add the previous two numbers to get the next number in the series.

Add your answer

Q4. You have a 7 minutes hourglass and a 4 minutes hourglass, now figure out a way to calculate 9 minutes

Ans.

To measure 9 minutes using 7 and 4 minutes hourglasses

  • Start both hourglasses at the same time

  • When the 4 minutes hourglass runs out, flip it immediately

  • When the 7 minutes hourglass runs out, flip the 4 minutes hourglass

  • When the 4 minutes hourglass runs out again, a total of 9 minutes have passed

Add your answer
Discover International Industrial Springs interview dos and don'ts from real experiences

Q5. Remove duplicates from an array without using any functions

Ans.

Remove duplicates from an array without using any functions

  • Create an empty array to store unique values

  • Loop through the original array and check if the value is already in the unique array before adding it

  • Use nested loops to compare each element with all other elements in the array

View 1 answer

Q6. Create a single dimensional array from a multi dimensional array

Ans.

To create a single dimensional array from a multi dimensional array, use the flatten method in Python.

  • Use the flatten method in Python to convert a multi dimensional array into a single dimensional array.

  • Example: multi_array = [[1, 2], [3, 4], [5, 6]]

  • single_array = [item for sublist in multi_array for item in sublist]

Add your answer

Q7. how to removes duplicates in spark

Ans.

Use dropDuplicates() function in Spark to remove duplicates from a DataFrame.

  • Use dropDuplicates() function on the DataFrame to remove duplicates based on all columns

  • Specify columns to check for duplicates by passing them as arguments to dropDuplicates() function

  • Example: df.dropDuplicates() or df.dropDuplicates(['col1', 'col2'])

Add your answer

Q8. List vs tuple difference

Ans.

List is mutable, tuple is immutable in Python.

  • List can be modified after creation, tuple cannot be modified

  • List uses square brackets [], tuple uses parentheses ()

  • List is used for collections of items that may need to be changed, tuple is used for fixed collections

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at International Industrial Springs

based on 7 interviews in the last 1 year
Interview experience
3.1
Average
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

3.9
 • 704 Interview Questions
3.8
 • 328 Interview Questions
4.2
 • 268 Interview Questions
3.8
 • 265 Interview Questions
4.0
 • 264 Interview Questions
View all
Top NeenOpal Intelligent Solutions Interview Questions And Answers
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
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

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