Advertisements

Search results for break

Example:[1]

            Which of the following is an advantage of using a function?
          
Option A:

            Use of functions enhances the readability of a program.
            
Option B:

            A function can be re-used by anyone when needed
            
Option C:

            Breaking the code in smaller Functions keeps the program organized, easy to understand.
            
Option D:

            All of the above
            
Correct Answer: option D
Example:[2]

            #include <stdio.h> 
void main ()  
{  
    int i;  
    for(i = 0;i < 10;i++)  
    {    
        if(i == 5)  
        break;  
    }  
    printf("%d",i);  
}
          
Option A:

            9
            
Option B:

            8
            
Option C:

            10
            
Option D:

            5
            
Correct Answer: option D

 Search Links


 Popular C search MCQs


 Popular C search examples