Consider the binary tree given below. What will be the corresponding infix expression to this?
Step 1: Examine the Binary Tree.
In the given tree, the operators are located at the internal nodes, and the operands are located at the leaf nodes. The order of operations is determined by traversing the tree in an infix manner (i.e., left operand, operator, right operand).
Step 2: Perform the Infix Traversal.
The binary tree in the image represents the following infix expression:
- Start with the root: The operator is `-`. This operator applies to the left and right subtrees.
- The left subtree (rooted at `+`) gives us the expression `(a + b)`.
- The right subtree (rooted at `*`) gives us the expression `(c * d)`.
- The rightmost subtree (rooted at `/`) represents the expression `(g - h)`.
- Finally, the operator at the root of the tree `%` applies to the left expression `(a + b) - (c * d)` and the right expression `(f \^ g) / (h - i)`.
Thus, the final expression is: \[ ((a + b) - (c * d)) % ((f ^ g) / (h - i)) \]
Step 3: Conclusion.
The correct infix expression is option (3).
Consider the following statements about arrays. Which of the following are TRUE?
A. The index specifies an offset from the beginning of the array to the element being referenced.
B. Declaring an array means specifying three parameters; data type, name, and its size.
C. The length of an array is given by the number of elements stored in it.
D. The name of an array is a symbolic reference to the address of the first byte of the array.
Choose the correct answer from the options given below:
Match LIST-I with LIST-II
\[\begin{array}{|c|c|}\hline \text{LIST-I} & \text{LIST-II} \\ \hline \text{A. The first index comes after the last index.} & \text{I. Head-tail Linked List} \\ \hline \text{B. More than one queue in the same array of sufficient size} & \text{IV. Multiple Queue} \\ \hline \text{C. Elements can be inserted or deleted at either end.} & \text{III. Circular Queue} \\ \hline \text{D. Each element is assigned a priority.} & \text{II. Priority Queue} \\ \hline \end{array}\] Choose the correct answer from the options given below:
\(\underline{\hspace{1cm}}\) refers to a set of data values and associated operations that are specified accurately, independent of any particular implementation.
Consider the following four words, out of which three are alike in some manner and one is different.
(A) Arrow
(B) Missile
(C) Sword
(D) Bullet
Choose the combination that has alike words.
Match List-I with List-II:
\[
\begin{array}{|l|l|}
\hline
\textbf{List-I (Name of Drug)} & \textbf{List-II (Indication)} \\
\hline
A. \ \text{Baclofen} & I. \ \text{Spasticity} \\
B. \ \text{Diclofenac} & II. \ \text{Inflammatory pain} \\
C. \ \text{Gabapentin} & III. \ \text{Central or peripheral neurogenic pain} \\
D. \ \text{Amitryptiline} & IV. \ \text{Depression} \\
\hline
\end{array}
\]
Match List-I with List-II:
\[
\begin{array}{|l|l|}
\hline
\textbf{List-I (Ascending tract of the spinal cord)} & \textbf{List-II (Function)} \\
\hline
A. \ \text{Lateral spinothalamic tract} & I. \ \text{Pain and temperature from opposite half of the body} \\
B. \ \text{Anterior spinothalamic tract} & II. \ \text{Vibratory sense} \\
C. \ \text{Fasciculus Cuneatus} & III. \ \text{Crude touch and pressure from opposite half of the body} \\
D. \ \text{Posterior spinocerebellar tract} & IV. \ \text{Unconscious proprioception to cerebellum} \\
\hline
\end{array}
\]
Match List-I with List-II:
\[
\begin{array}{|l|l|}
\hline
\textbf{List-I (Muscle)} & \textbf{List-II (Nerve supply)} \\
\hline
A. \ \text{Gluteus maximus} & I. \ \text{Ventral rami of S1, S2} \\
B. \ \text{Piriformis} & II. \ \text{Nerve to quadratus femoris} \\
C. \ \text{Gemellus inferior} & III. \ \text{Superior Gluteal nerve} \\
D. \ \text{Gluteus minimus} & IV. \ \text{Inferior gluteal nerve} \\
\hline
\end{array}
\]
Match List-I with List-II:
\[
\begin{array}{|l|l|}
\hline
\textbf{List-I (Vaccines)} & \textbf{List-II (Their respective contents)} \\
\hline
A. \ \text{Typhoid vaccine} & I. \ \text{Killed rickettsia} \\
B. \ \text{Typhus vaccine} & II. \ \text{Killed bacteria} \\
C. \ \text{Measles vaccine} & III. \ \text{Attenuated viruses} \\
D. \ \text{Smallpox vaccine} & IV. \ \text{Killed viruses} \\
\hline
\end{array}
\]