OA. free
Free
Palo Alto Networks Core Computer Science Core Computer Science Medium

Select any one of the following

Palo Alto Networks technical mcq question, verified with a worked answer. Free to practise - no sign-up.

int main(void)
{
    int a[2][3][2]={{{1,2},{3,4},{5,6}},{{7,8},{9,10},{11,12}}};
    printf("%d %d",a[1]-a[0],a[1][0]-a[0][0]);
    return 0;
}

Select any one of the following

Choose one option.
Show answer & explanation
Answer: C. C) 8,10

From 1/x = x/y, y = x^2. From x/y = y/8, y^2 = 8x. Substituting yields x^4 = 8x => x = 2, y = 4. Then (x + y) : y = (2 + 4) : 4 = 6 : 4 = 3 : 2.

Step-by-step Derivation:
Step 1: Given 1/x = x/y => y = x^2.
Step 2: Given x/y = y/8 => y^2 = 8x.
Step 3: Substitute y = x^2: (x^2)^2 = 8x => x^4 = 8x.
Step 4: For positive integers, divide by x: x^3 = 8 => x = 2.
Step 5: Then y = 2^2 = 4.
Step 6: Compute (x + y) : y = (2 + 4) : 4 = 6 : 4 = 3 : 2.