icse - kopykitab

16

Upload: others

Post on 30-May-2022

34 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ICSE - Kopykitab
Page 2: ICSE - Kopykitab

CLASS 10

ICSE

Strictly based on the latest ICSE Curriculum

OSWAAL BOOKSLEARNING MADE SIMPLE

COMPUTERAPPLICATIONS

QUESTION BANK

Includes :l Solved Board Question Paper of 2018 Examl Solved Board Question Paper - 2017 with Marking Scheme issued by Boardl Handwritten Toppers' Answers Sheetl Previous Years Solved Papers upto 2018l Topics and Concepts found Confusing & Difcult by Studentsl Suggestions for Studentsl Board's Examiners' Commentsl Answering Tips

For2019Exam

OSWAAL BOOKS1/11, Sahitya Kunj, M.G. Road,

Agra - 282002, UP (India)

0562 2857671, 2527781Ph.:

[email protected]:

www.oswaalbooks.com website:

Oswaal Books has exercised due care and caution in collecting the data before publishing this book. Inspite of this if any omission, inaccuracy or printing error occurs with regards to the data contained in this book, Oswaal books will not be held responsible or liable. Oswaal Books will be grateful if you could point out any sch error or your suggestion which will be of great help for other readers.

Disclaimer :

0504

CHAPTERWISE & TOPICWISE

Page 3: ICSE - Kopykitab

© Publisher : Oswaal Books Printed at Upkar Printing Unit, Agra

OUR DISTRIBUTORS ANDAMAN & NICOBARPORT BLAIR Mitali Enterprises, (03192) 230749, 9434283037 Kumar General Store, 9932082455, 9732472100 ANDHRA PRADESHGUNTUR The Camel Book Depot, (0863) 2320166HYDERABAD Himalaya Book World, (040) 24732057, Sri Balaji Book Depot,

(040) 27613300VIJAYAWADA Sri Kanka Durga Book Stall, 09849144007 Vijayasai Book Centre, 9292450195VISAKHAPATNAM JBD Educational, 9295011552, Sri Rajeshwari Book Link, (0891) 6661718, 9848036014 ASSAMBONGAIGAON Raju Pustak Sadan, (03664) 222403, 9435120853GUWAHATI Book Emporium, (0361) 2635094, M anika Books, 8876881519TINSUKIA CR Book House, (0374) 2331191 BIHARMUNGER New Aman Book & Stationers, (06344) 220757, 9431612549MUZAFFARPUR Pustak Bhandar, 9097046555PATNA Bokaro Student Friends, (0612) 2300600, Gyan Ganga, (0612)

2268394, Nova Publisher & Distributors, (0612) 2666404, Shri Durga Pustak Mandir, (0612) 2301704, Sharda Pustak Bhandar, 9204281431, Vikas Book Depot, (0612) 2304753

PURNEA Chaurasia Book Centre, 09006717044, 7004456102 CHATTISGARHDURG Bhagwati Bhavani Book Depot, (0788) 2327620, 9827473100RAIPUR Agarwal Traders & Pub., (0771) 6544423, 4044423,

7489991679, 8878568055, Shri Ramdev Traders, (0771) 4099446, 9425213679

DELHIDELHI Mittal Books, (011) 23288887, Prozo (Global Edu4 Share Pvt.

Ltd), 9599822411, 8587837835, R.D. Chawla & Sons, (011) 23282361, 9990093567

GOAGOA Golden Heart Emporium, (0832) 2725208, 9370273479 GUJARATAHMEDABAD Agrasen Books & Stationery, (0792) 7486239, Hardik Book

Agency, (079) 22148725, Patel Book Agency, (079) 25324741NAVSARI College Store, (02637) 258642VALLABH VIDYANAGAR Ajay Book Stall, (02692) 238237GANDHIDHAM Arham Book Depot, (02836) 237833, 9426819531VADODARA Maneesh Book Shop, (0265) 2363270, Umakant Book Sellers, (0265) 2359633VAPI Vinay General Store, 9925817463, 8758882123SURAT Saraswati Book House, (0261) 3022244, 8200240908, Shopping Point, (0261) 2230097, 9824108663, The Popular Books Centre, 9825519001 HARYANAGURGAON Adlakha Stationery, (0124) 2306991, 9899830750 JHARKHANDBOKARO Bokaro Student Friends, (0654) 2233094DHANBAD Bokaro Student Friends, (0326) 2302493RANCHI Gyan Ganga Ltd., (0651) 2563570, Bokaro Student Friends,

(0651) 2212447 KARNATAKABAGALKOT Tosaniwal Brothers Book Sellers, (08354) 220093 9448069493BENGALURU Hema Book Stores, (080) 41485110, Prakash Sahitya (080)

