9781637142875 Flipbook PDF


82 downloads 105 Views 8MB Size

Recommend Stories


Porque. PDF Created with deskpdf PDF Writer - Trial ::
Porque tu hogar empieza desde adentro. www.avilainteriores.com PDF Created with deskPDF PDF Writer - Trial :: http://www.docudesk.com Avila Interi

EMPRESAS HEADHUNTERS CHILE PDF
Get Instant Access to eBook Empresas Headhunters Chile PDF at Our Huge Library EMPRESAS HEADHUNTERS CHILE PDF ==> Download: EMPRESAS HEADHUNTERS CHIL

Story Transcript

ICSE Class 10 Computer Applications Last 10 years Solved Question Papers for Java with BlueJ

Questions Paper with Answers of CISCE Grade X Board Exams 2010 - 2019

AV Editorial Board

Copyright © 2020 All Rights Reserved Edition 2021-22 1.1 This book has been published with all reasonable efforts taken to make the material error-free after the consent of the author. No part of this book shall be used, reproduced in any manner whatsoever including recording, photocopying or any other information storage or retrieval system, without written permission from the author, except in the case of brief quotations embodied in reviews. In case of any errors or issues regarding this book, please email them to [email protected]

ISBN 978-1-63714-287-5

TABLE OF CONTENTS

Bonus: ICSE 10th Board Specimen Paper - Year 2020 ** Includes ICSE 10th Board Reduced Syllabus For Year 2021-2022 1. 2. 3. 4. 5. 6. 7. 8. 9. 10.

ICSE 10th Board Exam Paper - Year 2019 ICSE 10th Board Exam Paper - Year 2018 ICSE 10th Board Exam Paper - Year 2017 ICSE 10th Board Exam Paper - Year 2016 ICSE 10th Board Exam Paper - Year 2015 ICSE 10th Board Exam Paper - Year 2014 ICSE 10th Board Exam Paper - Year 2013 ICSE 10th Board Exam Paper - Year 2012 ICSE 10th Board Exam Paper - Year 2011 ICSE 10th Board Exam Paper - Year 2010

** Due to Covid-19, the Computer Applications Board Exam for Year 2020 and 2021 were not held, therefore no board exam papers for the year 2020 and 2021 are included. However, as a bonus, this book includes fully solved year 2020 ICSE Specimen paper by the CISCE Board.

INSTRUCTIONS COMPUTER APPLICATIONS (86) (Theory) (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 Section 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 SECTION B (60 Marks) Attempt any four questions from this Section. The answers in this 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.

REDUCED SYLLABUS FOR EXAM 2021-22 COMPUTER APPLICATIONS (86) CLASS X 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. There will be a choice of questions in this section.

THEORY – 100 Marks 1. Revision of Class IX Syllabus (i) Introduction to Object Oriented Programming concepts, (ii) Elementary Concept of Objects and Classes, (iii) Values and ; System.out.println(a); Ans. Java is a programming language developed by 'James Gosling' (d) Differentiate between break and System.exit(0) [2] Ans. The break keyword is used to terminate a loop or a switch statement. System.exit(0) is used to terminate a program. (e) Write a statement in Java for: [2]



3

( a+ b ) |a − b|

Ans. Math.sqrt ( ( Math.pow (a + b), 3) / Math.abs (a – b ) ) (f) What is the value of m after evaluating the following expression: m - = 9%++n + ++n/2; when int m=10, n=6 Ans. m = m – (9 % ++n + ++n / 2) = 10 – (9 % 7 + 8 / 2) = 10 – (2 + 4) = 10 – 6 =4 (g) Predict the output of the following: (i) Math.pow(25, 0.5) + Math.ceil(4.2) (ii) Math.round(14.7) + Math.floor(7.9) Ans. (i) 10.0 (ii) 22.0 (h) Give the output of the following java statements: (i) "TRANSPARENT".toLowerCase(); (ii) "TRANSPARENT".compareTo("TRANSITION") Ans. (i) transparent (ii) 7 (i) Write a java statement for each to perform the following task: (i) Find and display the position of the last space in a string str. (ii) Extract the second character of the string str. Ans. (i) System.out.println(str.lastIndexOf(' ')); (ii) char ch = str.charAt(1); (j) State the type of errors if any in the following statements: (i) switch ( n > 2 ) (ii) System.out.println(100/0); Ans. (i) Syntax error (ii) Run-time error – java.lang.ArithmeticException: / by zero

[2]

[2]

[2]

[2]

[2]

SECTION B (60 Marks) Question 4 Anshul transport company charges for the parcels of its customers as per the following specifications given below: Class name : Atransport Member variables: String name – to store the name of the customer int w – to store the weight of the parcel in Kg int charge – to store the charge of the parcel Member functions: void accept ( ) – to accept the name of the customer, weight of the parcel from the user (using Scanner class) void calculate ( ) – to calculate the charge as per the weight of the parcel as per the following criteria. Weight in Kg

[15]

Charge per Kg

Upto 10 Kgs

Rs.25 per Kg

Next 20 Kgs

Rs.20 per K

Above 30 Kgs

Rs.10 per Kg

A surcharge of 5% is charged on the bill. void print ( ) – to print the name of the customer, weight of the parcel, total bill inclusive of surcharge in a tabular form in the following format : Name Weight Bill amount ----------------------------Define a class with the above-mentioned specifications, create the main method, create an object and invoke the member methods. Ans. import java.util.Scanner; class Atransport { String name; int w; int charge; public void accept() { Scanner sc = new Scanner(System.in); System.out.print("Enter name of the customer: "); name = sc.nextLine(); System.out.print("Enter weight of the parcel in kg: "); w = sc.nextInt(); } public void calculate() { if (w high) { high = percent[j]; pos = j; } } int temp = percent[i]; percent[i] = high; percent[pos] = temp; String t = names[i]; names[i] = names[pos]; names[pos] = t; } System.out.println("Names and Percentages of First 10 Toppers:"); for (int i = 0; i < 10; i++) { System.out.println(names[i] + " - " + percent[i]); } } }

Question 6 Design a class to overload a function Sum( ) as follows: [15] (i) int Sum(int A, int B) – with two integer arguments (A and B) calculate and return sum of all the even numbers in the range of A and B. Sample input: A=4 and B=16 Sample output: sum = 4 + 6 + 8 + 10 + 12 + 14 + 16 (ii) double Sum(double N) – with one double argument (N) calculate and return the product of the following series: sum = 1.0 x 1.2 x 1.4 x …………. x N (iii) int Sum(int N) - with one integer argument (N) calculate and return sum of only odd digits of the number N. Sample input : N=43961 Sample output : sum = 3 + 9 + 1 = 13 Write the main method to create an object and invoke the above methods. Ans. import java.util.Scanner; class Overload { public int sum (int a, int b) { int s = 0; for (int i = a; i

Get in touch

Social

© Copyright 2013 - 2024 MYDOKUMENT.COM - All rights reserved.