Question
Three different positions of the same dice, which has
numbers 56, 57, 58, 59, 60 and 61 are shown. Select the number that will be on the face opposite to the one showing '61'.Solution
The logic followed here is as follows: In such questions, first consider common side in both dices. Here, '56' is the common side in figures 'a', 'b' and 'c'. In clockwise direction, the sequence will be (56, 57, 58) in figure 'a'. In clockwise direction, the sequence will be (56, 59, 60) in figure 'b'. In clockwise direction, the sequence will be (56, 57, 58) in figure 'c'. So, '57' is opposite to '59', '58' is opposite to '60'. Clearly, '56' must be opposite to '61'. Hence, option b
Which tree traversal is most suitable for finding the shortest path in an unweighted graph represented as a tree?
Which C operator is used to access a value at a memory address stored in a pointer?
Which Python keyword is used to define a function?
Which of the following statements is correct for Python lists?
Which of the following is used to handle exceptions in Java?
- Which network device operates at the Data Link Layer of the OSI model and helps to filter and forward data between LAN segments?
In Python, what does len() function do?
Which algorithm is used to find the shortest path from a single source in graphs with negative weights?
In Java, which method is used to start a thread?
Which of the following is a valid C++ constructor?