22871030, Krishna Book & Stationers (080) 23217334 Sri Sai Ram Book House, (080) 22111243, 9449212946 Sri Balaji Books & Stationers, (080) 22117659 Sapna Book House – (Gandhinagar, (080) 40114455), (Sadashivnagar, (080) 41236271), (Jayanagar, (080) 49066700),

(Koramangala, (080) 40839999), (Residency Road, (080) 49166999), (Indiranagar, (080) 40455999), (Bannerghatta Road, (080) 42566299), (Nagavara, (080) 67294151), UBS Publisher & Dist., 9341621469, 22266681

BELLARY Chaithanya Agencies & Book Centre, 9886393971BIJAPUR Jagdish Book Land, 9480534571DAVANGERE Laxmi Agencies, (08192) 231271, 9844168836HUBLI Renuka Book Depot, (0836) 2244124, Sapna Book House,

(0836) 4249999MANGALORE School Book Co., (0824) 2496938, 4281777, Sapna Book

House, (0824) 4232800MYSORE Sapna Book House, (0821) 4004499TUMKUR Namana Book Palace, (0816) 2277774 KERALACALICUT Aman Book Stall, (0495) 2721282, 9645093283ERNAKULAM Asad Book House, (0484) 2370431, 9447314548, Academic

Book House, (0484) 2376613, Surya Book House, (0484) 2363721, Surya Book Centre, (0484) 2365149

JOMER NILAYAM H & C Store, (0484) 2351233KOLLAM H & C Store, (0474) 2765421KOTTAYAM H & C Store, (0481) 2304351, BOOK Centre, (0481) 2566992KOZHIKODE T.B.S. Publishers, (0495) 2721025, 2720085PALARIVATTOM H & C Store, (0484) 2344337THRISSUR Minerva Books, (0487) 2338301, 9447991496TRIVANDRUM H & C Store, (0471) 2572010, 9446411996

MADHYA PRADESHGWALIOR Krishna Sons, (0751) 2320431INDORE Arun Prakashan, (0731) 2454372, 2459448, 9424890785 Akurti Publishing House, (0731) 2456024, 2456025,

9826015516, Student Book Depot, (0731) 2535892, S.P. & Sons, (0731) 2452680, 2451933JABALPUR Akash Book Distributor, (0761) 4063099KATNI Agrasen Stationers, 9229658467, 7566414466REWA Siddharth Enterprises, (07662) 404019, 9589936626UJJAIN Shree Nath Book Depot, (0734) 2556903 MAHARASHTRAAKOLA Rathi Paper Traders, (0724) 2452679AMRAVATI Delta Pen House, (0721) 2663672AURANGABAD Aarti Book Centre, (0240) 2333366, Maya Book Centre, (0240)

2360150BHUSAWAL Anil Book Depot, (02582) 225412, 9823446045CHANDRAPUR Novelty Book Depot, (07172) 277418, 9422136967DHULE Nav Jeevan Book Stall, (0256) 2232574JALGAON Sharma Book Depot, (0257) 6958794, 9421393040KOLHAPUR Granth the Book World, (0231) 2535355MUMBAI Repro Knowledge cast Ltd, 09910403290 Shivam Book & Stationers, (022) 28381014, 28236000 Vidyarthi Sales Agencies, (022) 43029999NAVI MUMBAI Krishna Book Store, (022) 27744962 Neel Kanth Book House, (022) 65653535, 9930924060NAGPUR Tirupati Book & Stationars, (0712) 2456864, L axmi Pustakalya,

(0712) 2727354, 9823098983, Renuka Book Distributor, (0712) 2726122, 9765406133, Vijay Book Depot, (0712) 2534217, 2520496

NANDED India Book Agencies, 9890489460, Maheshwari General & Gift Centre, 9422870354, Vijay Book Centre, 9872994436, 8956166999

PUNE New Venture Natraj Book Shop, (020) 24485054 Sai Shubham, (020) 69498635, 9975687687YAVATMAL Dilip Book Agencies, (07232) 245450, 9423131275 ODISHABHUBANESWAR Pragenya Book Store, 9937617914 PUNJABBARNALA Bhaian Di Hatti, (01679) 232171BHATINDA Janta Book Depot, (0164) 2253993, 9872994504LUDHIANA Bhatia Book Centre, 9815277131, 9815807871, Chhabra Book Depot, (0161) 2405427, 690090, Amit Book Depot, 9815807871 RAJASTHANKOTA Perfect Stationery & General Shoppe, 9829863904 Raj Trader, 9309232829, 07442429090BHILWARA Nakoda Book Depot, (01482) 239653, 243653 9214983594JAIPUR Goyal Book Distributors, (0141) 2571673 Saraswati Book House, (0141) 2610823 TAMIL NADUCOIMBATORE Majestic Book House, (0422) 4384333, Sapna Book House,

