Trending ▼   ResFinder  

ICSE Prelims Jan 2016 : Computer Applications (Cambrian Hall, Dehradun)

3 pages, 0 questions, 0 questions with responses, 0 total responses,    0    0
Harvinder Singh
  
+Fave Message
 Home > saroj1952 >   F Also featured on: School Page

Formatting page ...

CAMBRIAN HALL , DEHRADUN Preliminary Examination, January 2016 Class : X MM: 100 Computer Applications TIME : 2 hrs ---------------------------------------------------------------------------------------------------You will not be allowed to write for the first 15 minutes. This time is to be spent in reading the question paper. The time given at the head of the paper is the time allowed for writing the answers. This question paper is divided into two sections. You are to attempt all questions from section A and any four questions from section B. The marks for questions or sub parts are given in brackets []. ------------------------------------------------------------------------------------------------------------------------------SECTION A(40 marks) (Attempt all questions from this section) Question 1. [2x5] (a) Class is a user defined data type . Explain. (b) (i) Explain the meaning of following java statement: Subject cta = new Subject(); (ii) Predict the value of P, int P = (int) A + 25; (c) Explain the term entry controlled loop. How is it different from exit controlled loop? (d) Differentiate between a constructor and a method. (e) Explain with example the purpose of final keyword. Question 2. [2x5] (a) Differentiate between instance variables and class variables. Give examples also. (b) Why do we use Scanner class in java? Name the java package that contains Scanner class. (c) What is call by reference? Explain giving a small example. (d) Write java statements to : (i) To generate random number between 0 and 1. (ii) To find the value of Sin300. (iii) To find the value of log 2056. (iv) To round off the 60.7 to nearest int value. (e) Write the syntax to : (i) Create a scanner object (ii) To accept an integer using Scanner object. Question 3. (a) What is fall through? Give an example. [2] (b) Write java code to declare any two variables and initialize them through parameterized constructor. [3] (c) What do you mean by the term coercion? [2] (d) What do you mean by unary operator? Mention two types of unary operators. [2] (e) Give the output , if : [2] int a[]= { 5,8,9,6,4}; a[1]=a[3]; a[2]=a[4]; a[3]=a[1]+a[2]; for(int i=0; i<5;i++) System.out.print(a[i] + , ); (f) Name the term given to join two strings. Write the library function to join two strings. [2] (g) Give the output : [3] String s = TECHNICIAN ; System.out.println(s.substring(6) + s.substring(0,4)); System.out.println(s.charAt(s.indexOf( N )); System.out.println(s.endsWith( CAN )); (h) Distinguish between /*------------ */ and /** ------------- */ [2] (i) What do you mean by protected specifier? How is it different from private? [2] SECTION B (60 marks) (Attempt any four questions from this section) Question 4. [15] Write a menu driven program in java to input a number and check whether it is a : (a) DISARIUM number or not. (b) DUCK number or not. Note : DISARIUM : A number will be called DISARIUM if sum of its digits powered with their respective position is equal to the original number. For example : 135 is DISARIUM (Working 11 + 32 + 53 = 1 + 9 + 125 = 135), Some other DISARIUM are 89, 175 , 518 etc) DUCK : A DUCK number is a number which has zeroes present in it, but there should be no zero present in the beginning of the number. For example 3210 , 1089, 40708 are DUCK numbers whereas 0987 is not. Question 5. [15] A non-palindrome word can be made a palindrome word just by adding reverse of the word with the original word. Write a program to accept a non-palindrome word and display the new word after making it a palindrome. Also check Whether the newly formed word is a palindrome or not. Sample Input : ICSE Sample Output : ICSEESCI It is Palindrome word. Question 6. [15] Write a program to accept 15 integers from the keyboard, assuming that no integer entered is a zero,perform Selection Sort on the integers and then print them in ascending order. Question 7. [15] Define a class named movieMagic with the following description: Instance variables/data members: int year to store the year of release of a movie String title to store the title of the movie float rating to store the popularity rating of the movie (minimum rating = 0.0 and maximum rating = 5.0) Member methods: i. movieMagic( )Default constructor to initialize numeric data members to 0 and String data member to . ii. void accept( )To input and store year, title and rating. iii. void display( )To display the title of a movie and a message based on the rating as per the table below. Rating Message to be displayed 0.0 to 2.0 Flop 2.1 to 3.4 Semi-hit 3.5 to 4.5 Hit 4.6 to 5.0 Super Hit Question 8. Write a program to input twenty names in an array and display all the names whose first alphabet matches with the alphabet entered by the user. [15] Question 9. [15] Design a class to accept the values of a,b,c and n. Calculate and print x and y, where : x= (abc)2 / !1 + (abc)4 / !2 + .(abc)n*2 / !n y = 2 + (2*4) + (2*4*6) + .. + (2*4* n) ----------------xxxxxxxxxxxxxx-----------------

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 

© 2010 - 2025 ResPaper. Terms of ServiceContact Us Advertise with us

 

saroj1952 chat