CBSE Guess > Papers > Important Questions > Class XI > 2010 > Informatics Practices > Informatics Practices By Mr. Lakhan Singh Pal CBSE CLASS XI Section – A Q.1. Find the output of the following:- (a).class MAIN{ (b). i. private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) ii. private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) Q2. Find Errors and Rewrite correct code the following program code:- (a) .public class MAINPRO { (c). Write a Java Class ABC and define two class methods like “swapByVal()” for swapping two number by value , “swapByRef()” for swapping variable value by using reference parameter. And also display swaped value on screen, these method call in main () method. (d). Write NetBean IDE code to display following output: 1! + 2! + 3! + 4! + ……… + N! Section – B Q4. Differentiate with example :- (a) Testing & Debugging (b) Try & Catch and Throws. Q5. Answer the following questions (a). What is Error? Explain different type of errors. (b) Design an application having an interface like: Implement functionality by writing methods with passing the argument of three textboxes in, clacSum(), calcAvg() & calcMax(). Invoke these methods from buttons event handlers.Q6. Answer the following questions I. Write down Problem solving Methodology and Techniques Q7. Answer the following questions [any two ] (a). Write a program & design IDE form to define two method calcCI() & calcSI() to pass Principal Amount & Time as a argument and return Simple Interest & Compound Interest respectively as per following criteria :-
(b). Write Java method and integer number of series terms as a argument to print following series. 1, 2, 4, 8, 16, 32,……….. c). Write a Java code to display following Code:- Paper By Mr.Lakhan Singh Pal |