(0422) 4629999CHENNAI Arraba Book Traders, (044) 25387868, 9841459105,

9940619404, Ruby Books, (044) 26425958, Indian Book, (044) 24327784, Vijaya Stores, 9381037417

MADURAI Jayam Book Centre, (0452) 2623636PUDUCHERRY Sri Laxmi Book Stall, 9443085499, Sri Saraswati Book Stall,

(04132) 222283, SALEM Pattu Book Centre, 9842428861TRICHY Rasi Publication, (0431) 2703692VILLUPURAM Sai Kiruba Stationers, (04151) 222114 TRIPURAAGARTALA Book Corner, 9856358594 UTTAR PRADESHAGRA Ajay Book, (0562) 2254621, Manav Book Distributor,

8126190990, 9760055997, Om Pustak Mandir, (0562) 2464014, Panchsheel Books, 9412257961

ALIGARH Shaligram & Sons, (0571) 2421887ALLAHABAD Mehrotra Book Depot, (0532) 2266865AZAMGARH Sasta Sahitya Sadan, 9450029674BALIA Saraswati Shishu, 8317006473, Vidya Kendra, 9415281234LUCKNOW Rama Book Depot (Retail), (0522) 4080133NOIDA Goyal Book Oversess, (0120) 3830000-11, 9873387003 Global Islamic Publications, 9718474394, 9810025972VARANASI Gupta Books, (0542) 2413017, 9918155500 Bokaro Student Friends, (0542) 2401250 WEST BENGALKOLKATA Eureka Book Emporium, (033) 25934001, 9051532860 Katha–O–Kahani Pvt. Ltd., 22419071, 9830257999 Krishna Book House, 8420431085, Oriental Publishers, (033)

22191591, 9830052649, Saha Book House, (033) 22193671SILIGURI Agarwal Book House, (0353) 2535274, Anand Book Point,

(0353) 2515953, 9002006022, Novelty Books, (0353) 2525445

Ahmedabad Bhagwati Enterprises, (079) 40065346, Uppal Brother, (079) 22860529, 9426341529

Ahmednagar Hira Stationers, (0241) 2418774Akola Jagdamba Agencies, 8380840222Amroha Goel Book Mart, 9675496754Aurangabad Lok Seva General Store, (0240) 2240720Barnala Nav Chetan Book Depot, (01679) 500135Bilaspur Ramesh Book Depot, 9425229523Chennai PCM Book Shop, (044) 24337329, Kalaimagal Store, (044)

45544072Coimbatore CBSE Book Shop, (0422) 2393093Dahod Collegian Book Corner, 9727297624Daltonganj Garima Books, 8987466679Dehradun National Book House, 9412053812Gulbarga L.E. Bhavikatti, (08472) 225320Guntur Y. Renuka Devi, 9490450750Guwahati Manika Books, 8876881519Hasan Akshara Book House, 8884499208Hyderabad Unique Book World, (040) 40061423Jagraon Paul Book Depot, 9988469008Jalna Anil Paper Mart, (02482) 230733Jeypore Basanta Agency, (06852) 250388

Kolhapur Jai Book Company, (0231) 2651008, Ashish Book Depot, (0231) 2657420

Kolkata Eureka book Emporium, (033) 25934001Mohammdi Universal Book Depot, 9616771106Mysore Shree Mysore Book Agency, (0821) 4265851 Vasavi Books & Stationers, 9448335411Nabha Khanna Book Depot, (01765) 220095Nagpur Novelty Book Depot, (0712) 2534884Narnaul Holkaran Dass Hemraj, (01282) 252008, 9355552008 Navi Mumbai Ravechi Book Stationary, 022-27720445Nellore S.V.S. Book Centre, (0861) 2346818Patiala Adarsh Pustak Bhandar, (0175) 2311430Patna P.M. Distributors, (0612) 2303437Rajkot Royal Stationers, (0281) 2582926Shimla Vijay Brothers, (0178) 2233959, 9418033179Tezpur Dutta Book Stall, 9402477632Trivandrum Academic Book House, (0471) 2333349, Tumkur Palasandra promoters, 9448214377Vadodara Manesh Book Shop, 9662513447Vallabh Vidyanagar Ajay Book Stall, (02692) 238237Vijayawada Akshaya Book Corner, 09666155555Wardha Unique Traders, (07152) 243617, 8600044411

Exclusive School Books Suppliers

Page 4: ICSE - Kopykitab

CONTENTS

( 3 )

l Latest Syllabus issued by CISCE for Academic Year 2018 –19 9 - 10

l ICSE Solved Paper – 2018 11 - 19

l ICSE Solved Paper 2017, with Marking Scheme (Qualitative Analysis) – ,

issued by CISCE Board 20 - 32

l Handwritten T opper's Answers Sheet – 2017 33 - 40

