Consider rectangle ABCD. If mADF=60°, then what is the mFDC?
a) 60°
b) 30°
c) 90°
d) 120°
e) 45°
f) None of the above
Solution
Given figure ABCD is a rectangle.
Looking into the properties of rectangle,
1) All the angles in a rectangle are right angles i.e. equal to 90 degrees.
2) Opposite sides are parallel and equal.
By the first property stated above,
m(D) = 90 degrees
Angle D can be written as given in the following
m(D) = m(ADF) + m(FDC) = 90
Given m(ADF) = 60
Therefore, 60 + m(FDC) = 90
m(FDC) = 30 degress.
Hence option B) 30 is the required answer..
Discuss about Header Node And also write a program for unordered si.pdf
1. Discuss about Header Node? And also write a program for unordered single linked list and
linked implementation of QUEUE?
Solution
Header node:
Sometimes it is desire to keep an extra node at the front of a List. Such a node doesn’t represent
an item in the List and is called a Header Node or a List Header. The Information field of such
Header node might be unused but the Next field maintains the first node address. More often the
information of such a node could be used to keep Global Information about the Entire List.
One of the applications of Header node is the information portion of the Header node contains
the number of nodes (not including Header) in the List. In this Structure the Header must be
adjusted the total number of nodes when we apply addition or deletion operation on the List. We
can directly obtained the total number of nodes without traversing the entire List.
By using this application, we can develop Data Structure Stack easily. Since Header node
information field maintains the number of elements that the Stack contains.
Another application is we can simply develop the Data Structure Queue. Until now, two external
pointers, Front & Rear, were necessary for a List to represent a Queue. However, now only a
single external pointer is sufficient to maintain a Queue that is Head node. Because the Header
node next field behave like a Front and information field of Header node maintains last node
address so that it is behave like a Rear .
Another possibility for the use of the information portion of a List Header is as a pointer
to a Curr node in the List during a traversal process. This would be eliminate the node for an
external pointer during traversal.
#include
#include
#include
#include
struct node
{
char info;
struct node *next;
};
typedef struct node sl;
void display(sl *);