C Programming What will be the value of sum after the following program is executed?void main(){ int sum=1, index = 9; do{ index = index – 1; sum *= 2; }while( index > 9 );} 2 1 0.25 0.5 9 2 1 0.25 0.5 9 ANSWER DOWNLOAD EXAMIANS APP
C Programming What's wrong in the following statement, provided k is a variable of type int?for(k = 2, k <=12, k++) The increment should always be ++k . The variable k can’t be initialized. There should be a semicolon at the end of the statement. The variable must always be the letter i when using a for loop. The commas should be semicolons. The increment should always be ++k . The variable k can’t be initialized. There should be a semicolon at the end of the statement. The variable must always be the letter i when using a for loop. The commas should be semicolons. ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of following is not a valid name for a C variable? Exam_veda Both A and B Exam veda None of these Examians Exam_veda Both A and B Exam veda None of these Examians ANSWER DOWNLOAD EXAMIANS APP
C Programming What is right way to Initialize array? int n{6} = { 2, 4, 12 }; int num[6] = { 2, 4, 12, 5, 45, 5 }; int n(6) = { 2, 4, 12, 5, 45, 5 }; int n{} = { 2, 4, 12, 5, 45, 5 }; int n{6} = { 2, 4, 12 }; int num[6] = { 2, 4, 12, 5, 45, 5 }; int n(6) = { 2, 4, 12, 5, 45, 5 }; int n{} = { 2, 4, 12, 5, 45, 5 }; ANSWER DOWNLOAD EXAMIANS APP
C Programming The function scanf() returns ......... The number of successful read input values. 0 1 The actual values read for each argument. ASCII value of the input read. The number of successful read input values. 0 1 The actual values read for each argument. ASCII value of the input read. ANSWER DOWNLOAD EXAMIANS APP
C Programming Given b=110 and c=20, what is the value of 'a' after execution of the expression a=b-=c*=5? -110 10 -10 110 450 -110 10 -10 110 450 ANSWER DOWNLOAD EXAMIANS APP