COMPUTER APPLICATIONS

Similar documents
COMPUTER APPLICATIONS

Sample Paper of Computer for Class 10

COMPUTER APPLICATIONS

COMPUTER APPLICATIONS

COMPUTER APPLICATIONS

COMPUTER APPLICATIONS

ICSE Class 10 Computer Applications ( Java ) 2010 Solved Question...

ICSE Solved Paper, 2018

3. Convert 2E from hexadecimal to decimal. 4. Convert from binary to hexadecimal

Lesson:9 Working with Array and String

ISC 2006 COMPUTER SCIENCE PAPER 1 THEORY PART I Answer all questions in this part

COMPUTER SCIENCE Paper 1

COMPUTER SCIENCE PAPER 1

SECTION A (40 Marks) Attempt all questions. (a) What is inheritance? [2] (c) State the number of bytes occupied by char and int data types.

INDIAN SCHOOL MUSCAT COMPUTER SCIENCE(083) CLASS XI

Introduction to Programming Using Java (98-388)

1 Short Answer (15 Points Each)

Subject: Computer Science

VARIABLE, OPERATOR AND EXPRESSION [SET 1]

Computer Science Paper 1 (Theory) Part I While working questions in this part, indicate briefly your working and reasoning wherever required.

COMPUTER SCIENCE. Paper 1

C212 Early Evaluation Exam Mon Feb Name: Please provide brief (common sense) justifications with your answers below.

APCS Semester #1 Final Exam Practice Problems

CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE

Lab Session # 6 Functions. ALQUDS University Department of Computer Engineering

NATIONAL UNIVERSITY OF SINGAPORE

Question Bank. 4. Write a menu driven program to accept two numbers and find a. HCF / GCD b. LCM

ICSE Class 10 Computer Applications ( Java ) 2014 Solved Question Paper

Chapter 4: Control structures. Repetition

CS 112 Introduction to Computing II. Wayne Snyder Computer Science Department Boston University

Analysis of Pupil Performance ICSE. Research Development and Consultancy Division. Council for the Indian School Certificate Examinations.

(c) ((!(a && b)) == (!a!b)) TRUE / FALSE. (f) ((!(a b)) == (!a &&!b)) TRUE / FALSE. (g) (!(!a) && (c-d > 0) && (b!b))

FORM 2 (Please put your name and form # on the scantron!!!!)

VALLIAMMAI ENGINEERING COLLEGE

Java Assignment 3: Loop Practice Ver 3.0 Last Updated: 12/1/2015 8:57 AM

Sri Vidya College of Engineering & Technology

a) Answer all questions. b) Write your answers in the space provided. c) Show all calculations where applicable.

Chapter 4: Control structures

Instructor: Eng.Omar Al-Nahal

Scheme G. Sample Test Paper-I. Course Name : Computer Engineering Group Course Code : CO/CD/CM/CW/IF Semester : Second Subject Tile : Programming in C

LAB 13: ARRAYS (ONE DIMINSION)

Lecture 5: Methods CS2301

Operators in java Operator operands.

Questions Bank. 14) State any four advantages of using flow-chart

JAVA OPERATORS GENERAL

Class C{ int a; } what variables below are objects : a. C c; b. String str; c. Scanner scanner; d. int num; e. float f;

LAB 11: METHODS. CPCS The Lab Note Lab 11 Page 1. Statement Purpose:

PROGRAMMING IN C AND C++:

University of Palestine. Mid Exam Total Grade: 100

3.Constructors and Destructors. Develop cpp program to implement constructor and destructor.

Computer Programming, I. Laboratory Manual. Experiment #7. Methods

Give one example where you might wish to use a three dimensional array

( &% class MyClass { }

1 Short Answer (10 Points Each)

TOPICS TO COVER:-- Array declaration and use.

Reg. No. : Question Paper Code : B.E./B.Tech. DEGREE EXAMINATION, JANUARY First Semester GE 6151 COMPUTER PROGRAMMING

Computer Programming C++ (wg) CCOs

AP Computer Science A Unit 2. Exercises

KENDRIYA VIDYALYA CLRI CHENNAI AUTUMN BREAK HOLIDAY HW MARKS QUESTIONS : DATA STRUCTURE

CISC-124. This week we continued to look at some aspects of Java and how they relate to building reliable software.

Review for Test 1 (Chapter 1-5)

Object Oriented Programming. Assistant Lecture Omar Al Khayat 2 nd Year

ICSE Class 10 Computer Applications ( Java ) 2012 Solved Question...

Higher National Diploma in Information Technology First Year, Second Semester Examination 2015

BSc (Hons) Computer Science with Network Security/ BSc (Hons) Software Engineering/ BSc (Hons) Web Technologies. Examinations for 2016 Semester 1

I SEMESTER EXAM : : XI :COMPUTER SCIENCE : MAX MARK a) What is the difference between Hardware and Software? Give one example for each.

