12th Class Computers Science Sample Paper Cyber Olympiad Sample Paper-3

  • question_answer
    Consider the following C++ declaration, and answer the questions that follow. \[Static\text{ }int\text{ }a\text{ }\left[ 5 \right]\text{ }=\text{ }\left\{ 10,\text{ }15,\text{ }20,\text{ }25,\text{ }30 \right\}\]
    a 10 15 20 25 30
    1002 1002 1004 1006 1008
    What will be the value of expression\[\left( *a\text{ }+\text{ }2 \right)\]?

    A) 10                                

    B) 15

    C) 12                                

    D) 20

    Correct Answer: C


You need to login to perform this action.
You will be redirected in 3 sec spinner