Premium Employer

HCLTech

3.5
based on 35.7k Reviews
Filter interviews by

20+ Dnata Interview Questions and Answers

Updated 28 Nov 2024
Popular Designations

Q1. what is use of Method reference instead lambada expressions in java 8?

Ans.

Method references provide a more concise way to refer to methods by name instead of using lambda expressions.

  • Method references can make code more readable and maintainable by reducing boilerplate code.

  • They can be used to refer to static methods, instance methods, and constructors.

  • Example: list.forEach(System.out::println) is equivalent to list.forEach(item -> System.out.println(item)).

Add your answer

Q2. write a java program to make upper case of first letter in the each word in the below String "i am a java programmer"?

Ans.

Java program to capitalize first letter of each word in a given string

  • Split the input string by space to get individual words

  • Iterate through each word and capitalize the first letter

  • Join the words back together to form the final capitalized string

Add your answer

Q3. What is the use of the yield() method in threading?

Ans.

The yield() method in threading is used to give up the CPU and allow other threads to run.

  • Allows other threads to run by giving up the CPU temporarily

  • Useful for preventing one thread from dominating the CPU

  • Can be used to implement cooperative multitasking

Add your answer

Q4. what is vertical and horizontal scaling in micro services?

Ans.

Vertical scaling increases the capacity of a single server, while horizontal scaling adds more servers to distribute the load.

  • Vertical scaling involves increasing the resources of a single server, such as CPU, RAM, or storage.

  • Horizontal scaling involves adding more servers to distribute the load, often done through containerization or virtualization.

  • Vertical scaling is limited by the capacity of a single server, while horizontal scaling allows for more flexibility and scalabi...read more

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

Q5. How the escalation matrix works in case of production defects?

Ans.

Escalation matrix defines the process for escalating production defects based on severity and impact.

  • Escalation matrix typically includes levels of escalation, responsible parties at each level, and criteria for escalating defects.

  • For example, a Level 1 escalation may involve the development team, while a Level 2 escalation may involve senior management.

  • Criteria for escalation may include severity of the defect, impact on users or business operations, and potential solutions....read more

Add your answer

Q6. is it okay to give the Deliverables under pressure?

Ans.

Yes, it is okay to give deliverables under pressure as long as quality is not compromised.

  • Meeting deadlines is important in software development.

  • Pressure can sometimes lead to increased focus and productivity.

  • Communication with stakeholders about realistic timelines is key.

  • Prioritizing tasks and managing time effectively can help in delivering under pressure.

Add your answer
Are these interview questions helpful?

Q7. what is hash collision and how it can be handled?

Ans.

Hash collision occurs when two different inputs produce the same hash value. It can be handled by using techniques like chaining or open addressing.

  • Hash collision is a common issue in hash tables where different keys produce the same hash value.

  • One way to handle hash collisions is by using chaining, where each bucket in the hash table stores a linked list of key-value pairs with the same hash value.

  • Another way to handle hash collisions is through open addressing, where if a c...read more

Add your answer

Q8. Can you have ability to handle tasks individually?

Ans.

Yes, I have the ability to handle tasks individually.

  • I have a proven track record of successfully completing projects on my own.

  • I am self-motivated and can prioritize tasks effectively.

  • I have strong problem-solving skills which allow me to tackle challenges independently.

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. what is your current CTC and expected CTC?

Ans.

My current CTC is $100,000 and my expected CTC is $120,000.

  • Current CTC: $100,000

  • Expected CTC: $120,000

Add your answer

Q10. What are the different type of classes?

Ans.

Classes in object-oriented programming are of four types: abstract, concrete, final, and static.

  • Abstract classes cannot be instantiated and are used as base classes for other classes.

  • Concrete classes can be instantiated and are used to create objects.

  • Final classes cannot be inherited and are used to prevent further modification.

  • Static classes cannot be instantiated and are used to group related methods and properties.

Add your answer

Q11. Why snowflake is different from other databases?

Ans.

