Aradhya Public School
Computer Applications (ICSE Class 10)
Nested Loops – Practice Question Paper
Time: 2 Hours Maximum Marks: 100
Instructions:
1. Answer all questions.
2. Programs must be written in Java.
3. Maintain proper indentation and syntax.
Section A: Pattern-Based Questions (50 Marks)
Q1. Write a Java program to print the following pattern:
*****
*****
*****
*****
*****
(5 marks)
Q2. Write a Java program to print the following pattern:
*
**
***
****
*****
(5 marks)
Q3. Write a Java program to print the following pattern:
*****
****
***
**
*
(5 marks)
Q4. Write a Java program to print the following pattern:
1
12
123
1234
12345
(5 marks)
Q5. Write a Java program to print the following pattern:
1
22
333
4444
55555
(5 marks)
Q6. Write a Java program to print the following pattern:
54321
5432
543
54
5
(5 marks)
Q7. Write a Java program to print the following pattern:
1
23
456
7 8 9 10
(5 marks)
Q8. Write a Java program to print the following pattern:
A
AB
ABC
ABCD
ABCDE
(5 marks)
Q9. Write a Java program to print the following pattern:
*****
* *
* *
* *
*****
(5 marks)
Q10. Write a Java program to print the following pattern:
*
***
*****
*******
*********
(5 marks)
Section B: Conceptual Questions (50 Marks)
Q11. Write a Java program to: Print multiplication tables from 1 to 5 (5 marks)
Q12. Write a Java program to: Count total numbers printed in nested loops (5 marks)
Q13. Write a Java program to: Find sum of elements in a 2D matrix (5 marks)
Q14. Write a Java program to: Print all ordered pairs (i, j) (5 marks)
Q15. Write a Java program to: Find factors of numbers from 1 to 10 (5 marks)
Q16. Write a Java program to: Print prime numbers from 1 to 50 (5 marks)
Q17. Write a Java program to: Print multiplication grid (5 marks)
Q18. Write a Java program to: Perform matrix addition (5 marks)
Q19. Write a Java program to: Find transpose of matrix (5 marks)
Q20. Write a Java program to: Count even numbers in a matrix (5 marks)