1. Revision of Class-IX Syllabus 1 - 14

2. Class as the Basis of All Computation 15 - 21

3. Constructors 22 - 24

4. Functions 25 - 33

5. Class as a User Defined Type 34 - 36

6. Iterations 37 - 42

7. Using Library Classes 43 - 48

8. Encapsulation 49 - 53

9. Arrays 54 - 59

10. Input/Output 60 - 63

qq

Page 5: ICSE - Kopykitab

( 4 )

Information in this section is sourced from various available sources. Though all efforts have been made to make

sure it is trustworthy, Oswaal Books shall not be responsible for mistakes, if any.

24 February, 1955 - 5 October, 2011Entrepreneur, Businessman, Inventor, Industrial Designer

Steve JobsSteve JobsSteve Jobs

Steve Paul Jobs was born in San Francisco, California to Joanne Schieble and Abdulfattah 'John'

Jandali who gave him up for adoption. Smart but directionless, Jobs experimented with different

pursuits before starting Apple Computer with Steve Wozniak in 1976. Apple's revolutionary products,

which include the iPod, iPhone and iPad, are now seen as dictating the evolution of modern

technology. He died in 2011, following a long battle with pancreatic cancer.

Steve skipped sixth grade altogether, and his teachers even considered having

him bypass seventh grade, too.

When Jobs was 12, HP founder Bill Hewlett offered him a summer job after Steve

called him asking for parts for an electronic project.

Apple was co-founded by Steve jobs and his college dropout friend, Steve

Wozniak, in Steve’s family garage.

Jobs called the former VP of Google, Vic Gundotra, and told him that second 'O' in

Google had the wrong shade of yellow and that he was going to fix it. Evidently,

Steve had incredible attention to detail.

Walter Issacson’s biography of Steve Jobs reveals that he was fond of eating

carrots and apples and could live on these two for days on end.

Page 6: ICSE - Kopykitab

( 5 )

PREFACEThe Indian Certificate of Secondary Education Examination conducts examination, in accordance with

the recommendations of the New Education Policy 1986, through the medium of English.

The Council for the Indian School Certificate Examinations is committed to serving the nation's

children, through high quality educational endeavours, with a commitment to excellence.

Excellence is a continuous process and not an accident! - A.P. J. ABDUL KALAAM

With an increasing number of new technologies and an expanding global population, being an

autodidact, or self-teacher, has become increasingly crucial to achieve excellence. In order to aid the

students in this task, Oswaal Books has designed this book which will surely cater to their needs.

The unique character of this book is that it ensures an in-depth; and not merely superficial learning of

ICSE topics. The remarkable feature is the inclusion of Answering Tips and Examiner's Comments at the

end of every question, which will empower the students to comprehend their mistakes and rectify

them.

Questions incorporated in this book follow the syllabus, pattern and marking guidelines of the Council

to guide the candidates to answer with precision. This will help students to get familiar with the

examination techniques.

This book would not have taken shape without the support of our authors and editors. We would like to

extend our heartfelt gratitude to them. There is always a scope of improvement and any constructive

suggestion will be heartily considered. Together we can make this book stand in the category as 'One of

the Best'. Wish you Happy Learning!

-Team Oswaal

Page 7: ICSE - Kopykitab

Topics/Concepts found Difficult or Confusing

( 6 )

Examination Paper 2017l Data types and their sizesl Calculation of bill amount and surcharge l Output of program code using nested loopl Invoking functions with objectl Sorting stringsl Classification of operatorsl Objects and instance of a classl Concatenation of strings and spaces using l '+' operator •Sorting techniquesl Usage of library function, substring () and Math.min()l Output of program code using nested loopl Index of an arrayl print()/println()l next()/nextLine()l Converting numeric string into an integer value

Examination Paper 2016l Conversion of if() to ternary operator l Parametrized constructor l Typecasting l Finding, how many number of times body of the loop gets executed l Types of errors l Nested loop l String functions l Series Programs l Function overloading

Examination Paper 2015l Default value of floatl Working of ternary operatorl Wrapper classesl Output question using different library functionsl Default values of primitive data typesl Evaluation of an expression containing prefix and postfix operatorsl Use of switch...case and defaultl Arranging names in descending orderl Calculation of billl Use of nested loop

Examination Paper 2014l Multi-line comments, escape sequences, default values of data typesl Precedence of operatorsl Identifying variables of different data types and types of statementsl Multiple / nested Mathematical and String functionsl Nested Loopsl Static/ non-static variablesl Conversion of algebraic expressions to Java expressionsl Syntax of switch-case and array declaration and initialization

Page 8: ICSE - Kopykitab

( 7 )

Suggestions for the Students

ð Utilize the reading time to clearly understand the nature of the question.

ð All definitions should be understood and learnt.

ð Try to understand the question asked.

ð Practice questions based on output finding programs.

