Add office photos
Employer?
Claim Account for FREE

Sourcefuse Technologies

3.6
based on 110 Reviews
Filter interviews by

20+ HOTEL CHANAKYA Interview Questions and Answers

Updated 20 Aug 2024
Popular Designations

Q1. Count Ways to Climb Stairs Problem

Given a staircase with a certain number of steps, you start at the 0th step, and your goal is to reach the Nth step. At every step, you have the option to move either one step...read more

Ans.

Count the number of distinct ways to climb stairs by moving either one step or two steps at a time.

  • Use dynamic programming to solve the problem efficiently.

  • Keep track of the number of ways to reach each step by considering the number of ways to reach the previous two steps.

  • Return the result modulo 10^9+7 to handle large outputs.

  • Example: For N=4, ways to climb are {0,1,2,3,4}, {0,1,3,4}, {0,2,4}. Total 3 ways.

Add your answer
Q2. How does Jenkins know when to execute a scheduled job or pipeline, and how is it triggered?
Ans.

Jenkins triggers scheduled jobs or pipelines based on configured cron expressions or triggers from external events.

  • Jenkins uses cron expressions to schedule jobs at specific times or intervals.

  • Jobs can also be triggered manually or by external events like code commits to a repository.

  • Pipeline jobs can be triggered by changes in a Git repository, webhook notifications, or other external triggers.

View 1 answer

Q3. Merge Sort Linked List Problem Statement

You are given a singly linked list of integers. Your task is to sort the linked list using the merge sort algorithm.

Explanation:

Merge Sort is a divide and conquer algo...read more

Ans.

Implement merge sort algorithm for singly linked list of integers.

  • Divide the linked list into two halves using slow and fast pointer technique.

  • Recursively sort the two halves.

  • Merge the sorted halves using a merge function.

  • Ensure to handle edge cases like empty list or single node list.

  • Example: Input: 3 1 2 -1, Output: 1 2 3 -1

Add your answer

Q4. Palindrome Substrings

Given a string STR, your objective is to determine the total count of palindromic substrings within it.

Input:

The first line contains an integer 't', the number of test cases. Each subseq...read more
Ans.

Count the total number of palindromic substrings in a given string.

  • Iterate through each character in the string and expand around it to find palindromic substrings.

  • Use dynamic programming to optimize the solution by storing previously computed results.

  • Consider both odd and even length palindromes while counting.

  • Example: For input 'abbc', the output should be 5 (['a', 'b', 'b', 'c', 'bb']).

Add your answer
Discover HOTEL CHANAKYA interview dos and don'ts from real experiences

Q5. Delete a Node from a Linked List

You are provided with a linked list of integers. Your task is to implement a function that deletes a node located at a specified position 'POS'.

Input:

The first line contains a...read more
Ans.

Implement a function to delete a node from a linked list at a specified position.

  • Traverse the linked list to find the node at the specified position.

  • Update the pointers of the previous and next nodes to skip the node to be deleted.

  • Handle cases where the position is at the beginning or end of the linked list.

  • Ensure to free the memory of the deleted node to avoid memory leaks.

Add your answer
Q6. What are the differences between declarative and scripted pipelines in Jenkins?
Ans.

Declarative pipelines focus on the desired state of the pipeline, while scripted pipelines allow for more flexibility and control.

  • Declarative pipelines use a more structured syntax and are recommended for simpler pipelines.

  • Scripted pipelines use Groovy script and allow for more complex logic and customization.

  • Declarative pipelines are easier to read and maintain, while scripted pipelines can be more powerful but harder to troubleshoot.

  • Declarative pipelines enforce best practi...read more

Add your answer
Are these interview questions helpful?
Q7. What are the differences between Amazon ECS and Amazon EKS?
Ans.

Amazon ECS is a container management service while Amazon EKS is a managed Kubernetes service.

  • Amazon ECS is a fully managed container orchestration service, while Amazon EKS is a managed Kubernetes service.

  • Amazon ECS is more tightly integrated with other AWS services like CloudWatch, IAM, and VPC, while Amazon EKS is more flexible and can run on any cloud provider.

  • Amazon ECS uses its own proprietary orchestration engine, while Amazon EKS uses Kubernetes for container orchestr...read more

