Find Interview Questions for Top Companies
Moon active Interview Questions and Answers
Ques:- There is a 12 km road and a contractor who is in-charge of repairing it. Contractor updates you about the work which is done in patches. Like “Road between 3.2 km to 7.9 km repaired ”, “Road between 1.21 km to 3.2 km repaired”. You have a manager who enquires about the longest continuous patch so far. It was a long discussion and I gave solution in O(nlogn) where n is the number of updates by the contractor
Ques:- Explain inheritance in python with an example ?
Right Answer:
Inheritance in Python allows a class (child class) to inherit attributes and methods from another class (parent class). This promotes code reuse and organization.

Example:

```python
class Animal: # Parent class
def speak(self):
return "Animal speaks"

class Dog(Animal): # Child class
def bark(self):
return "Dog barks"

# Usage
dog = Dog()
print(dog.speak()) # Output: Animal speaks
print(dog.bark()) # Output: Dog barks
```
Ques:- How to connect mongodb in Django ?
Right Answer:
To connect MongoDB in Django, you can use the `djongo` package or `mongoengine`. Here’s how to do it with `djongo`:

1. Install `djongo`:
```bash
pip install djongo
```

2. Update your `settings.py` to configure the database:
```python
DATABASES = {
'default': {
'ENGINE': 'djongo',
'NAME': 'your_database_name',
'ENFORCE_SCHEMA': False,
'CLIENT': {
'host': 'your_mongodb_uri',
}
}
}
```

3. Use Django models as usual to interact with MongoDB.

For `mongoengine`, follow these steps:

1. Install `mongoengine`:
```bash
pip install mongoengine
```

2. Connect to MongoDB in your Django app:
```python
from mongoengine import connect

connect('
Ques:- What is clustering in data analysis and how is it different from classification
Right Answer:
Clustering in data analysis is the process of grouping similar data points together based on their characteristics, without prior labels. It is an unsupervised learning technique. In contrast, classification involves assigning predefined labels to data points based on their features, using a supervised learning approach.
Ques:- What is the role of SQL in data analysis
Right Answer:
SQL (Structured Query Language) is used in data analysis to query, manipulate, and manage data stored in relational databases. It allows analysts to retrieve specific data, perform calculations, filter results, and aggregate information to derive insights from large datasets.
Ques:- What is the purpose of feature engineering in data analysis
Right Answer:
The purpose of feature engineering in data analysis is to create, modify, or select variables (features) that improve the performance of machine learning models by making the data more relevant and informative for the analysis.
Ques:- How do you handle missing data in a dataset
Right Answer:
To handle missing data in a dataset, you can use the following methods:

1. **Remove Rows/Columns**: Delete rows or columns with missing values if they are not significant.
2. **Imputation**: Fill in missing values using techniques like mean, median, mode, or more advanced methods like KNN or regression.
3. **Flagging**: Create a new column to indicate missing values for analysis.
4. **Predictive Modeling**: Use algorithms to predict and fill in missing values based on other data.
5. **Leave as Is**: In some cases, you may choose to leave missing values if they are meaningful for analysis.
Ques:- What is a hypothesis and how do you test it
Right Answer:
A hypothesis is a specific, testable prediction about the relationship between two or more variables. To test a hypothesis, you can use the following steps:

1. **Formulate the Hypothesis**: Clearly define the null hypothesis (no effect or relationship) and the alternative hypothesis (there is an effect or relationship).
2. **Collect Data**: Gather relevant data through experiments, surveys, or observational studies.
3. **Analyze Data**: Use statistical methods to analyze the data and determine if there is enough evidence to reject the null hypothesis.
4. **Draw Conclusions**: Based on the analysis, conclude whether the hypothesis is supported or not, and report the findings.
Moon Active is a leading mobile game development company known for creating innovative and engaging gaming experiences. With a focus on creativity, innovation, and user satisfaction, Moon Active has gained recognition for its popular titles, including Coin Master and Pirate Kings. At Moon Active, we are passionate about creating games that captivate players and provide them with endless hours of entertainment. Our team of talented developers, designers, and storytellers work tirelessly to craft immersive gaming experiences that keep players coming back for more. One of the key strengths of Moon Active lies in our commitment to community engagement and collaboration. We actively listen to player feedback and incorporate it into our game development process, ensuring that our games evolve and improve over time based on user input.
AmbitionBox Logo

What makes Takluu valuable for interview preparation?

1 Lakh+
Companies
6 Lakh+
Interview Questions
50K+
Job Profiles
20K+
Users