ð Do not study definition of terms and their related examples as separate from problem solving techniques.

ð Concepts should be applied in the program for better understanding.

ð Apply simple logic in a program to get the desired output.

ð Do not memorize the program, try to understand the logic.

ð Use Mnemonic variables and comments to explain the programs.

ð Apart from text book learning, look up other reliable resources to gather comprehensive knowledge of the subject.

ð Attempt all questions in Section A.

ð Read the question carefully before answering.

ð Practice programs on the Computer.

ð A good variable description containing a list of important variables used in the

program along with their data types and purpose must be given at the end of every

program.

ð Project work should be done independently to reinforce all concepts.

ð Do not write meaningless words like SOP, SOPLN, PSVM etc. for System.out.print,

System.out.println, public static void main.

ð Solve exercises based on various operators and inbuilt functions.

ð Section A is compulsory and hence all question must be attempted.

ð If a proper definition does not come to mind then explain the term with suitable

example.

ð Do not forget to write comment lines or description of variables and use mnemonic

names.

ð Dry run each program before trying it on the computer.

ð Try to understand the question asked by reading it carefully.

ð Each concept should be understood instead of rote learning.

ð If a definition does not come to mind, write an accurate example to illustrate the

concept.

ð Learn the correct use of all statements so that syntax errors can be eliminated.

ð Computer Applications is a logic based subject like Mathematics and highly scoring in

nature. It needs to be given time of self-study revision and practice at least 3 times a

week for a duration of ½ an hour each day followed by a complete review of week’s

work during the week end. Do not leave this subject to be studied on the eve of the

examination.

ð All exercises, general and Programming to be maintained in a register and revised

during exam preparation.

ð Syntax of each element of Java to be thoroughly studied.

ð At the time of answering, every question must be read at least twice before

answering.

ð All programs must be written with suitable comments – whether in class or during

exam.

Page 9: ICSE - Kopykitab

( 8 )

LATEST SYLLABUS

Computer ApplicationsCLASS 10

There will be one written paper of two hours duration carrying 100 marks and Internal Assessment of 100 marks.

The paper will be divided into two sections A and B.

Section A (Compulsory – 40 marks) will consist of compulsory short answer questions covering the entire syllabus.

Section B (60 marks) will consist of questions which will require detailed answers and there will be a choice of questions in this section

THEORY – 100 Marks1. Revision of Class IX Syllabus (i) Elementary Concept of Objects and Classes. (ii) Values and types. (iii) Conditionals and non-nested loops.2. Class as the Basis of all Computation Objects and Classes Objects encapsulate state and behaviour – numerous

examples; member variables; attributes or features. Variables define state; member functions; Operations/methods/ messages/ functions define behaviour.

Classes as abstractions for sets of objects; class as an object factory; concept of type, primitive data types, composite data types. Variable declarations for both types; difference between the two types. Objects as instances of a class. Consider real life examples for explaining the concept of class and object.

3. Constructors Constructor and its types. Default constructor, parameterized constructor,

constructor with default parameter and constructor overloading.

4. Functions Functions and its types Need of functions. Types of functions (pure and impure).

Function declaration and definition, ways of calling functions (call by value and call by reference) Returning information/messages from the functions and use of multiple functions and more than one function with the same name (function overloading). Use of static data member with static member function.

Discuss invocation of functions on objects (through the reference). Discuss the concept of this with a reference to the object on which the invocation is made again.

5. Class as a User Defined Type

Class as a composite type, distinction between primitive type and composite or class types.

Class may be considered as a new data type created by the user, that has its own functionality.

The distinction between primitive and composite types should be discussed through examples. Show how classes allow user defined types in programs. All primitive types have corresponding class wrappers.

The following methods are to be covered: int parseInt(String s), int valueOf(String s), long parseLong(String s), long valueOf(String s), float parseFloat(String s), float valueOf(String s), double parseDouble(String s), double valueOf(String s), boolean isDigit(char ch), boolean isLetter(char ch), boolean isLetterOrDigit(char ch), boolean isLowerCase(char ch), boolean isUpperCase(char ch), boolean isWhitespace(char ch), char to LowerCase (char ch) char to UpperCase(char ch)6. Iterations Loops, nested loops, break and continue. Revision of loops (while, do while and for). Show how each kind of loop can be converted to the

other form of the loop. Introduce nested loops through some simple examples. Demonstrate break and continue statements with the help of loops/nested loops.

7. Using Library Classes

Simple input/output. String, packages and import statements.

Browsing the documentation for classes in the libraries and illustrating their use. The following functions have to be covered:

String library functions: Char charAt (int n) int compareTo(String1, String2) String concat(String str) boolean endsWith(String str) boolean equals(String str) boolean equalsIgnoreCase(String str) int indexOf(char ch) int lastIndexOf(char ch) int length( ) String replace (char oldChar,char newChar) boolean startsWith(String str) String substring(int beginIndex, int endIndex) String toLowerCase( ) String toUpperCase( )

