Find Interview Questions for Top Companies
QualiTLabs Interview Questions and Answers
Ques:- Tell me about Indo china relation ?
Right Answer:
Indo-China relations refer to the diplomatic, economic, and cultural interactions between India and China. These relations have been complex, marked by historical conflicts, border disputes, and competition for regional influence. Despite these challenges, both countries engage in trade and dialogue, aiming to manage their differences and enhance cooperation in various sectors.
Ques:- A train crosses a platform of 150 m in 15 sec, same train crosses another platform of length 250 m in 20 sec. then what is the length of the train?
Asked In :- QualiTLabs,
Right Answer:
The length of the train is 100 meters.
Comments
Shanmukh Kancherla Sep 15, 2022

length of train = 150 m

Ayush Verma Mar 9, 2022

Let's take the length of the train to be X and the speed of the train to be V m/s.
(150+X) = V*15
Similarly
(250+X) = V*20

Dividing both equations and cancelling V, we get
(150+X)/(250+X) = 3/4
600+4X = 750+3X
X=150

Piyush Mathankar May 13, 2021

Length of train = 150 m

Ques:- In a queue of Children, Kashish is fifth from the left and Mona is Sixth from the right. When they interchange their places among themselves, Kashish becomes thirteenth from the left. Then, What will be Mona’s position from the right ?
Asked In :- QualiTLabs,
Right Answer:
Mona will be in the eighth position from the right.
Ques:- Find the number that has a 5:1 ratio to the number 10?
Asked In :- QualiTLabs,
Right Answer:
The number is 50.
Ques:- Simulate a chess board using C++ and data structures?
Right Answer:
```cpp
#include <iostream>
#include <vector>

class ChessBoard {
public:
ChessBoard() {
board.resize(8, std::vector<char>(8, '.')); // Initialize an 8x8 board with '.'
}

void display() {
for (const auto& row : board) {
for (const auto& cell : row) {
std::cout << cell << ' ';
}
std::cout << std::endl;
}
}

void placePiece(char piece, int row, int col) {
if (row >= 0 && row < 8 && col >= 0 && col < 8) {
board[row][col] = piece;
}
}

private:
std::vector<std::vector<char>> board; // 2D vector to represent the chess board
};

int main() {
ChessBoard chessBoard;
chessBoard.placePiece('K', 0, 4
Ques:- There are 9 apples, only 1 of those weigh less, rest all are similar in weight and all 9 are look alike. If given 2 attempts then how will you identify the one weighs lesser.
Right Answer:
Weigh 3 apples against 3 apples. If they balance, the lighter apple is among the remaining 3. If they don't balance, take the lighter group of 3 and weigh 1 apple against 1 apple. If they balance, the lighter apple is the one not weighed. If they don't balance, the lighter side has the lighter apple.
Ques:- How you can setup static files in django?
Right Answer:
To set up static files in Django, follow these steps:

1. In your Django project settings (`settings.py`), add the following:
```python
STATIC_URL = '/static/'
STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]
```

2. Create a directory named `static` in your project or app directory.

3. Place your static files (CSS, JavaScript, images) inside the `static` directory.

4. In your templates, load static files using:
```html
{% load static %}
<link rel="stylesheet" type="text/css" href="{% static 'yourfile.css' %}">
```

5. For production, run `collectstatic` to gather all static files:
```
python manage.py collectstatic
```
Ques:- Whats the difference between mod_python & mod_wsgi
Right Answer:
mod_python is an Apache module that allows embedding Python code within web applications, but it is outdated and no longer actively maintained. mod_wsgi, on the other hand, is a more modern and efficient Apache module designed specifically for hosting Python web applications using the WSGI (Web Server Gateway Interface) standard, making it the preferred choice for deploying Django applications.
Ques:- What is the difference between tuples and lists in python ?
Right Answer:
Tuples are immutable (cannot be changed after creation), while lists are mutable (can be modified). Additionally, tuples are defined using parentheses `()`, and lists are defined using square brackets `[]`.
Ques:- how you will add extra function/feature in admin part
Right Answer:
To add an extra function or feature in the Django admin, you can override the `ModelAdmin` class for your model. You can define custom methods and add them as actions, or you can customize the admin form by using `form` attribute in your `ModelAdmin`. Additionally, you can use `list_display`, `search_fields`, and `list_filter` to enhance the admin interface. Finally, register your model with the customized `ModelAdmin` class using `admin.site.register()`.
Prepare for the Qualitlabs online test with a comprehensive set of Qualitlabs coding questions and practice problems. Explore frequently asked Qualitlabs interview questions and understand the company’s hiring expectations. Get detailed insights into the Qualitlabs Hyderabad interview process and exam pattern. Access Qualitlabs previous question papers to familiarize yourself with test formats. Boost your chances of selection with targeted preparation and real test materials.
AmbitionBox Logo

What makes Takluu valuable for interview preparation?

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