Question
If in the number '854634168', '1' is added to all the
odd digits and '2' is subtracted from the all the even digits then, all the digits are arranged in ascending order from left to right. What is the sum of first four digits from the right end of the number thus formed?Solution
8Â Â Â Â Â Â Â Â Â 5Â Â Â Â Â Â Â Â Â 4Â Â Â Â Â Â Â Â Â 6Â Â Â Â Â Â Â Â Â 3Â Â Â Â Â Â Â Â Â 4Â Â Â Â Â Â Â Â Â 1Â Â Â Â Â Â Â Â Â 6Â Â Â Â Â Â Â Â Â 8 6Â Â Â Â Â Â Â Â Â 6Â Â Â Â Â Â Â Â Â 2Â Â Â Â Â Â Â Â Â 4Â Â Â Â Â Â Â Â Â 4Â Â Â Â Â Â Â Â Â 2Â Â Â Â Â Â Â Â Â 2Â Â Â Â Â Â Â Â Â 4Â Â Â Â Â Â Â Â Â 6 2Â Â Â Â Â Â Â Â Â 2Â Â Â Â Â Â Â Â Â 2Â Â Â Â Â Â Â Â Â 4Â Â Â Â Â Â Â Â Â 4Â Â Â Â Â Â Â Â Â 4Â Â Â Â Â Â Â Â Â 6Â Â Â Â Â Â Â Â Â 6Â Â Â Â Â Â Â Â Â 6 So, the sum of the first four digits from the right end is = (4 + 6 + 6 + 6) = 22.
Consider a Binary Search Tree (BST) with the following values inserted in sequence: 45, 32, 50, 15, 40, 47, 60. What will be the in-order traversal of t...
In the context of preemptive CPU scheduling, which of the following algorithms can potentially cause starvation, and how can this issue be mitigated?Â
- What is the purpose of Inheritance in Object-Oriented Programming?                            ...
Which of the following best describes the main advantage of a Management Information System (MIS)?
Which generation of computers is characterized by the use of Transistors as their primary electronic component?
Which of the following is a characteristic of an intelligent agent?
- In a relational database, which key uniquely identifies tuples within a table and can never contain NULL values?
The first line in any shell script begins with a _____
Which of the following best describes a significant difference between distributed parallel computing and cloud computing?Â
SMTP commands