ICSE Computer Application - Class X - 2010 PYQ
☰Fullscreen
Table of Content:
- Question 1: Define the term Byte code.
- Question 2: What do you mean by type conversion? How is implicit conversion different from explicit conversion?
- Question 3: Name two jump statements and their use.
- Question 4: What is an Exception? Name two Exception handling blocks.
- Question 5: Write two advantages of using functions in a program.
- Question 6: State the purpose and return data type of the following String functions:
- Question 7: What is the result stored in x, after evaluating the following expression?
Given:
int x = 5;
Expression:
x++ * 2 + 3 * --x;
- Question 8: Differentiate between private and protected visibility modifiers.
- Question 9: What will be the output of the following code?
int m = 2; int n = 15; for(int i = 1; i < 5; i++) { m += i; // m = m + i n -= i; // n = n - i } System.out.println("m = " + m); // Output for m System.out.println("n = " + n); // Output for n
- Question 10: Analyze 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 k = 1; int i = 2; while(++i < 6) { k *= i; } System.out.println(k); - Question 11: Differentiate between static and non-static data members.
- Question 12: Write the difference between
length
andlength()
functions. - Question 13: What do you understand by the term data abstraction? Explain with an example.
- Question 14: What will be the output of the following code?
char x = 'A'; int m; m = (x == 'a') ? 'A' : 'a'; System.out.println("m = " + m); - Question 15: Give the prototype of a function check which receives a character (ch) and an integer (n) and returns true or false.
- Question 16: State two features of a constructor.
- Question 17: Write a statement each to perform the following tasks on a string:
- Question 18: What will the following functions return when executed?
- Question 19: Why is an object called an instance of a class?
- Question 20: (ii) What is the use of the keyword
import
?
Related Questions
- Assignment 1: Write a program to perform binary search on a list of integers given below to search for an element input by the user. If it is found, display the element along with its position; otherwise, display the message "Search element not found."
5, 7, 9, 11, 15, 20, 30, 45, 89, 97
- Assignment 2: Write a program to store 6 elements in an array P and 4 elements in an array Q, and produce a third array R containing all the elements of arrays P and Q. Display the resultant array.
- Assignment 3: Define a class
Student
with the following specifications: - Assignment 4: Shasha Travels Pvt. Ltd. provides discounts to its customers based on the ticket amount as follows:
- Assignment 5: Write a program to input a string in uppercase and print the frequency of each character.
- Assignment 6: Write a menu-driven program to accept a number and check whether it is a prime number or an automorphic number. Use a switch-case statement.
- Assignment 7: Define a class called
MoBike
with the following description: - Assignment 8: Write a program to input a number and print whether the number is a special number or not. (A number is said to be a special number if the sum of the factorial of the digits of the number is the same as the original number).
- Assignment 9: Write a program to accept a word and convert it into lowercase if it is in uppercase, and display the new word by replacing only the vowels with the character following it.
- Assignment 10: Design a class to overload a function compare() as follows:
- Assignment 11: Write a menu-driven program to perform the following (using a switch-case statement):