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) {
    // Assume that Compiler is of 4 bytes
    int a=(5000*5000)/2;
    printf("%d",a);
    return 0;
}

**Select any one of the following

Choose one option.
Show answer & explanation
Answer: A. A) 12500000

5000 * 5000 = 25,000,000, which easily fits in a standard 4-byte signed 32-bit integer (max ~2.14 billion). Dividing by 2 yields 12,500,000.

Step-by-step Derivation:
Step 1: Evaluate 5000 * 5000 = 25,000,000.
Step 2: In a 4-byte signed integer system, the range is -2^31 to 2^31-1 (-2,147,483,648 to 2,147,483,647).
Step 3: 25,000,000 fits well within this range without overflow.
Step 4: 25,000,000 / 2 = 12,500,000.