Question
How many Squares and Triangles are there in the
following figure?Solution
In the given figure: • There are 3 squares. • Each square inside the rectangular shape contains: o 4 small triangles (each formed within the square), o 4 medium triangles (forming part of the square's borders). o This gives a total of 8 triangles per square. • The rectangular shape has 2 large triangles. Thus, the total number of triangles = (2 × 8) + 2 = 18 triangles. Therefore, the correct answer is (d), 3 Squares and 18 Triangles.
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?