CSE Computer Application - Class X - 2011 PYQ
☰Fullscreen
Table of Content:
- Question 1: Difference between an object and a class?
- Question 2: What are library classes? Give an example.
- Question 3:
Name the keyword that:
(i) Informs that an error has occurred in an input/output operation.
(ii) Distinguishes between instance variables and class variables. - Question 4:
Write a statement each to perform the following tasks on a string:
(i) Find and display the position of the last space in a string
s.
(ii) Convert a number stored in a string variablexto double data type. - Question 5:
Write an expression in Java for:
z = (5x^3 + 2y)/(x + y) - Question 6: Give the prototype of a function
searchwhich receives a sentencesentncand a wordwrdand returns 1 or 0. - Question 7: Explain the concept of constructor overloading with an example.
- Question 8: What will be the output of the following code?
(i)
int k = 5, j = 9; k += k - j + k; System.out.println("k = " + k); System.out.println("j = " + j); (ii)
double b = -15 * 6; double a = Math.rint(Math.abs(b)); System.out.println("a = " + a); - Question 9: Analyse the following program segment and determine how many times the loop will be executed and what will be the output of the program segment:
int p = 200; while(true) { if(p < 100) break; p = p - 20; } System.out.println(p); - Question 10:
What is the role of the keyword
voidin declaring functions? - Question 11:
Write the output of the following:
(i)System.out.println(Character.isUpperCase('R'));
(ii)System.out.println(Character.toUpperCase('j')); - Question 12: Give the output of the following:
String n = "Computer Knowledge."; String m = "Computer Applications"; System.out.println(n.substring(0, 8).concat(m.substring(9))); System.out.println(n.endsWith("e")); - Question 13: (i) Name the package that contains the
Scannerclass.
(ii) Which unit of the class gets called when the object of the class is created? - Question 14: State the total size in bytes, of the arrays
a[4]ofchardata type andp[4]offloatdata type. - Question 15: What is the difference between
/and%operator? - Question 16: What are the two ways of invoking functions?
- Question 17: State the difference between entry controlled loop and exit controlled loop.
- Question 18: What does the token 'keyword' refer to, in the context of Java? Give an example for keyword.
- Question 19: Write one difference between Linear Search and Binary Search. Java Language