Page 10: ICSE - Kopykitab

( 9 )

String trim( ) String valueOf(all types) Mathematical Library Functions: pow(x,y), log(x), sqrt(x), ceil(x), floor(x), rint(x),

abs(a), max(a, b), min(a,b), random( ), sin(x), cos(x), tan(x).

Introduce the concept of packages and import statement (Avoid discussing the details of libraries).

8. Encapsulation

Accessspecifiersandscopeandvisibility

Access specifiers – private and public. Visibility rules for private, package and public access specifiers. Scope of variables, instance variables, argument variables, local variables.

9. Arrays

Arrays –storing, retrieving and arranging data

Arrays and their uses, sorting algorithms - selection sort and bubble sort; Search algorithms – linear search and binary search Example of a composite type. Array creation. Sorting and searching algorithms should be discussed (single dimensional array only).

10. Input/Output

Basic input/output using Scanner and Printer classes from JDK.

The Scanner class can be used for input of various types of data (e.g. int, float, char etc.) from the standard input stream.

INTERNAL ASSESSMENT - 100 Marks

Assignments and Project

The students should complete a number of laboratory assignments during the whole year to reinforce the concepts studied in the class.The students should build one real life project using the concepts taught.Suggested list of Assignments :

Good assignments should have problems which require design, invention of an algorithm and only then implementation and testing. The problems will mimic a real life problem and require careful design or will require an interesting algorithm to solve it. They should also embody one or more concepts that have been discussedinthetheoryclass.Asignificantproportionofthe time has to be spent in the laboratory. Computing can only be learnt by doing. Some sample problems are given below as examples. The problems are of varying levels of difficulty.1. A student has a name, roll number, class in which

studying, home address and a date of birth. Design a class containing – constructors and user define

functions, get and set – get to input data and set to display data. -.-.-.

2. Write a class Convert with methods as follows : a) takes 4 arguments representing miles, yards, feet

and inches and convert them into kilometres, meters and centimetres.

b) Takes an argument representing degrees Fahrenheit and convert it to degrees centigrade.

c) a kilobyte is interpreted in two ways: some times it is 1000 bytes (actually correct), but often (and traditionally) it is 210 which is 1024. Similar discrepancies arise for mega, giga, tera and peta (each is 1000 (or 210) times the previous one).

The function should take the 103 (standard kilo) and give the equivalent value using 210 as a kilo for all the above.

3. DefineaclassRecurringPatternsanddefinemethodsin it which will print the following patterns.

a) The method takes an integer argument n and prints the following pattern, shown for n=4.

a a a a a a a a a a a a a a a a b) The method takes an integer argument and

prints the following pattern, shown for n=4. 1 121 12321 1234321 12321 121 1 c) The method takes an integer argument and

prints the following pattern, shown for n=4. abcdcba abc cba ab ba a a ab ba abc cba abcdcba Note : for the three methods above you can assume

that n<10. However, think about what you would do if you allowed n to be a 2 or even 3 digit integer.

4. DefineclasspointtomodelpointsintheX-Yplane.DefinefunctionstotranslateapointalongtheXandYaxesrespectively.Defineafunctionthatcalculatesthe distance from another point.

...contd.

Page 11: ICSE - Kopykitab

( 10 )

...contd.

5. Write a program to input two strings. Check both the strings and remove all common characters from both the strings. Print both the strings after removing the common characters.

Important : This list is indicative only. The teachers and students should use their imagination to create innovative and original assignments. Some Ideas for the Project :

Students have already been introduced to spreadsheets, databases, word processors and presentation software earlier. That familiarity should be used to introduce the idea of how the software can be designed by modeling it as operations permitted on different objects. Other real world systems can also be modeled on the same lines :1. Calculators2. Banks3. A school4. Toys5. A game6. Trafficlights7. Elevators8. RetailOutlets9. Anoffice10. A company11. Household gadgets like microwave ovens12. Washing machines13. Air Conditioners14. Cars15. Airplanes16. Vending machines17. Automatic Teller Machines (ATM )18. A Social System19. A musical composition20. A clinical diagnostic systemImportant : This list is indicative only. The teachers and students should use their imagination to create innovative and original projects.

EVALUATIONThe teacher in-charge shall keep the record of all the assignments done by the student throughout the year and evaluate them internally. The student is expected to do one project under the guidance of the teacher in charge.An External Examiner shall be nominated by the Head of the school and may be a teacher from the faculty, but not teaching the subject in the relevant section/class. For example, a teacher of Computer Science of Class VIII may be deputed to be the External Examiner for Class X, Computer Applications Projects.

Evaluation of practical work will be done as follows :

