ICSE Computer Application - Class X - 2018 PYQ
☰Fullscreen
Table of Content:
Solved 2018 Question Paper ICSE Class 10 Computer Applications
- Question 1: What do you understand by the term data abstraction? Explain with an example.
- Question 2: State two features of a constructor.
- Question 3: Define abstraction.
- Question 4: Differentiate between searching and sorting.
- Question 5: How are private members of a class different from public members?
- Question 6:
lassify the following as primitive or non-primitive datatypes:
- char
- arrays
- int
- classes
- Question 7:
(a) (i) int res = 'A';
What is the value of res? - Question 8: State the difference between while and do while loop.
- Question 9: Write the prototype of a function check which takes an integer as an argument and returns a character.
- Question 10:
Write the return data type of the following function.
- endsWith()
- log()
- Question 11:
Give the output of the following:
- Math.floor (-4.7)
- Math.ceil(3.4) + Math.pow(2, 3)
- Question 12: Write two characteristics of a constructor.
- Question 13:
Write the output for the following:
System.out.println("Incredible"+"\n"+"world");
- Question 14: Write a difference between the functions isUpperCase( ) and toUpperCase( ).
- Question 15:
System.out.print("BEST ");
System.out.println("OF LUCK");Choose the correct option for the output of the above statements
- BEST OF LUCK
- BEST
OF LUCK
- Question 16: Rewrite the following using ternary operator:
if (bill > 10000 ) discount = bill * 10.0/100; else discount = bill * 5.0/100; - Question 17: Write a Java expression for the following:
\[ \frac{\sqrt{3x + x^2}}{a + b} \]
- Question 18:
What is the value of y after evaluating the expression given below?
y+= ++y + y-- + --y; when int y=8
- Question 19: Convert the following if else if construct into switch case
if( var==1) System.out.println("good"); else if(var==2) System.out.println("better"); else if(var==3) System.out.println("best"); else System.out.println("invalid"); - Question 20:
Give the output of the following string functions:
- "ACHIEVEMENT".replace('E', 'A')
- "DEDICATE".compareTo("DEVOTE")
- Question 21: Consider the following String array and give the output
String arr[]= {"DELHI", "CHENNAI", "MUMBAI", "LUCKNOW", "JAIPUR"}; System.out.println(arr[0].length() > arr[3].length()); System.out.print(arr[4].substring(0,3)); - Question 22: Give the output of the following program segment and also mention how many times the loop is executed:
int i; for ( i = 5 ; i > 10; i ++ ) System.out.println( i ); System.out.println( i * 4 );
Related Questions
- Assignment 1: Design a class RailwayTicket with following description:
- Assignment 2: Write a program to input a number and check and print whether it is a Pronic number or not. (Pronic number is the number which is the product of two consecutive integers)
- Assignment 3: Write a program in Java to accept a string in lower case and change the first letter of every word to upper case. Display the new string.
- Assignment 4: Design a class to overload a function volume() as follows:
- Assignment 5: Write a menu driven program to display the pattern as per user’s choice.
- Assignment 6: Write a program to accept name and total marks of N number of students in two single subscript array name[] and totalmarks[].