Snowflake is a cloud-based data warehousing platform that separates storage and compute, allowing for scalable and efficient data processing.

  • Snowflake uses a unique architecture that separates storage and compute resources, enabling on-demand scaling for both without any manual intervention.

  • It supports multiple data types and semi-structured data like JSON, Avro, Parquet, etc.

  • Snowflake offers automatic optimization of queries through its query optimizer, reducing the need for...read more

Add your answer

Q12. Whats is the views in the databases?

Ans.

Views in databases are virtual tables that display data from one or more tables.

  • Views are created using SELECT statements.

  • They can be used to simplify complex queries.

  • Views can also be used to restrict access to sensitive data.

  • Changes made to the underlying tables are reflected in the view.

  • Examples of views include employee information, customer orders, and product inventory.

Add your answer

Q13. Find third mkst highest salary of an employee using sql

Ans.

Use SQL query with window function to find third highest salary of an employee.

  • Use ROW_NUMBER() function to assign a unique row number to each record based on salary in descending order

  • Filter the result where row number is 3 to get the third highest salary

Add your answer

Q14. Find average salary of employees of a particular dept.

Ans.

To find the average salary of employees in a particular department, calculate the total salary of all employees in that department and divide by the number of employees.

  • Retrieve the salary of all employees in the particular department

  • Calculate the total salary by summing up all individual salaries

  • Divide the total salary by the number of employees to get the average salary

Add your answer

Q15. What is remote Attribute

Ans.

Remote Attribute is used in ASP.NET MVC to validate that a property value is valid when the property is posted to the server.

  • Used in ASP.NET MVC for client-side validation

  • Validates that a property value is valid when posted to the server

  • Can be used to check if a property value is unique in the database

Add your answer

Q16. What is the interface?

Ans.

An interface is a contract between two components that defines the communication between them.

  • It specifies the methods, properties, and events that a component exposes to the outside world.

  • It hides the implementation details of a component and provides a standardized way to interact with it.

  • It allows for loose coupling between components, enabling them to be developed and tested independently.

  • Examples include APIs, GUIs, and network protocols.

Add your answer

Q17. What are the cursors?

Ans.

Cursors are database objects used to manipulate data in a result set.

  • Cursors are used to fetch and manipulate data row by row.

  • They are commonly used in stored procedures and triggers.

  • Cursors can be forward-only, static, dynamic, or keyset-driven.

  • They can be used to update or delete data in a result set.

  • However, they can be resource-intensive and should be used sparingly.

Add your answer

Q18. what is domain driven design

Ans.

Domain Driven Design is an approach to software development that focuses on the core domain and domain logic.

  • Focuses on understanding and modeling the core domain of the software

  • Emphasizes collaboration between domain experts and developers

  • Encourages the use of a common language to bridge the communication gap between technical and non-technical stakeholders

  • Promotes the use of domain models to capture and express the complexity of the domain

  • Helps in creating a flexible and ma...read more

Add your answer

Q19. What is clustering?

Ans.

Clustering is a technique used in data mining to group similar data points together based on certain criteria.

  • Clustering is an unsupervised machine learning technique.

  • It is used to discover hidden patterns or structures in data.

  • Examples include K-means clustering, hierarchical clustering, and DBSCAN.

Add your answer

Q20. Use of include()

Ans.

include() is a PHP function used to include and evaluate a specified file.

  • include() is used to include and evaluate a specified file in PHP code.

  • It is commonly used to include reusable code snippets or libraries.

  • The included file is processed as if it were part of the calling file.

  • If the file cannot be included, a warning is generated but the script will continue to execute.

Add your answer

Q21. Basic codes of sql

Ans.

Basic SQL codes include SELECT, INSERT, UPDATE, DELETE.

  • SELECT statement retrieves data from a database

  • INSERT statement adds new records to a table

  • UPDATE statement modifies existing records in a table

  • DELETE statement removes records from a table

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

Interview Process at Dnata

based on 11 interviews
3 Interview rounds
Technical Round
HR Round
Personal Interview1 Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Senior Software Developer Interview Questions from Similar Companies

3.8
 • 17 Interview Questions
3.7
 • 16 Interview Questions
3.6
 • 16 Interview Questions
3.8
 • 11 Interview Questions
3.4
 • 11 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