Skip to content

Computer Science · Class 11 · ISC

Nested Loops

Loops inside loops and their use in generating patterns and working through two-dimensional data.

4questions

Board PYQs
0
Practice
4
Topics
0
  • Most common: 3 marks

Syllabus mapping: ISC syllabus (CISCE) (opens CISCE's website in a new tab)

4 questions

  • Practice question

    3 marks

    Write a Java program segment to print an inverted right-angled triangle of stars with n rows, the first row having n stars.

    Nested LoopsMediumApplication based

  • Practice question

    3 marks

    How many times does the inner statement execute in: for (int i = 1; i <= 4; i++) for (int j = 1; j <= 3; j++) count++;

    Nested LoopsMediumNumerical

  • Practice question

    3 marks

    Write a Java program segment to print the following pattern for n = 4: a right-angled triangle of stars with 1 star in the first row and 4 in the last.

    Nested LoopsMediumApplication based

  • Practice question

    3 marks

    Write a Java program segment to print the multiplication tables from 1 to 5, each up to 10.

    Nested LoopsMediumApplication based