Add your answer
Q8. What are the differences between Ingress and Load Balancer in Kubernetes?
Ans.

Ingress is a layer 7 HTTP routing mechanism while Load Balancer is a layer 4 TCP/UDP load balancer in Kubernetes.

  • Ingress is used to expose HTTP and HTTPS routes to services inside the cluster, while Load Balancer is used to distribute traffic across multiple nodes.

  • Ingress provides features like SSL termination, path-based routing, and name-based virtual hosting, while Load Balancer focuses on distributing traffic based on IP and port.

  • Ingress is a resource that manages externa...read more

Add your answer
Share interview questions and help millions of jobseekers 🌟
Q9. What are the use cases of running Docker inside Docker?
Ans.

Running Docker inside Docker is useful for testing, CI/CD pipelines, and isolating environments.

  • Testing different Docker configurations

  • Running CI/CD pipelines within containers

  • Isolating development environments

  • Building and testing Docker images within containers

Add your answer
Q10. What are the differences between Ansible and Jenkins?
Ans.

Ansible is a configuration management tool, while Jenkins is a continuous integration and continuous deployment tool.

  • Ansible is used for configuration management and automation of tasks, while Jenkins is used for automating the build, test, and deployment processes.

  • Ansible uses YAML for configuration management, while Jenkins uses Groovy scripts for defining build pipelines.

  • Ansible is agentless, meaning it does not require any agents to be installed on the target machines, wh...read more

Add your answer
Q11. What is the difference between Kubernetes Deployments and Pods?
Ans.

Kubernetes Deployments manage multiple Pods and provide features like scaling, rolling updates, and rollback.

  • Deployments manage the lifecycle of Pods, ensuring a desired state is maintained.

  • Pods are the smallest deployable units in Kubernetes, representing a single instance of a running process.

  • Deployments allow for easy scaling of applications by creating or deleting Pods based on the defined configuration.

  • Deployments support rolling updates, enabling seamless updates to app...read more

Add your answer
Q12. What is the difference between monolithic and microservices architecture?
Ans.

Monolithic architecture is a single, unified system while microservices architecture is a collection of small, independent services.

  • Monolithic architecture is a single, indivisible unit where all components are tightly coupled.

  • Microservices architecture breaks down the application into smaller, loosely coupled services that communicate through APIs.

  • Monolithic architecture can be harder to scale and maintain compared to microservices architecture.

  • Microservices architecture all...read more

Add your answer

Q13. How do you manage resources and allocate hours?

Ans.

I manage resources by assessing project needs, assigning tasks based on skill sets, and tracking hours to ensure efficient use of time.

  • Assess project requirements and determine resource needs

  • Assign tasks to team members based on their skill sets and availability

  • Track hours worked by each team member to ensure project stays on schedule

  • Adjust resource allocation as needed to address any bottlenecks or delays

Add your answer

Q14. MySQL-Aurora vs MySQL, Ansible vs Jenkins

Ans.

MySQL-Aurora is a managed service while MySQL requires manual management. Ansible and Jenkins are both automation tools.

  • MySQL-Aurora is a managed service provided by AWS, while MySQL requires manual management.

  • MySQL-Aurora is more scalable and fault-tolerant than MySQL.

  • Ansible is a configuration management tool that automates the deployment and management of software.

  • Jenkins is a continuous integration and continuous delivery (CI/CD) tool that automates the build, test, and d...read more

Add your answer

Q15. How do you contribute to Profit Margin?

Ans.

I contribute to profit margin by optimizing project timelines, reducing costs, and maximizing resources.

  • Optimizing project timelines to ensure efficient use of resources

  • Reducing costs through effective budget management and negotiation with vendors

  • Maximizing resources by assigning tasks effectively and utilizing team members' strengths

  • Implementing cost-saving measures such as automation or process improvements

  • Identifying and capitalizing on opportunities for revenue generatio...read more

Add your answer

Q16. How do you track project progress?

Ans.

