Question
The mirror image of a clock shows a time of 02:41hrs.
What is the time shown in the clock?Solution
The logic followed here is as follows, 1) If the time is between 1 and 11 then to find the actual time, the given time is subtracted by 11:60. 2) If the time is between 11 and 1 then to find the actual time, the given time is subtracted by 23:60. As, the time is between 1 and 11, so, the given time is subtracted by 11:60. 11:60 - 02:41 = 09:19hrs So, the time shown in the clock is 09:19hrs. Hence, option c.
Which Python keyword is used to define a function?
Which type of Memory is typically the fastest in a computer system?
In C, which function is used to release dynamically allocated memory?
Which Java keyword is used to inherit a class?
Which algorithm is used to find the shortest path from a single source in graphs with negative weights?
In C++, which feature allows hiding the internal details of a class?
Which of the following algorithms is most commonly used in Operating Systems for deadlock prevention?
In C, which function is used to dynamically allocate memory?
In mobile computing, which type of network allows devices to connect directly to each other without using a central router or switch?
Which of the following sorting algorithms is stable?