Question
How many numbers are there between 99 and 1000 such that
the digit 8 occupies the units place?Solution
These are of the form _ _ 8, where the last digit is 8.
So the units digit = 8.
Now, the hundreds digit can range from 1 to 9 (because it's a 3-digit number).
The tens digit can range from 0 to 9.
- Hundreds digit: 1 to 9 β 9 choices
- Tens digit: 0 to 9 β 10 choices
- Units digit: fixed as 8 β 1 choice
So, total number of such numbers = 9 x 10 x 1 = 90
What is the primary advantage of using shared memory for IPC?
What is the role of a device driver in an operating system?
What is a VPN (Virtual Private Network) used for in cybersecurity?
Devices which are used to receive data from central processing unit are classified as
Which data structure follows the "last-in, first-out" (LIFO) principle?
What is the primary advantage of using public key cryptography over symmetric key cryptography?
Which layer of the OSI model is responsible for routing and forwarding data packets?
Which application layer protocol is commonly used for transferring web pages over the internet?
In which part of a function are local variables typically declared?
What is the difference between float and double in C?