Formatting page ...
CLASS X IInd PREBOARD EXAMINATION COMPUTER APPLICATIONS Time : 2 hrs Section a Attempt all questions from this section. [40 marks] Max. Marks 100 Question 1: a. b. c. d. What do you mean by Abstractiion? Differentiate between nextInt() and hasnextInt(). What do you mean by constructor? Give any two features of constructor. What do you mean by Function overloading? Which concept of OOP is used in function Overloading? e. Name the two ways of invoking a function. How are primitive and non primitive data types passed to a function [2] [2] [2] [2] [2] Question 2: a. Differentiate between pure and impure functions with example . [2] b. If int a[] ={3,5,6,2,4,15,9,164,20} what will be the value of x and y after the execution of the following statements. [2] i. int x=a.length. int y =Math.pow (a[0],a[3]); c. What is the value of x after evaluating the following expression? [1] int x; x - = 50%++y + ++y/5; if x= 10 and y=6. d. Do as directed in the following code [2] String s= Uttar Pradesh ; String t= Akhand Bharat ; [2] i. Write the statement to print Uttarakhand by using proper string functions from String s and String t. ii. System.out.println(s.length()); iii. System.out.println( Character.isUpperCase(t. charAt(s.indexOf( r ))); iv. System.out.println(s.charAt(3)==t.charAt(3)) e. Predict the output of the following. [2] i. Math.pow(64,0.5) +Math.sqrt(Math.abs(-16)); ii. Math.ceil(34.7)+Math.max(5,30); iii. CAMERA .compareTo( CAMEL ); iv. System.out.println ( Make .concat( Made in India .substring(4))); Question 3: a. Give the keyword for i. Using/ Calling a package to a program [2]
|