 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. Define output of the following                                                       
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                                     

int a=5,b=2;

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

System.out.println(a);

4. What is tautology, contradiction, contingencies?                        

5. Define what is try &catch?                                           

6. Solve the following                                           

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

OR

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

• Explain the following terms related to JAVA                                
• Function overriding

OR

2. Explain the following addressing mode                                        

• Explain Booting process in detail. With each phase described in depth, with the list of files loaded in computer.                                            

OR

3. Write about all four features of OOPS?                                        

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                           

OR

4. Define the following terms               

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.                                                               
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.                                              

• A class sort contains an array of 50 integers, some of the member functions data members are given below                                     

Section C (20 marks)

Write any two programs

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

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

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

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.                                         

SHARE
Previous articlePatterns part 1(using for loop)
Next articlePatterns part 2(using for loop)