Add office photos
Engaged Employer

Hoonartek

3.7
based on 144 Reviews
Filter interviews by

Thermolab Healthcare Interview Questions and Answers

Updated 5 Feb 2024

Q1. Difference between DELETE and TRUNCATE statement & DROP and TRUNCATE?

Ans.

DELETE removes specific rows while TRUNCATE removes all rows. DROP deletes the entire table while TRUNCATE only removes data.

  • DELETE is a DML command while TRUNCATE is a DDL command.

  • DELETE can be rolled back while TRUNCATE cannot be rolled back.

  • DELETE is slower than TRUNCATE.

  • DROP deletes the entire table and its structure while TRUNCATE only removes data.

  • TRUNCATE resets the identity of the table while DELETE does not.

  • Examples: DELETE FROM table_name WHERE condition; TRUNCATE T...read more

Add your answer

Q2. List inside of a list in and how to do it

Ans.

To create a list inside a list, use nested HTML

    and
  • tags.

    • Create an outer

        tag

      • Within the outer

          tag, create an inner
            tag

          • Within the inner

              tag, create
            • tags for each item in the sublist

            • Repeat for each sublist

            • Example:

              • Item 1
                • Subitem 1
                • Subitem 2
              • Item 2
                • Subitem 1
                • Subitem 2

Add your answer

Q3. SQL queries. Find the second highest salary from the table.

Ans.

Find the second highest salary from a table using SQL queries.

  • Use the SELECT statement to retrieve the salaries from the table.

  • Use the ORDER BY clause to sort the salaries in descending order.

  • Use the LIMIT clause to limit the result set to the second highest salary.

  • Use a subquery to exclude the highest salary from the result set.

Add your answer

Q4. Different Design Patterns: Singleton, Factory, Abstract Factory design pattern.

Ans.

Singleton, Factory, and Abstract Factory are design patterns used in software development.

  • Singleton pattern ensures that only one instance of a class is created and provides a global point of access to it.

  • Factory pattern provides a way to create objects without exposing the creation logic to the client and refers to the newly created object through a common interface.

  • Abstract Factory pattern provides an interface for creating families of related or dependent objects without s...read more

Add your answer
Discover Thermolab Healthcare interview dos and don'ts from real experiences

Q5. What is __init__() in python

Ans.

The __init__() method is a constructor method in Python that is automatically called when an object is created.

  • It initializes the attributes of an object

  • It takes self as the first parameter

  • It can take additional parameters to initialize the object's attributes

  • It can be overridden to customize object initialization

Add your answer

Q6. OOPs concept inside polymorphism

Ans.

Polymorphism is the ability of an object to take on many forms. In OOPs, it allows objects of different classes to be treated as if they are the same type.

  • Polymorphism allows for code reusability and flexibility

  • It can be achieved through method overloading or method overriding

  • Example: A parent class Animal has a method called makeSound(). Child classes Dog and Cat can override this method to make their own unique sounds.

  • Polymorphism can also be achieved through interfaces, wh...read more

Add your answer

Q7. OOPs concepts with examples.

Ans.

OOPs concepts are fundamental to object-oriented programming. They include inheritance, encapsulation, abstraction, and polymorphism.

  • Inheritance allows a class to inherit properties and methods from a parent class. For example, a Car class can inherit from a Vehicle class.

  • Encapsulation is the practice of hiding data and methods within a class. For example, a BankAccount class can hide the account balance from outside access.

  • Abstraction is the process of simplifying complex sy...read more

Add your answer

Q8. regex ffunction with if/else logic

Ans.

Regex function with if/else logic

  • Use regex to match a pattern in a string

  • Use if/else statements to execute different code based on the match

  • Example: if string matches 'hello', print 'world', else print 'goodbye'

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 Associate Consultant Interview Questions from Similar Companies

3.8
 • 143 Interview Questions
3.7
 • 59 Interview Questions
3.6
 • 26 Interview Questions
3.7
 • 23 Interview Questions
3.8
 • 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