Formatting page ...
Rani Laxmibai Public School Jhansi CLASS X (COMPUTER APPLICATIONS) QUESTIONAIRE (2017-18) 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. Define Abstraction. Define Inheritance. What is Interpreter? What is Compiler? What do you mean by import statement explain with the help of an example? What is an Expression? Give an example? Define the keyword final . Give an example also. What is pure function? What is impure function? Define break in a loop with an example. Define continue in a loop with an example. What is an Exception? Name any two Exception handling blocks. Define parameterized constructor. Define non-parameterized constructor. What do you mean by function prototype. Explain with an example. What is the use of this keyword in Java? Define equals(). Define compareTo() functions. What is the private visibility modes. What is the public visibility modes. What is the protected visibility modes. What is UNICODE? Explain Constructor overloading with an example? Define String class Define StringBuffer clases. Define the term Bytecode. Write any two features of Java Programming language? Define if-else statement. Define switch-case statements? What is fall through situation in switch case statement? What do you understand by errors? Write the types of errors. Name two different style of expressing comment in java program. Name the methods of Scanner class that is used to input an Integer data from the standard input device. Name the methods of Scanner class that is used to input a String data from the standard input device. What is the datatype that the following library functions return? (i) isWhitespace(char ch) (ii) Math.random() State one difference between the floating point literals and double. Name the package that contains Scanner class. Which unit of class gets called, when the object of the class is created. Write one difference between / and % . Give the size and range of byte datatype. Give the size and range of short datatype. Give the size and range of int datatype. Give the size and range of long datatype. Give the size and range of float datatype. Give the size and range of double datatype. Give the size and range of char datatype. Give the size and range of boolean datatype. Define call by value method. Define call by reference methods. Explain trim() function with an example. Write valid java statement to extracta ll even position characters from the string Kinetic Energy . 1|Page 54. 55. 56. 57. 58. 59. 60. 61. 62. 63. 64. 65. 66. 67. 68. 69. 70. 71. 72. 73. 74. 75. 76. 77. 78. 79. 80. 81. 82. 83. 84. 85. 86. 87. 88. 89. 90. 91. 92. 93. 94. 95. 96. 97. Write the syntax of ternary / conditional operator. Define Empty loop with an example. Write any two advantages of using methods. Write the size and range of char and boolean datatype. Why class is known as Object factory. What are the characteristics of a Constructor Write a java statement to find if a car cter variable called var contains an alphabet or not. Name the package of java which is imported by default. What is the difference between an object and a class? What does the token keyword refer to in the context of Java? Give an example for keyword State the difference between entry controlled loop and exit controlled loop. What are the two ways of invoking functions? What is the difference between / & % operator? Create a class with one integer instance variable. Initialize the variable using: i) default constructor ii) parameterized constructor Which element is num[9] of the array num? State the purpose and return data type of the following String functions: (i) indexOf() (ii) compareTo(). Write two advantages of using functions in a program. Differentiate between static and non-static data members. What is length? What is length()? What is the result stored in x, after evaluating the expression: int x=5; x=x++ * 2+3*--x; If x=5, y=3 find: x+=y*++x-x/y-y++ Evaluate Math.ceil(15.78)+Math.round(23.2); Find Output : int a = 5, b=0; while(b<5) { b++; a--; System.out.println(a+ +b); } System.out.println(a+ +b); Write the java expression for: x= | 2 4 / 7 Rewrite the following for loop using do-while : for( int i=1; i<=10; i++) Write Output: System.out.println( hello +2+3); Write Output: System.out.println( hello +(2+3)); Write Output: System.out.println( B .compareTo( A )); Write Output: System.out.println( Welcome .charAt(2)+ Welcome .charAt(0)); Name any four tokens of Java. Write an expression in Java for cos x +22 a b . What is the result produced by 2 10*3 + 100/11? What is local variable What is instance variable? int x =20, y = 10, z; What is the value of z in z = ++x * (y ) y ? What is the purpose of default in a switch? Define linear search Define binary search. What will be the output of the following code? float x = 7.87; System.out.println(Math.ceil(x); System.out.println(Math.floor(x); Define if-else if ladder Define switch...case. Explain the concept of constructor overloading with an example. What will be the output of the following program segments? String s = application ; int p = s.indexOf( a ); 2|Page System.out.println(p); System.out.println(p+s); 98. What will be the output of the following program segments? String st = PROGRAM ; System.out.println(st.indexOf(st.charAt(4))); 99. What will be the output of the following program segments? int a = 0; if(a>0 && a<20) a++; else a-- ; System.out.println(a); 100. What will be the output of the following program segments? int a= 5, b = 2,c; if (a>b || a ! = b) c = ++a+--b; System.out.print(c+ +a+ +b); 101. What will be the output of the following program segments? int i = 1; while(i++<=1) { i++; System.out.print(i + ); } System.out.print(i); 102. 103. 104. 105. 106. 107. 108. 109. 110. 111. 112. 113. 114. 115. 116. 117. 118. 119. 120. 121. Differentiate between isUpperCase(char) and toUpperCase(char). What is the difference between a constructor function and a member function of a class? What is the difference between a static member function and a member function which is not static? What is significance of abstraction in class? What is main method ? What is its role in java program? What is Local and global variables in Java? Define Operator Define an expression. Define bytecode. Evaluate Math.ceil(7.8)+Math.round(6.3); What is BufferedReader? Write a syntax of nested if-else. Explain the concept of wrapper class in Java. What is difference between binary search and Linear search. Distinguish break and continue statements with example. What is prototype of a method ? Explain exception class. Define constructor. Define static keyword. A program of java that can be executed from any remote machine is called: a. b. c. d. 122. Find which one is not a character literal. a. b. c. d. 3|Page Application Applet Object None 1 10 '\0 \n 123. Which of the following return type does a constructor have: a. b. c. d. 124. Void Boolean Int None The arguments of the function given in the function definition are called: a. b. c. d. Formal parameter Actual parameter Reference parameter None 125. The address of a memory location which can store a value and which may change during the program execution is known as: a. b. c. d. Identifier Keyword Separator Literal 126. The compiler ignores the characters in the _____. 127. _____ is used to force a conversion from one data type to another. 128. The logical _____ is equivalent to OR function. 129. A _____ is a blue print of the attributes and the methods common to all its objects. 130. When an expression within the parenthesis in a set of statements returns zero value, the condition is considered to be _____. 131. Switch statement can use characters and numbers in its case. (True / False) 132. The continue statement force an early iteration of a loop. (True / False) 133. do . While is an entry controlled loop. (True / False) 134. For every primitive type in java , there is a built in object type called Wrapper class. (True / False) 135. Software objects interact and communicate with each other using machine language. (True / False) 136. Write the output: (a) b) public class test { public void main( ) { int a=5,b; b=2*a - - + - - a; System.out.print(+a+" "+b); System.out.println(a); } } 137. 138. 139. 140. 141. 142. 143. 144. 145. 146. 4|Page public class result { public static void main( ) { char a= 'a' ; System.out.println(+a); a++; } } Explain Type casting with example. Explain Literal with example. Explain Cercion with example. Explain Possible loss of precision with example. Explain Type casting with example. What is the need of JVM ? What do you mean by Polymorphism ? Define keyword. Define reserved word. What are naming conventions and rules ? 147. 148. 149. 150. 151. 152. 153. 154. 155. 156. 157. 158. 159. 160. 161. 162. 163. 164. 165. 166. 167. 168. 169. 170. 171. 172. 173. 174. 175. 176. 177. 178. 179. 180. 181. 182. 183. 184. 185. 186. 187. 188. 189. 190. 191. 192. 193. 194. 195. 5|Page Name types of java programs Define throws. Define new operator. What is valueOf() method? What is an Object? What is a Class? What are the Four Principels of OOPS? Define Encapsulation. Define Abstraction. Define Inheritence. Define Polymorphism How are real world object impleamented in software form? What is message passing? What are method? What is information hiding? How are objects related to a class? Why classes known as object factory? Define Object factory? Why are classes needed? What are Attributes of class? When was java developed and by whom? What was the previous name of java? Which characterset used in java? Define UNICODE characterset. Explain bytecode. Define ordinary compilation process. Define java Compilation process. What is Source code? What is platform independency? What is JVM? What is Java API? Write four characterstics of java. What is WORA? What is lightweight code? Why java is called open product? Mention types of comments with symbols What do you mean by initial class? What is driver method? Name type of java Programs. What is IDE? Define BlueJ. What are Packages? Name Types of packages. Why is Java Termed as platform What are tokens? Name all types of tokens. Define Keywords. Define Identifiers. What are punctuators? 196. 197. 198. 199. 200. 201. 202. 203. 204. 205. 206. 207. 208. 209. 210. 211. 212. 213. 214. 215. 216. 217. 218. 219. 220. 221. 222. 223. 224. 225. 226. 227. 228. 229. 230. 231. 232. 233. 234. 235. 236. 237. 238. 239. 240. 241. 242. 243. 244. 6|Page Define literals. Name types of literals. What are operators? Differentiate primitive and non-primitive data types. How float and double literals are differentiated? Define arithmetic operators with examples. Define all relational operators with examples. Define data types and name its types. Differentiate primitive and reference data type. Give range and size of Byte. Give range and size of Short. Give range and size of int? Give range and size of long. Give range and size offloat. Give range and size of double. Differentiate between class variables and instance variables. Define Selection control statement. Give Syntax and examples of multiple if/if-elseladder. Give Syntax and examples of nested if. Define Switch case with syntax and example. Define jump statements. Differentiate between if-else and switch case. Define Block or compound statements? Define Conditional operators with syntax. Differentiate between conditional operator and if-else. Define Fallthrough. Define Associativity. Define Operator precedence. Define Iteration/loop. Define pre tested and post testedloop. Define whiloe loop with syntax and example. Define for loop with syntax and example. Define do-while loop with syntax and example. Define jump statement continue with syntax and example. Difference between break and continue. Define case sensitivity. Define packages with example. Give identifire naming rule. Why java is called internet language? Why class is called composit datatype? Name different type of java tokens. Define keywords and give 4 examples. Name boolean literals. Give an example of octal literals. Give any three escape sequences. Define binary operators. Define prefix and postfix unary increament operator. Define constructor and its type. Write any two advantages of functions. 245. 246. 247. 248. 249. 250. 251. 252. 253. 254. 255. 256. 257. 258. 259. 260. 261. Write the difference between actual and formal parameters. Define pure and impure function. Write the difference between call by value and call by reference. Define with an example function overloading. Which unit of class gets called when the object of class created? Can we have two or more functions with same name in one class. What is a return type of a constructor? What is garbage collection in java Differentiate library and user defined function. Define function signature. Definefunction prototype. If a function does not return anything its return type should be. Define this keyword. Specify its use with example. Differentiate static and non static member function. Name the keyword that passes back the control from the method. If a method contains several return statements, how many will get executed? If x=2 and y=2 what will be the output Y*=y+5; 262. Writ the final value of x if a=2 and b=5 X=a>b?a:b; 263. Write output if s1= MAHATMA , s2= GANDHI System.out.println(s1.length()+s2.length()); System.out.println(s1.charAt(3)+s2.charAt(5)); 264. Give the output if a=7 A+=a++ + ++a +--a +a--; 265. Write function prototype poschar which takes a string argument and a character argument and return an integer 266. Write java expression for t= a2b2+c2 267. Write one example of empty and infinite loop 268. Write a statement to check if the second character of String str is in uppercase 269. Write the output System.out.println( MOUNTAIN .charAt(4)); 270. Write the output System.out.println( INTERMISSION .substring(5)); 271. Write the output System.out.println( UNIVERSAL .indexOf( v )); 272. Write the output System.out.println( Java .compareTo( Java )); 273. If arr[]={1,9,8,5,2}; (i) What is arr.length (ii) What is arr[2]; 274. 275. 276. 277. 278. 7|Page Differentiate between subscript/subscripted variable? What is the difference between intx[]; and x=new int [10]; Write a single statement to do the job of two state of q. no. 275 Write the java statement to store first 6 multiples of 4 in an array Initialize an array of 5 city name 279. Int x[]={-5,-4,-3,-2,-1}; For (i=3;i<5;i++) System.out.println(x[i]);Give output 280. How much memory is required to store each of the following (i) Int a[]=new int[10]; (ii) Char c[]=new char[20]; 281. What is the ramge of indices that array with 15 element can have? 282. Consider t5he following list of numbers to be arranged in ascending 5,0,2,8,1,9,3,4 show the list after 3rd pass of bubble sorting 283. Int x=5; x=x+1*2+3*--x give the value of x 284. Write java expression (a+b)n/ 3 + b 285. If a 5 and b=9 calculate a+=a++ - ++b +a; 286. Assign value 3.14 to a requisite type. 287. Explain type casting with an example 288. If a=2,b=3 and c=9 find out (i) A-(b++)*(--c); (ii) A*(++b)%c; 289. Store 27.50 as String 290. Convert above String to number 291. If c= A ,m=26 then int n=c+m 292. If a=45;b=2 then c=a%b 293. If a1=5 then s=++a1- --a1 294. Write the function prototype that return a boolean valueand take an integer variable as an argument function name is calc 295. Write a prototype of static method name d show that accepts two short type variable 296. Write an overloaded method divide that takes an integer value and return double 297. Show output For (int i=1;i<=10;i++) System.out.print(i); System.out.println(); 298. If x=5432; While(x>0) { X=x/10; System.out.println(x); } Find the output 299. Convert into if else Switch(t) { Case 10: Case 20: Case 30: x++; Break; Case 40:x+=2; Break; Case 50: Default: X+=5; } 300. Name wrapper class char and int. 8|Page
|