1. Find the output of following java program. class MainClass { public static void main (String arg[])

Arrays. Eng. Mohammed Abdualal

calling a function - function-name(argument list); y = square ( z ); include parentheses even if parameter list is empty!

COMP 202 Recursion. CONTENTS: Recursion. COMP Recursion 1

Software Systems Development Unit AS1: Introduction to Object Oriented Development

Q1 Q2 Q3 Q4 Q5 Total 1 * 7 1 * 5 20 * * Final marks Marks First Question

CS/B.TECH/CSE(OLD)/SEM-6/CS-605/2012 OBJECT ORIENTED PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70

Roll Number. Common to II Year B.E.CSE & EIE INTERNAL ASSESSMENT TEST - I. Credit 3 R-2017

Good Earth School Naduveerapattu. Computer Applications Worksheet Class X

Arrays: Higher Dimensional Arrays. CS0007: Introduction to Computer Programming

CSCI 355 Lab #2 Spring 2007


Outline. Parts 1 to 3 introduce and sketch out the ideas of OOP. Part 5 deals with these ideas in closer detail.

ISC 2009 COMPUTER SCIENCE PAPER 1 THEORY PART I Answer all questions in this part

CSCI 135 Exam #1 Fundamentals of Computer Science I Fall 2014

STRUCTURING OF PROGRAM

Subclass Gist Example: Chess Super Keyword Shadowing Overriding Why? L10 - Polymorphism and Abstract Classes The Four Principles of Object Oriented

Computer Programming, I. Laboratory Manual. Final Exam Solution

Subject: PROBLEM SOLVING THROUGH C Time: 3 Hours Max. Marks: 100

CS141 Programming Assignment #6

University of Cape Town ~ Department of Computer Science Computer Science 1015F ~ June Exam

Exam Duration: 2hrs and 30min Software Design

Functions. Lab 4. Introduction: A function : is a collection of statements that are grouped together to perform an operation.

COMP 202. More on OO. CONTENTS: static revisited this reference class dependencies method parameters variable scope method overloading

McGill University School of Computer Science COMP-202A Introduction to Computing 1

More on methods and variables. Fundamentals of Computer Science Keith Vertanen

Faculty of Engineering Computer Engineering Department Islamic University of Gaza C++ Programming Language Lab # 6 Functions

9 Working with the Java Class Library

Computer Applications Answer Key Class IX December 2017

The Hyderabad Public School Begumpet, Hyderabad, A.P.

Programming with Java

Exam 2. Programming I (CPCS 202) Instructor: M. G. Abbas Malik. Total Marks: 40 Obtained Marks:

ISC 2011 COMPUTER SCIENCE PAPER 1 THEORY

HOLIDAYS HOMEWORK CLASS : XII. Subject : Computer Science

Transcription:

COMPUTER APPLICATIONS (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 Question 1. (a) Define encapsulation. (b) Explain the purpose of using a new keyword in a Java program. (c) What are literals? (d) Mention the types of access specifiers. (e) What is constructor overloading? Question 2. (a) Differentiate between boxing and unboxing. (b) Rewrite the following condition without using logical operators: if ( a>b a>c ) System.out.println(a); This Paper consists of 6 printed pages. ICSE Specimen Paper 2020 onwards Turn Over

(c) (d) Rewrite the following loop using for loop: while (true) System.out.print("*"); Write the prototype of a function search which takes two arguments a string and a character and returns an integer value. (e) Differentiate between = and == operators. Question 3. (a) State the number of bytes and bits occupied by a character array of 10 elements. (b) Differentiate between Binary Search and Linear Search techniques. (c) What is the output of the following: String a="java is programming language \n developed by \t\'james Gosling\'"; System. out. println(a); (d) Differentiate between break and System. exit(0). (e) Write a statement in Java for (a+b)3 a b (f) (g) (h) (i) What is the value of m after evaluating the following expression: m - = 9%++n + ++n/2; when int m=10,n=6 Predict output of the following: (i) Math.pow(25,0.5)+Math.ceil(4.2) (ii) Math.round ( 14.7 ) + Math.floor ( 7.9) Give the output of the following java statements: (i) "TRANSPARENT".toLowerCase(); (ii) "TRANSPARENT".compareTo("TRANSITION") 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. ICSE Specimen Paper 2020 onwards 2

(j) State the type of errors if any in the following statements: (i) switch ( n > 2 ) (ii) System.out.println(100/0); 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. Flow-Charts and Algorithms are not required. 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 Upto 10 Kgs Next 20 Kgs Above 30 Kgs Charge per Kg Rs.25 per Kg Rs.20 per Kg Rs.10 per Kg ICSE Specimen Paper 2020 onwards 3 Turn Over

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. Question 5. Write a program to input name and percentage of 35 students of class X in two separate one dimensional arrays. Arrange students details according to their percentage in the descending order using selection sort method. Display name and percentage of first ten toppers of the class. Question 6. Design a class to overload a function Sum( ) as follows: (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 arguments(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. ICSE Specimen Paper 2020 onwards 4

Question 7. Using the switch statement, write a menu driven program to perform following operations: (i) (ii) To Print the value of Z where Z = x3 +0.5x Y an increment of 2 and Y remains constant at 5.5. To print the Floyds triangle with N rows where x ranges from 10 to 10 with Example: If N = 5, Output: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Question 8. Write a program to input and store integer elements in a double dimensional array of size 4 4 and find the sum of all the elements. 7 3 4 5 5 4 6 1 6 9 4 2 3 2 7 5 Sum of all the elements: 73 ICSE Specimen Paper 2020 onwards 5 Turn Over

Question 9. Write a program to input a string and convert it into uppercase and print the pair of vowels and number of pair of vowels occurring in the string. Example: Input: "BEAUTIFUL BEAUTIES " Output : Pair of vowels: EA, AU, EA, AU, IE No. of pair of vowels: 5 ICSE Specimen Paper 2020 onwards 6