Find Interview Questions for Top Companies
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:- 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:- Volvo claims it is the safest car in the world because fewer people die in a Volvo than in a car made by any other manufacturer in the world. What’s wrong with this conclusion?
Right Answer:
The conclusion is flawed because it does not account for factors such as the number of Volvo cars on the road, the driving conditions, or the demographics of Volvo drivers. Fewer deaths in Volvos could be due to these factors rather than the car's inherent safety.
Ques:- How can a cake(circular) be cut into 8 pieces by making just 3 cuts?
Right Answer:
Make the first cut vertically through the center, the second cut horizontally through the center, and the third cut diagonally across the cake, intersecting the first two cuts.
Ques:- There were 165,000 American children born with autism last year. What % of the babies born that year are autistic?
Right Answer:
To determine the percentage of babies born that year who are autistic, we need the total number of babies born that year. Without that information, we cannot calculate the percentage.
Ques:- How long does it take a Starbucks to serve enough coffee to fill the gas tank of a Hummer?
Right Answer:
It depends on the size of the gas tank and the rate at which Starbucks serves coffee, but generally, it would take a very long time, likely several hours or more.


AmbitionBox Logo

What makes Takluu valuable for interview preparation?

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