Add office photos
Engaged Employer

TradeIndia (Infocom Network Private Limited)

3.4
based on 855 Reviews
Video summary
Filter interviews by

Hughes & Hughes Chem Limited Interview Questions and Answers

Updated 11 Oct 2024
Popular Designations

Q1. what is difference between list and tuple?

Ans.

List is mutable and can be modified, while tuple is immutable and cannot be modified.

  • List is defined using square brackets [], while tuple is defined using parentheses ().

  • Elements in a list can be added, removed, or modified, while elements in a tuple cannot be modified.

  • Lists are typically used for collections of similar items, while tuples are used for collections of different items.

  • Lists have more built-in methods and functions compared to tuples.

  • Lists are generally used wh...read more

Add your answer

Q2. find second highest salary of employee using django orm?

Ans.

Find second highest salary of employee using Django ORM.

  • Use the Django ORM to query the Employee model

  • Order the employees by salary in descending order

  • Skip the first employee (highest salary) and get the second employee (second highest salary)

Add your answer

Q3. nth maximum element in an array with efficiency O(n) time

Ans.

Find the nth maximum element in an array efficiently in O(n) time

  • Iterate through the array once to find the maximum element

  • Repeat the process n times to find the nth maximum element

  • Use a variable to keep track of the current maximum element

Add your answer

Q4. find no of occurance in list output in dict

Ans.

The question asks to find the number of occurrences of each element in a list and output the result in a dictionary.

  • Iterate through the list and use a dictionary to keep track of the count of each element.

  • If an element is already in the dictionary, increment its count by 1. Otherwise, add it to the dictionary with a count of 1.

  • Finally, return the dictionary with the counts of each element.

Add your answer
Discover Hughes & Hughes Chem Limited interview dos and don'ts from real experiences

Q5. what is django middleware?

Ans.

Django middleware is a component that sits between the web server and the view, allowing for processing of requests and responses.

  • Middleware is a way to modify or process requests and responses globally in a Django application.

  • It can be used for authentication, session management, caching, logging, and more.

  • Middleware classes are defined in settings.py and executed in order.

  • Examples of middleware include AuthenticationMiddleware, SessionMiddleware, and CsrfViewMiddleware.

Add your answer

Q6. what is decorator?

Ans.

A decorator is a design pattern that allows behavior to be added to an individual object dynamically.

  • Decorators enhance the functionality of an object without modifying its structure.

  • They provide a flexible alternative to subclassing for extending functionality.

  • Decorators can be stacked to add multiple behaviors to an object.

  • Examples of decorators include logging, caching, and authentication decorators.

Add your answer

Q7. what is generator?

Ans.

A generator is a function that can be paused and resumed, allowing it to produce a sequence of values over time.

  • Generators are defined using the function* syntax in JavaScript.

  • They use the yield keyword to pause execution and return a value.

  • Generators can be iterated over using a for...of loop.

  • They are useful for generating infinite sequences or lazily computing values.

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

Interview Process at Hughes & Hughes Chem Limited

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
 • 45 Interview Questions
4.0
 • 35 Interview Questions
3.8
 • 35 Interview Questions
4.0
 • 14 Interview Questions
3.5
 • 14 Interview Questions
3.6
 • 12 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