Guess Papers Model Papers & Solved Papers

   We will help you
                        to get 100% marks.
 
You can get 100% marks in all the subjects in a very limited time preparing these GUESS PAPERS, MODEL PAPERS and SOLVED PAPERS which are made for all the boards, colleges and universities of Pakistan and are offered FREE of charges to everyone just to help students in their education. These guess papers are either the property of YSAPAK or downloaded from net.

These guess papers are prepared by the well known  teachers of the country having more than 25 years experience
of their subject.
 
 

Guess Paper – 2010

Class – X

Subject – Computer Applications

 
Section A (40 marks)
Attempt all questions
 (Each questions carries 2 marks of Sec-A)
 
1)
       a) Why is type casting required? Give one example.
       b) Explain the need of ‘super’ keyword?
       c) Give tow similarities between constructor and method.
       d)  Elements of an sorted array is given
                         4,6,12,34,56,78,122, 345
            To search the element 78 how many iteration is required if Binary search method   
            is used?
      e)  What is temporary instance?
 
2)
     a) Differentiate between final and finally.
     b) Differentiate between operator associativity and operator precedence.
     c) Give the Unicode value for ‘t’ and ASCII value for ‘T’.
     d) Find out the error if found for the following code fragment and which property is violating
          here?
 
            class a
            {
                        public void f()
                        {
                                    int p=5;
                                    {
                                                int x=10;
                                    }
                                    int y=p+x;
                        }
            }
    e) Why are compiler and interpreter required to run java program?
 
 
3)
      a)    class abc
            {
                        public void f()
                        {
                                    int a=5;
                                    System.out.print(a);
                        }
              }
             Find out four types of token if found above program code
 
    b)   System.out.print(((int)Math.pow(4,1/2))/2+Math.PI);
    c)   How are access specifiers related with inheritance?
   
d)   Give the output for following program code
         class wisdom
         {
              public static int a;
           
              wisdom(int v)
             {
                        a=v;
             }
            public static void show()
           {
                        System.out.print(“\n”+a);
           }
 
            public static void main(String args[])
           {
                  wisdom obj1=new wisdom(5);
                  obj1.show();
                  wisdom obj2=new wisdom(50);
                  obj1.show();
                  obj2.show();
           }
       }
    e)  Write code fragment to display the sum of ASCII values for the text “I<c@S>e“
         (not whole program)
 
4)
     a) Differentiate between function overloading and overriding?
     b) Differentiate between ‘package’ and ‘extends’ keywords
     c) Differentiate between ‘throw’ and ‘throws’ keyword.
     d) Why is wrapper class required?
     e) Give one difference of String and StringBuffere class and give one
         example of method for both classes.
 

SEC-B

 
              Attempt any 4 questions from this section
The answer in this Section should consist of the programs in either BlueJ environment or any other program environment or with Java as the base. Each program should be written using Variable Descriptions/Mnemonic Codes such that the logic of the program is clearly depicted. Flow charts and algorithms are not required.
 
5) Design class School
    Data Members
    int roll                      //to store roll number
    String name           //to store name of student
    String class             //to store class
    float fee                 // to store fees without discount
    String dt                 // to store the date [dd-mm-yyyy format] of fees given
    Member Functions
    School(float f)           // to initialize total fee without discount as Rs.1000/-
    void getInfo()        // to accept student details
    float  dicountCal() // to calculate discount
                                     range of date                           discount on total fee
                                     Jan-March                               15%
                                     April-June                               10%
                                     Jul-Sep                                    8%
                                     Oct-Dec                                  Add 5% extra with fees
   Void Diplay()          //to display student details and fees to be paid
   Write main() method.
 
 6) Write a program to accept a line of text and replace with all the vowels with next
       vowel and continue this process in cyclic order as given below.
             A -> E
             E  ->I
             I   ->O
             O ->U
             U ->A
      Applicable for lower case vowel also
        Example :
                           Salt LakE City is Your
        Output      : Selt LekI Coty os Yuar
7) Write a program to accept n number of elements and sort from 4th to 10th elements
     using bubble sort method in ascending order. Use try-catch (do not use throws
     IOException)Assume n>=11
 
8) Write a program to accept roll, name ,total marks for n number of students and display
     all the records on alphabetical order on name (A-Z) as following format by using
      selection sort method.
     
      Assume that totals marks to be accepted for 5 subjects and if any student get marks <40% and add sufficient grace marks to pass them.(You need not accept marks of 5 subjects , only accept total marks.(Total marks is 500 and each subjects carries 100 marks and pass marks is 40% of total marks)       
 
      Roll                        name                total
 
9) Write a program to accept an integer number and check the number palindrome or not except last and first digits , if it is palindrome then display the sum of first and last digits else  display maximum and minimum digits of the original number.
Example-1
If n= 23436,
  As is 343 is palindrome so, 2+6=8
Example -2
If n= 346824
As 4682 is not palindrome, maximum digit=8, minimum digit==2
 
10) Write a program calculate electricity bill by using following slab
Unit consumed                                                  rate/unit and power saving gift
1-50                                                                  Rs.1.50/-, gift=”Watch’;
50> but <=150                                                   Rs. 2.25/-, gift=”Calculator”;
>150 but <=300                                                 Rs. 3.20/-, gift=”Ball Pen”;
Above                                                              Rs. 4.50/-, gift=”Save Energy Slip”
 Calculate the bill and gift for 100 consumers count total no. of  Watch, Calculator, Ball Pen are requird
 
Go back to GUESS PAPERS FOR India, Syllabus of Indian School, colleges and Universities

ALL THE BEST

Team: www.ysapak.com

info4fysisoft@yahoo.com

Home | About | Sitemap | Model Papers | Solved Papers | Guess Papers | Learning Tips | Study Tips