Add office photos
Engaged Employer

Cvent

3.4
based on 453 Reviews
Filter interviews by

Bdh Industries Interview Questions and Answers

Updated 5 Feb 2024
Popular Designations
Q1. Detect cycle in undirected graph

You have been given an undirected graph with 'N' vertices and 'M' edges. The vertices are labelled from 1 to 'N'.

Your task is to find if the graph contains a cycle or not.

A pat...read more

View 4 more answers
Q2. Implement 3 stacks in a single array

Given a sequence of queries of insertion and deletion from 3 stacks, you need to implement three stacks using a single array such that the size of the array doesn’t exceed th...read more

View 3 more answers
Q3. Compiler Design Question

Difference between Compiled and Interpreted Language?

Add your answer

Q4. Difference between Interpreted Language and compiled Language

Ans.

Interpreted languages are executed directly by the interpreter while compiled languages are first converted to machine code.

  • Interpreted languages are slower than compiled languages as they are executed line by line.

  • Compiled languages are faster as the code is already converted to machine code.

  • Interpreted languages are easier to debug as errors can be caught at runtime.

  • Compiled languages are harder to debug as errors can only be caught during compilation.

  • Examples of interprete...read more

Add your answer
Discover Bdh Industries interview dos and don'ts from real experiences

Q5. Implement 3 stacks using 1 array

Ans.

Implement 3 stacks using 1 array

  • Divide the array into 3 equal parts

  • Use pointers to keep track of top of each stack

  • Push and pop elements based on the pointer of the respective stack

Add your answer

Q6. Detect cycle in a graph

Ans.

Detect cycle in a graph

  • Use Depth First Search (DFS) algorithm to traverse the graph

  • Maintain a visited set to keep track of visited nodes

  • If a node is visited again during DFS, then a cycle exists

  • If all nodes are visited and no cycle is found, then no cycle exists

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Engineer Interview Questions from Similar Companies

3.8
 • 155 Interview Questions
3.9
 • 58 Interview Questions
3.7
 • 24 Interview Questions
3.6
 • 15 Interview Questions
4.0
 • 14 Interview Questions
3.5
 • 10 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
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