Trending ▼   ResFinder  

ICSE Class X Pre Board Exam 2024 :

4 pages, 0 questions, 0 questions with responses, 0 total responses,    0    0
Pankaj Gupta
  
+Fave Message
 Home > pankz21 >

Formatting page ...

PREBOARD EXAMINATION ST ANTHONY S CONVENT SCHOOL JAIGAON CLASS-X FM 100 SUBJECT- COMPUTER APPLICATION TIME-2hr SECTION A (40 marks) (attempt all the questions) Choose the correct answers: (i)Which object-oriented principle is violated when a subclass inherits from multiple super classes? (a) Inheritance (b) Encapsulation (c) Polymorphism (d) Abstraction (ii) The operator ? : is also known as: (a) logical operator (b) arithmetic operator (c) relational operator(d) conditional operator (iii) Which method of the Scanner class is used to accept a boolean value? (a) nextInt() (b) nextBoolean() (c) next() d) nextInteger() (iv) Which of the following statements is true? (a)Binary search is less efficient than linear search. (b)Binary search is more efficient than linear search. (c)Binary search is as efficient as linear search. (d)None of the above (v) Identify the type of error in the following Java statement: int number = "five"; (a) Syntax error (b) Runtime error (c) Logical error (d) No error I(vi) What is the purpose of the Math.ceil() function in Java? (a) Rounds up to the nearest integer (b) Rounds down to the nearest integer (c) Returns the square root (d) Returns the absolute value (vii) When primitive data type is converted to a corresponding object of its class, it is called: (a) Boxing b) Unboxing (c) explicit type conversion (d) implicit type conversion (viii) The number of bytes occupied by a float array of 20 elements. (a) 20 bytes (b) 60 bytes (c) 40 bytes (d) 80 bytes (ix) In Java, the expression 5 / 2 results in: (a) 2.5 (b) 2 (c) 2.0 (d) 3 (x) String str = "Programming"; System.out.println(str.substring(3, 7)); What will be the output? (a) ogra (b) gram (c) ammi (d) amm (xi) int[][] matrix = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}; System.out.println(matrix[2][1]); What will be the output? (a) 2 (b) 5 (c) 8 (d) 9 (xii) int[] arr = {10, 20, 30, 40, 50}; System.out.println(arr.length + " " + arr[2]); What will be the output? (a) 5 30 (b) 4 30 (c) 5 20 (d) 4 20 (xiii) How do you declare an array in Java?

Formatting page ...

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

Additional Info : Computer application pre board
Tags : St Anthony's convent School,  

© 2010 - 2024 ResPaper. Terms of ServiceContact Us Advertise with us

 

pankz21 chat