Subject Teacher (Internal Examiner) : 50 marks

External Examiner : 50 marks

The total marks obtained out of 100 are to be sent to the Council by the Head of the School.The Head of the School will be responsible for the entry of marks on the mark sheets provided by the Council.EQUIPMENT

There should be enough computer systems to provide for a teaching schedule where at least three-fourths of the time available is used for programming and project work.The course shall require at least 4 periods of about 40 minutes duration per week. In one week out of 4 periods the time should be divided as follows :l 1 period – Lecture cum demonstration by the Instructorl 3 periods –Assignments and Project The hardware and software platforms should be such that the students can comfortably develop and run programs on those machines.Since hardware and software evolve and change very rapidly the schools shall need to upgrade them as required. Following are the minimal specifications as of now.

RECOMMENDED FACILITIES :l A lecture cum demonstration room with a

MULTIMEDIA PROJECTOR/ an LCD and O.H.P. attached to the computer.

l A white board with white board markers should be available.

l A fully equipped Computer Laboratory that allows one computer per student.

l Internet connection for accessing the World Wide Web and email facility.

l The computers should have a minimum of 128 MB RAM and at least a PIII or Equivalent Processor.

l Good Quality printers.l A scanner, a web cam/a digital camera (Should be

provided if possible).

SOFTWARE FOR CLASS X

Any suitable Operating System can be used.

For teaching fundamental concepts of computing using object oriented approach, BlueJ environment (1.2 or higher version) compatible with JDK (1.3 or higher version) as the base or any other editor or IDE, compatible with JDK (1.3 or higher version) as the base may be used. Ensure that the latest versions of software are used. qq

Page 12: ICSE - Kopykitab

ICSE Solved Paper, 2018Class-X

Computer Applications(Maximum Marks : 100)

(Time allowed : Two Hours)Answers to this Paper must be written on the paper provided separately.

You will not be allowed to write during the first 15 minutes.This time is to be spent in reading the question paper.

The time given at the head of this Paper is the time allowed for writing the answers.

This Paper is divided into two Sections.

Attempt all questions from Sections A and any four questions from Section B.The intended marks for questions or parts of questions are given in brackets [ ].

SECTION - A (40 Marks)

Attempt all questions 1. (a) Define abstraction. 2

(b) Differentiate between searching and sorting. 2

(c) Write a difference between the functions isUpperCase ( ) and toUpperCase ( ). 2

(d) How are private members of a class different from public members ? 2

(e) Classify the following as primitive or non- primitive data types : 2

(i) char

(ii) arrays

(iii) int

(iv) classes

2. (a) (i) int res = ‘A’; 2

What is the value of res?

(ii) Name the package that contains wrapper classes.

(b) State the difference between while and do while loop. 2

(c) system.out.print ("BEST"); 2

system.out.println("OF LUCK");

Choose the correct option for the output of the above statements

(i) BEST OF LUCK

(ii) BEST

OF LUCK

(d) Write the prototype of a function check which takes an integer as an argument and returns a character. 2

(e) Write the return data type of the following function. 2

(i) endsWith( )

(ii) log ( )

3. (a) Write a Java expression for the following : 2

Page 13: ICSE - Kopykitab

12 | OSWAAL ICSE Chapterwise/Topicwise Question Bank, COMPUTER APPLICATIONS, Class-X

3 2x xa b++

(b) What is the value of y after evaluating the expression given below ? 2 y+ = ++y + y-- + --y; when int y=8 (c) Give the output of the following : 2 (i) Math.floor (–4.7) (ii) Math.ceil(3.4) + Math.pow(2, 3) (d) Write two characteristics of a constructor. 2 (e) Write the output for the following : 2 system.out.println("Incredible"+"\n"+"world");

(f) Convert the following if else if construct into switch case 2 if( var==1)

System.out.println("good");

else if(var==2)

System.out.println("better");

else if(var==3)

System.out.println("best");

else

System.out.println("invalid");

