Add office photos
Engaged Employer

Ernst & Young

3.4
based on 10.7k Reviews
Video summary
Filter interviews by

10+ Godfrey Phillips India Interview Questions and Answers

Updated 5 Feb 2024
Popular Designations

Q1. Intersection of Linked List Problem Statement

You are provided with two singly linked lists of integers. These lists merge at a node of a third linked list.

Your task is to determine the data of the node where ...read more

Add your answer

Q2. Pythagorean Triplets Detection

Determine if an array contains a Pythagorean triplet by checking whether there are three integers x, y, and z such that x2 + y2 = z2 within the array.

Input:

The first line contai...read more
Add your answer

Q3. Swap Two Numbers Problem Statement

Given two integers a and b, your task is to swap these numbers and output the swapped values.

Input:

The first line contains a single integer 't', representing the number of t...read more
Add your answer
Q4. What do you mean by data encapsulation?
Add your answer
Discover Godfrey Phillips India interview dos and don'ts from real experiences

Q5. What is the difference between arrays and linked list. Which one is better

Ans.

Arrays are fixed in size and have contiguous memory, while linked lists are dynamic and have non-contiguous memory.

  • Arrays have constant time access to elements, while linked lists have linear time access.

  • Arrays are better for random access and searching, while linked lists are better for insertion and deletion.

  • Arrays use less memory for storing elements, while linked lists use more memory due to additional pointers.

  • Example: Array - ['apple', 'banana', 'cherry'], Linked List -...read more

Add your answer
Q6. What is the garbage collector in Java?
Add your answer
Are these interview questions helpful?
Q7. In how many ways can you display HTML elements?
Add your answer
Q8. What are the features of HTML5?
Add your answer
Share interview questions and help millions of jobseekers 🌟
Q9. How can you optimize the loading of website assets?
Add your answer
Q10. Can static methods be overridden?
Add your answer
Q11. What is a higher order function?
Add your answer
Q12. What are closures in JavaScript?
Add your answer
Q13. Can you explain promises in JavaScript and describe its three states?
Add your answer
Q14. Can you explain hoisting in JavaScript?
Add your answer

Q15. What are OOPs Concepts?

Ans.

OOPs Concepts are fundamental principles of Object-Oriented Programming that help in organizing and designing code.

  • Encapsulation: Bundling data and methods that operate on the data into a single unit (object).

  • Inheritance: Allowing a class to inherit properties and behavior from another class.

  • Polymorphism: Ability of objects to take on multiple forms or have multiple behaviors.

  • Abstraction: Hiding the complex implementation details and showing only the necessary features of an ...read more

Add your answer

Q16. What is AVL tree?

Ans.

AVL tree is a self-balancing binary search tree where the heights of the two child subtrees of any node differ by at most one.

  • AVL tree was named after its inventors Adelson-Velsky and Landis.

  • It is a type of binary search tree where the heights of the two child subtrees of any node differ by at most one.

  • AVL trees are used to maintain a balanced tree structure, ensuring O(log n) time complexity for insertion, deletion, and search operations.

  • Rotations are performed on AVL trees ...read more

Add your answer

Q17. Share your college experienceon coding.

Ans.

I gained hands-on coding experience through coursework, projects, and internships during my college years.

  • Took courses in programming languages such as Java, C++, and Python.

  • Participated in coding competitions and hackathons to enhance my skills.

  • Completed coding projects in areas like web development, data analysis, and software engineering.

  • Interned at a tech company where I worked on real-world coding projects.

  • Collaborated with classmates on coding assignments and group proj...read more

Add your answer

Q18. Define LIFO, FIFO etc

Ans.

LIFO stands for Last In, First Out and FIFO stands for First In, First Out.

  • LIFO: Last In, First Out - the last item added to a stack is the first one to be removed.

  • FIFO: First In, First Out - the first item added to a queue is the first one to be removed.

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

Interview Process at Godfrey Phillips India

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

Top Associate Software Engineer Interview Questions from Similar Companies

3.8
 • 157 Interview Questions
3.9
 • 18 Interview Questions
4.7
 • 15 Interview Questions
4.3
 • 14 Interview Questions
3.7
 • 11 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
70 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