I track project progress using project management software, regular status meetings, progress reports, and milestone tracking.

  • Utilize project management software to track tasks, timelines, and milestones

  • Hold regular status meetings with team members to discuss progress and address any issues

  • Generate progress reports to provide stakeholders with updates on project status

  • Track milestones to ensure project is on schedule and within budget

Add your answer

Q17. How do to track project progress?

Ans.

Project progress can be tracked through regular status updates, milestone tracking, and using project management tools.

  • Regular status updates from team members to track tasks completed and any roadblocks

  • Tracking milestones to ensure project is on schedule

  • Utilizing project management tools like Gantt charts or Kanban boards to visualize progress

  • Conducting regular meetings to discuss progress and address any issues

  • Using key performance indicators (KPIs) to measure project succe...read more

Add your answer

Q18. What is the lifecycle of a project?

Ans.

The project lifecycle consists of initiation, planning, execution, monitoring and controlling, and closing phases.

  • Initiation: Define the project, set goals, and obtain approval.

  • Planning: Develop a roadmap, allocate resources, and create a schedule.

  • Execution: Implement the plan, manage resources, and communicate progress.

  • Monitoring and Controlling: Track performance, make adjustments, and address issues.

  • Closing: Finalize deliverables, obtain acceptance, and close out the proje...read more

Add your answer

Q19. Explain with SQL tables how join work and What are inner join and Left join, Right join?

Ans.

SQL joins combine rows from two or more tables based on a related column between them.

  • Inner join returns rows when there is a match in both tables based on the join condition.

  • Left join returns all rows from the left table and the matched rows from the right table.

  • Right join returns all rows from the right table and the matched rows from the left table.

Add your answer

Q20. Do you know Project use cases?

Ans.

Project use cases refer to specific scenarios or situations where a project management approach is applied to achieve specific goals.

  • Project use cases involve defining project scope, objectives, deliverables, timelines, and resources.

  • Examples include software development projects, construction projects, event planning projects, and marketing campaigns.

  • Project use cases help ensure that projects are completed efficiently and effectively, meeting stakeholder expectations and re...read more

Add your answer

Q21. what tools do you use as a PM?

Ans.

As a PM, I use various tools such as project management software, communication tools, and collaboration platforms.

  • Project management software (e.g. Microsoft Project, Asana)

  • Communication tools (e.g. Slack, Microsoft Teams)

  • Collaboration platforms (e.g. Google Drive, Trello)

Add your answer

Q22. How would you approach slow DB queries?

Add your answer

Q23. Which command is use to see lvm?

Ans.

The command used to see LVM is 'lvdisplay'.

  • Use 'lvdisplay' command to see information about logical volumes in LVM.

  • You can also use 'lvscan' to scan all disks for LVM volumes.

  • To see a list of all logical volumes, use 'lvs'.

View 1 answer

Q24. What do you understand by lvm?

Ans.

LVM stands for Logical Volume Manager, a tool used in Linux to manage storage by creating logical volumes from physical volumes.

  • LVM allows for dynamic resizing of logical volumes without downtime.

  • It provides features like snapshots, striping, mirroring, and thin provisioning.

  • Example: Creating a logical volume 'lv_data' from physical volume 'sda2'.

Add your answer

Q25. Explain newer features in ECMAScript.

Add your answer

Q26. Mode of Recruitments

Ans.

We use a variety of recruitment methods including job postings, employee referrals, social media, and recruiting events.

  • Job postings on various job boards and company website

  • Employee referrals and internal job postings

  • Social media platforms like LinkedIn, Twitter, and Facebook

  • Recruiting events such as job fairs and campus recruiting

  • Direct sourcing and headhunting through professional networks

  • Partnering with staffing agencies for contract and temporary positions

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

Interview Process at HOTEL CHANAKYA

based on 12 interviews
Interview experience
2.7
Poor
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

4.0
 • 2.2k Interview Questions
3.8
 • 281 Interview Questions
3.4
 • 179 Interview Questions
3.9
 • 179 Interview Questions
3.9
 • 145 Interview Questions
View all
Top Sourcefuse Technologies 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
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