(g) Give the output of the following string functions : 2 (i) "ACHIEVEMENT". replace('E', 'A') (ii) "DEDICATE".compareTo("DEVOTE") (h) Consider the following String array and give the output 2 string arr[]= {"DELHI", "CHENNAI", MUMBAI", "LUCKNOW", "JAIPUR"};

system.out.println(arr[0].length()>arr[3].length());

system.out.print(arr[4].substring(0,3));

(i) Rewrite the following using ternary operator : 2 if (bill>10000)

discount = bill * 10.0/100;

else

discount = bill * 5.0/100;

(j) Give the output of the following program segment and also mention how many times the loop is executed : 2 int i;

for (i = 5; i > 10; i++)

system.out.println(i);

system.out.println(i*4);

SECTION - B (60 Marks)

Attempt any four questions from this SectionThe answer in the Section should consist of the Programs in either Blue J environment or any

program environment with Java as the base.Each program should be written using Variable descriptions/Mnemonic Codes so that the logic

of the program is clearly depicted.Flow-Charts and Algorithms are not required.

4. Design a class RailwayTicket with following description : 15

Instance variables/data members : String name : To store the name of the customer String coach : To store the type of coach customer wants to travel long mobno : To store customer’s mobile number int amt : To store basic amount of ticket

Page 14: ICSE - Kopykitab

SOLVED PAPER - 2018 | 13

int totalamt : To store the amount to be paid after updating the original amount

Member methods : void accept () – To take input for name, coach, mobile number and amount. void update() – To update the amount as per the coach selected

(extra amount to be added in the amount as follows)

Type of Coaches Amount

First_AC 700

Second_AC 500

Third_AC 250

Sleeper None

void display()–To display all details of a customer such as name, coach, total amount and mobile number. Write a main method to create an object of the class and all the above member methods. 5. Write a program to input a number and check and print whether it is a Pronic number or not. (Pronic number is

the number which is the product of two consecutive integers) 15

Example : 12 = 3 × 4 20 = 4 × 5 42 = 6 × 7 6. Write a program in Java to accept a string in lower case and change the first letter of every word to upper case.

Display the new string. 15

Sample input : we are in cyber world Sample output : We Are In Cyber World 7. Design a class to overload a function volume() as follows : 15

(i) double volume (double R) – with radius (R) as an argument, returns the volume of sphere using the formula. V = 4/3 × 22/7 × R3 (ii) double volume (double H, double R) – with height(H) and radius(R) as the arguments, returns the volume

of a cylinder using the formula. V = 22/7 × R2 × H (iii) double volume (double L, double B, double H) – with length(L), breadth(B) and Height(H) as the arguments,

returns the volume of a cuboid using the formula. V = L × B × H 8. Write a menu driven program to display the pattern as per user’s choice 15 Pattern 1 Pattern 2 ABCDE B ABCD LL ABC UUU AB EEEE A For an incorrect option, an appropriate error message should be displayed. 9. Write a program to accept name and total marks of N number of students in two single subscript array name[ ]

and totalmarks [ ]. 15 Calculate and print : (i) The average of the total marks obtained by N number of students. [average = (sum of total marks of all the students)/N]

(ii) Deviation of each student’s total marks with the average.

[deviation = total marks of a students – average]

Page 15: ICSE - Kopykitab

14 | OSWAAL ICSE Chapterwise/Topicwise Question Bank, COMPUTER APPLICATIONS, Class-X

ANSWERS SECTION - A (40 Marks)

Attempt all questions

1. (a) Abstraction is one of the key concepts of object-oriented programming (OOP) languages. Its main goal is to handle complexity by hiding unnecessary details of the object created by user. It enables the user to implement more complex logic on top of the provided abstraction without understanding or even thinking about all the hidden complexity. For example the forward and backward movement of the stereo set is abstracted by buttons like <<= and =>>.

(b) Searching is the process of finding one or all locations of any element in the given list of data and deciding if the element is present in the list or not. If that element is present in the list of data then searching is said to be successful otherwise unsuccessful.

Sorting is the process of ordering the given data list in ascending or descending manner (numerically, alphabetically or lexicographically).

(c) isUpperCase() is an in-built function of Java, it is used to check if the letters of the given string is in either uppercase or not. It returns true if all letters are in uppercase otherwise returns false.

toUpperCase() is also an implicit function of Java that is used to change the lowercase letters of the given string to uppercase.

(d) Private members can be accessed only within the class where they are declared, not outside the class, but public members can be accessed inside as well as outside the class.

(e) (i) char → primitive data type

(ii) arrays → non-primitive data type

(iii) int → primitive data type

(iv) classes → non-primitive data type

2. (a) (i) Value of res is 65 because the ASCII value of character 'A' in decimal is 65

(ii) java. lang

(b)

S.No. while do-while

1. while(condition)

{

Statements;

}

do

{

Statements;

}

while(condition);

2. while loop is entry control loop.

do-while is exit control loop.

3. In while loop, firstly condition is checked. If condition is true, statements within while block are executed. After then again Condition is checked and so on.

In do-while loop firstly statements within do-while block are executed, after then condition is checked. If condition is true, again statements are executed and so on.

4. In while loop minimum execution of statements is zero.

In do-while loop minimum execution of statements is one.

(c) (ii) BEST

OF LUCK

Page 16: ICSE - Kopykitab

Oswaal ICSE Question BankChapterwise & Topicwise Class - X

Computer Applications For 2019 Exam

Publisher : Oswaal Books ISBN : 9789387504745 Author : Panel Of Experts

Type the URL : http://www.kopykitab.com/product/19183

Get this eBook

25%OFF