Add office photos
Premium Employer

PTC

4.2
based on 523 Reviews
Video summary
Filter interviews by

S.S.Siddiqui & Associates Interview Questions and Answers

Updated 5 Feb 2024
Popular Designations

Q1. A ball is left from a height of 10 meters. After bouncing first time it looses 10% of its previous height the next time it bounces. Write a code to calculate the number of bounces the ball goes through until it...

read more
Ans.

Code to calculate number of bounces a ball goes through until it comes to rest.

  • Use a loop to simulate the bounces until the ball stops bouncing

  • Calculate the height of each bounce using the given formula

  • Keep track of the number of bounces in a counter variable

View 2 more answers

Q2. Which is the best and less time consuming way to calculate factorial of a number?

Ans.

The best and less time consuming way to calculate factorial of a number is using iterative approach.

  • Iteratively multiply the number with all the numbers from 1 to the given number

  • Start with a result variable initialized to 1

  • Multiply the result with each number in the range

  • Return the final result

View 3 more answers

Q3. Code to print * in five consecutive lines

Ans.

Code to print * in five consecutive lines

  • Use a loop to iterate five times

  • Inside the loop, print a string containing a single * character

View 5 more answers

Q4. Write the code to find factorial using function recursion.

Ans.

Code to find factorial using function recursion

  • Define a function that takes an integer as input

  • Check if the input is 0 or 1, return 1 in that case

  • Otherwise, call the function recursively with input-1 and multiply it with the input

View 1 answer
Discover S.S.Siddiqui & Associates interview dos and don'ts from real experiences

Q5. What is real time example of polymorphism

Ans.

Polymorphism in software development is like a person driving different vehicles using the same driving skills.

  • Polymorphism allows objects of different classes to be treated as objects of a common superclass.

  • For example, a superclass 'Shape' can have subclasses like 'Circle' and 'Rectangle' which can be treated as 'Shape' objects.

  • Calling a method like 'draw()' on a 'Shape' object will execute the specific implementation in 'Circle' or 'Rectangle' based on the actual object ty...read more

Add your answer

Q6. Is multiple inheritance allowed in java?

Ans.

No, multiple inheritance is not allowed in Java.

  • Java does not support multiple inheritance for classes to avoid the diamond problem.

  • However, multiple inheritance is allowed for interfaces in Java.

  • Example: class A extends B, C is not allowed, but interface A extends B, C is allowed.

Add your answer

Q7. What is inheritance

Ans.

Inheritance is a concept in object-oriented programming where a class inherits properties and behaviors from another class.

  • Allows a class to inherit attributes and methods from another class

  • Promotes code reusability and reduces redundancy

  • Creates a parent-child relationship between classes

  • Example: Class 'Car' can inherit properties and methods from class 'Vehicle'

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

Interview Process at S.S.Siddiqui & Associates

based on 2 interviews
Interview experience
3.5
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Developer Interview Questions from Similar Companies

3.7
 • 115 Interview Questions
3.9
 • 39 Interview Questions
3.7
 • 23 Interview Questions
3.8
 • 20 Interview Questions
3.6
 • 18 Interview Questions
3.0
 • 14 Interview Questions
View all
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
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

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