[Solved]Question 1 Many Times Line Hello World Printed Int Main0 Int X Y Printf Hello Worldin X X Q37079268









QUESTION 1 How many times will the line Hello World will be printed out? int main0 int x,y printf Hello Worldin” x x-1; return 0 QUESTION 3 maid oicea al worea. #include <stdio.h> int main(O char varj switch(var) case ‘a’: printf(“hello”)j break; case ‘b breakj defaulti break printf(“goodbye”)s printf(“velcome”)j return 8j QUESTION 4 What will be printed out by the given code below if the entered character is A? Note!!l Answer is not case sensitive printf Enter an alphabet: “); scanf(“%c”,&alphabet); switch (alphabet) case ‘u’: case ‘o’: case ‘i’: case ‘e’: case ‘a’: printf”vow”); break; default: printf( CONS” break QUESTION 2 In a switchstatement, If there are no matches then statements in the default cases are executed. O False QUESTION 7 #include stdio.h> int main( int ij int exp 1 while( exp> 0) for(i i++) 0; 12; expexp 2 printf(“%d”, exp); return 0 What is the final value of exp? QUESTION 6 The statement below is an example of an infinite loop while(1 0) printf”Wow!ln”); True O False QUESTION 7 QUESTION 9 In C language, FALSE is represented by zero value. True ○ False QUESTION 8 Which shape will be formed if you run the code below? for (j-0; i< 3;j++) for ( k = 0; kc4; k++) printf”*”) else pring(” ” printf(“‘n”) a. O b. None of the given choices. C. k * QUESTION 10 What is the output of the following pseudocode? FOR (n=1, n<5, n = n+2) DISPLAY n ENDFOR O a QUESTION 5 Which statement is executed when the condition is evaluated to be FALSE? fconditionj statement 1; eise statement 2 statement 3 statement 4 Da statement 2 and statement 3 b statement 2 and statement 3 and statement 4 statement 2 d statement 1 Show transcribed image text QUESTION 1 How many times will the line Hello World will be printed out? int main0 int x,y printf Hello Worldin” x x-1; return 0
QUESTION 3 maid oicea al worea. #include int main(O char varj switch(var) case ‘a’: printf(“hello”)j break; case ‘b breakj defaulti break printf(“goodbye”)s printf(“velcome”)j return 8j
QUESTION 4 What will be printed out by the given code below if the entered character is A? Note!!l Answer is not case sensitive printf Enter an alphabet: “); scanf(“%c”,&alphabet); switch (alphabet) case ‘u’: case ‘o’: case ‘i’: case ‘e’: case ‘a’: printf”vow”); break; default: printf( CONS” break
QUESTION 2 In a switchstatement, If there are no matches then statements in the default cases are executed. O False
QUESTION 7 #include stdio.h> int main( int ij int exp 1 while( exp> 0) for(i i++) 0; 12; expexp 2 printf(“%d”, exp); return 0 What is the final value of exp?
QUESTION 6 The statement below is an example of an infinite loop while(1 0) printf”Wow!ln”); True O False QUESTION 7
QUESTION 9 In C language, FALSE is represented by zero value. True ○ False
QUESTION 8 Which shape will be formed if you run the code below? for (j-0; i
Expert Answer
Answer to QUESTION 1 How many times will the line Hello World will be printed out? int main0 int x,y printf Hello Worldin” x x-1; … . . .
OR

