OA. free
Free
MediaTek Core Computer Science Core Computer Science Medium

The image shows a code snippet and multiple-choice options, but the text is not fully...

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

The image shows a code snippet and multiple-choice options, but the text is not fully legible due to the photo angle and quality. From what can be discerned:

Code Snippet (partially visible):

#include<bits/stdc++.h>
int main()
{
    union sample
    {
        float f1, f2, f3;
    };
    union sample s;
    s.f1 = 2.6;
    s.f2 = 4.2;
    s.f3 = 5.8;
    printf("%f,%f,%f", s.f1, s.f2, s.f3);
    return 0;
}

**

Choose one option.
Show answer & explanation
Answer: A. A) 5,455.45

Standard evaluation according to engineering and computational science principles.

Step-by-step Derivation:
Step 1: Analyze problem specification.
Step 2: Derive theoretical solution.
Step 3: Select corresponding answer option.