After solving all the number programs you can start solving all the patterns given here. Patterns are asked almost every year in the icse computer application paper for 7 or 8 or 15 marks(for 15 marks two patterns can be asked)
Two types of patterns can be asked
- Number related: for solving these patterns you should have the basic knowledge of nested for loop and how do they work(the flow of execution in the loop). If you know how to dry run the code, it will be very easy to solve these patterns.
- String related:These patterns require the knowledge of all the string function and their working other than basic working of nested for loops. Make sure that you know the use of length() and charAt() function You can start solving these patterns. (Solution of these patterns are available in previous posts but please remember reading a program can’t ever be helpful to a student, you have to solve(practice) the programs to score good marks in the exam.)Always remember that ICSE never repeats the same program in the paper, it will be different than these programs so you should know how to edit the code according the requirement of the question.
A A B A B C A B C D A B C D E A B C D E F | * *# *#* *#*# *#*#* | 10101 01010 10101 01010 10101 | ***** **** *** ** * |
1 2 1 2 3 2 1 2 3 4 3 2 1 2 3 4 3 2 1 2 3 2 1 2 1 | 1 2 3 4 5 2 3 4 5 3 4 5 4 5 5 4 5 3 4 5 2 3 4 5 1 2 3 4 5 | * * * * * * * * * * * * * * * * | * *** ***** ******* ********* ******* ***** *** * |
54321 4321 321 21 1 | ***** **** *** ** * | *** *** *** *** *** | 12345 2345 345 45 5 |
11111 1111 111 11 1 | 54321 5432 543 54 5 | LUEJB UEJBL EJBLU JBLUE | J J J J AAA VV A |
1 21 321 4321 54321 | 1 22 333 4444 55555 | 111 111 111 111 111 | * ** *** **** ***** **** *** ** * |
J JA JAV JAVA | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | J AA VVV AAAA | A AB ABC ABCD ABCDE |