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:
Step 1: Evaluate each statement.
- **A:** "The index specifies an offset from the beginning of the array to the element being referenced." This is true. In an array, the index is used to calculate the memory location of an element relative to the beginning of the array.
- **B:** "Declaring an array means specifying three parameters; data type, name, and its size." This is true. When you declare an array in most programming languages, you need to specify the data type, the array name, and the size of the array (the number of elements it can store).
- **C:** "The length of an array is given by the number of elements stored in it." This is true. The length of an array refers to the number of elements it holds.
- **D:** "The name of an array is a symbolic reference to the address of the first byte of the array." This is true. The name of the array typically refers to the base address, which is the memory location of the first element (or byte) of the array.
Step 2: Conclusion.
All the statements are true, so the correct answer is option (4) A, B, C and D.
Consider the binary tree given below. What will be the corresponding infix expression to this?
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}
\]