Add office photos
Employer?
Claim Account for FREE

NCR Corporation

3.7
based on 1.6k Reviews
Video summary
Filter interviews by

Punit Jasuja Productions Interview Questions and Answers

Updated 22 Oct 2024
Popular Designations

Q1. What is the difference between abstract and interface

Ans.

Abstract class can have both abstract and non-abstract methods, while interface can only have abstract methods.

  • Abstract class can have constructors, fields, and methods, while interface can only have constants and method signatures.

  • A class can extend only one abstract class, but can implement multiple interfaces.

  • Abstract classes are used to define a common behavior for subclasses, while interfaces are used to define a contract for classes to implement.

  • Example: Abstract class ...read more

Add your answer

Q2. Delete the node in a linked list with given pointer

Ans.

To delete a node in a linked list with a given pointer, update the node's value and next pointer to the next node's value and next pointer.

  • Set the value of the node to the value of the next node

  • Set the next pointer of the node to the next node's next pointer

Add your answer

Q3. One coding problem in go lang

Ans.

Implement a function to reverse a string in Go lang

  • Create a function that takes a string as input

  • Convert the string into a slice of bytes for easier manipulation

  • Use a loop to iterate through the slice and reverse the order of characters

  • Convert the reversed slice back into a string and return it

Add your answer

Q4. reverse a linked list

Ans.

Reverse a linked list by changing the pointers direction

  • Iterate through the linked list and change the direction of pointers

  • Use three pointers - prev, current, next to reverse the list

  • Update the head of the linked list to the last node after reversing

Add your answer
Discover Punit Jasuja Productions interview dos and don'ts from real experiences

Q5. fibbonaci series print

Ans.

Print the Fibonacci series

  • Use a loop to generate Fibonacci numbers

  • Start with 0 and 1, then add the previous two numbers to get the next number

  • Repeat this process until reaching the desired length of the series

Add your answer

Q6. Loop in a linked list

Ans.

Loop in a linked list refers to a situation where a node in the list points to a previous node, creating a cycle.

  • Check for a loop using Floyd's cycle detection algorithm

  • Use two pointers, one moving at twice the speed of the other

  • If the two pointers meet at some point, there is a loop

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

Interview Process at Punit Jasuja Productions

based on 7 interviews
2 Interview rounds
Technical Round - 1
Technical Round - 2
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
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