हिंदी

Given: for (i = 0; i < 4; i++) for (j = 1; j < 4; j++) ............................. Statement ............................. How many times the above nested loop will iterate? - Computer Applications

Advertisements
Advertisements

प्रश्न

Given: for (i = 0; i < 4; i++)
                for (j = 1; j < 4; j++)
                .............................
                 Statement
                .............................

How many times the above nested loop will iterate?

विकल्प

  • 12 times

  • 8 times

  • 4 times

  • 16 times

MCQ

उत्तर

12 times

Explanation:

4 (outer loop iterations) ×3 (inner loop iterations) = 12 total iterations.

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 1.1: Nested Loop - EXERCISES [पृष्ठ १४५]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 1.1 Nested Loop
EXERCISES | Q I. 4. | पृष्ठ १४५
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×