Add office photos
Engaged Employer

Tech Q Ware Technologies

4.7
based on 29 Reviews
Filter interviews by

10+ DAR Engineering Interview Questions and Answers

Updated 28 Jan 2025

Q1. How to cut a cake in eight equal parts by using just three slices

Ans.

Cut the cake horizontally with the first two slices, then stack the pieces and cut vertically with the third slice.

  • Cut the cake horizontally with the first slice, creating two equal halves.

  • Stack the two halves on top of each other and cut horizontally again with the second slice, creating four equal quarters.

  • Finally, stack the four quarters and cut vertically with the third slice, creating eight equal parts.

Add your answer

Q2. How to define models and connect with specific database?

Ans.

Models are defined using classes or schemas in programming languages like Python or JavaScript, and connected to a specific database using ORM tools like SQLAlchemy or Mongoose.

  • Define models using classes or schemas that represent the structure of data in the database

  • Use ORM (Object-Relational Mapping) tools to connect models to the database

  • Specify the database connection details in the configuration file of the application

  • Use migrations to create or update database tables ba...read more

Add your answer

Q3. What is Oops and explain four pillars of Oops

Ans.

Oops stands for Object-Oriented Programming. The four pillars of Oops are Inheritance, Encapsulation, Abstraction, and Polymorphism.

  • Inheritance allows a class to inherit properties and behavior from another class. For example, a 'Car' class can inherit from a 'Vehicle' class.

  • Encapsulation refers to the bundling of data and methods that operate on the data into a single unit. For example, using private variables and public methods in a class.

  • Abstraction involves hiding the com...read more

Add your answer

Q4. What is json and how to access elements in json

Ans.

JSON is a lightweight data interchange format commonly used in web development to store and transmit data.

  • JSON stands for JavaScript Object Notation

  • It uses key-value pairs to store data

  • Access elements in JSON using dot notation or bracket notation

  • Example: accessing 'name' in JSON object - data.name

  • Example: accessing 'age' in JSON array - data[0].age

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

Q5. How to remove duplicates from an array

Ans.

Use a Set to remove duplicates from an array of strings.

  • Create a Set from the array to automatically remove duplicates

  • Convert the Set back to an array to get unique values

Add your answer

Q6. Major difference between list and tuple?

Ans.

List is mutable, tuple is immutable in Python.

  • List can be modified after creation, tuple cannot.

  • List uses square brackets [], tuple uses parentheses ().

  • List is slower than tuple due to mutability.

  • Example: list_example = [1, 2, 3], tuple_example = (1, 2, 3)

Add your answer

Q7. What is class method vs instance methods

Ans.

Class methods are called on the class itself, while instance methods are called on instances of the class.

  • Class methods are defined using 'self' keyword in the method name.

  • Instance methods are defined without 'self' keyword in the method name.

  • Class methods are used for operations that are not specific to any instance of the class.

  • Instance methods are used for operations that are specific to individual instances of the class.

Add your answer

Q8. Difference between extend prepand include?

Ans.

extend adds class methods, prepend adds instance methods, include adds module methods

  • extend adds methods to a class as class methods

  • prepend adds methods to a class as instance methods

  • include adds methods to a class as module methods

Add your answer

Q9. What is mixins in ruby

Ans.

Mixins in Ruby are a way to add functionality to a class without inheritance.

  • Mixins are modules that can be included in a class to extend its functionality.

  • They allow for code reuse and help avoid duplication.

  • Mixins are included using the 'include' keyword in Ruby.

Add your answer

Q10. Write custom flatten in ruby

Ans.

Custom implementation of flatten method in Ruby

  • Create a recursive function to iterate through the array elements

  • Check if each element is an array or not, if it is an array then call the function recursively

  • Concatenate the elements into a single array and return the result

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

Interview Process at DAR Engineering

based on 7 interviews
Interview experience
4.1
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

3.4
 • 791 Interview Questions
3.8
 • 257 Interview Questions
4.0
 • 245 Interview Questions
4.4
 • 218 Interview Questions
3.9
 • 140 Interview Questions
3.8
 • 133 Interview Questions
View all
Top Tech Q Ware 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
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