This paper is divided into two parts. (Part 1 (30 marks) This part consists of compulsory short answer questions , Part 2 (70 marks) this part is divided into 3 sections A,B  and C students are requested to answer  2 questions out of 3 in section B & C. Each question carries 10 marks)

Part I (30 marks)

  1. What are jumping statements (break & continue)?                     [2]
  2. Define output of the following                                                       [4]
    1. “success”.indexOf(“u”);
    1. “success”.indexOf(“c”,2);
    1. “success”.lastIndexOf(‘s’);
    1. “success”.subString(0,2);
  3. Define the output of the following                                     [2]

  int a=5,b=2;

a+=++a*b– + a–;

System.out.println(a);

4. What is tautology, contradiction, contingencies?                        [2]

5. Define what is try &catch?                                           [2]

6. Solve the following                                           [4]

  1. (B1E)6=(?)10
  2. (1110110)2=(?)8
  3. (ABFE)16=(?)2
  4. (65275)8=(?) 7. Define the following commands of MSDOS                                [4]
  1. COPY
  2. TYPE
  3. COMP
  4. XCOPY 8. Calculate address of a [2][4] for array of size a [4][5], whose word size is 2 bytes, and base address is 1024. The array is stored in column wise matrix.                                                [2] 9. Perform binary multiplication on the following                         [4]
    • 1010*101            b.1110001*111 10.Express the following into decimal ,octal ,Hexadecimal   [4]
    • (111100001)2

Part II (70 marks)

Section A(30 marks)

  1. Explain with all logic gate diagram why NAND, NOR gates are called universal gates?                                 [5]

OR

1. What is a flip flop? Explain D flip flop with logic gate diagram? [5]

  • Explain the following terms related to JAVA                                [5]
    • Function overloading
    • Function overriding

OR

2. Explain the following addressing mode                                        [5]

  • Immediate addressing
    • Register direct addressing
  • Explain Booting process in detail. With each phase described in depth, with the list of files loaded in computer.                                            [10]

OR

3. Write about all four features of OOPS?                                        [10]

  1. Abstraction
  2. Inheritance
  3. Polymorphism
  4. Encapsulation
  • Explain the importance of each functional unit inside your computer i.e. CPU, ALU,MU,CU, microprocessor                           [10]  

OR

4. Define the following terms               [10]

  1. Operating system as I/O manager
  2. Operating system as device manager.

Section B(20 marks)

Write any two programs

  1. Write a program explaining function overriding, which defines a class Shape from which class rectangle & Circle inherits. The function called area () is defined inside all classes with same parameter. Calculate area of circle & rectangle.                                                               [10]
  2. Write a program to declare a square matrix A[ ] [ ] of order (M x M) where ‘M’ is the number of rows and the number of columns such that M must be greater than 2 and less than 20. Allow the user to input integers into this matrix. Display appropriate error message for an invalid input. Perform the following tasks:

(a)Display the input matrix.

(b)Create a mirror image matrix.

(c) Display the mirror image matrix.                                              [10]

  • A class sort contains an array of 50 integers, some of the member functions data members are given below                                     [10]
Class name Sort
Data members  
Arr[] Integers
Item Number to be searched for in the array
Member functions  
Void inpdata() To input 50 integers
Void insort() To sort the array in ascending order using insertion sort technique and display it
Void binserach() To input item and serach for it using binary search technique, if found to print the item searched and its position in its sorted list.

Section C (20 marks)

Write any two programs

  1. Write OOP to input N & find the sum of the following series      [10]

S=1+8+27+64- – – – – +1000

S=1+5+10+17 – – – – -+101 2. Write a program to display the following output                          [10]

5 4 3 2 1
5 4 3 2
5 4 3
5 4
5
5 4
5 4 3
5 4 3 2
5 4 3 2 1
3. Write program to enter Full name of user and print initials in following format

i.e. Mohandas Karamchand Gandhi

O/P M.K.Gandhi.                                         [10]

LEAVE A REPLY

Please enter your comment!
Please enter your name here