/

Guess Paper – 2013
Class – X
Subject – COMPUTER APPLICATION

TIME 2Hrs

You will not be allow to write during the first 15 minutes. This time is to be spent in reading the question paper. The time given at the head of the paper is the time allowed for writing the answers. The time given at the head of the paper is the time allowed for writing the answers. This paper is divided into sections. You are to answer all questions in section A and four questions in section B. The intended marks for question or for parts of questions are given in brackets[ ]. All working, including the rough work, should be done on the same sheet as the rest of the answer.

SECTION A(ATTEMPT ALL QUESTIONS)

  1. Define keyword and identifier with examples? [4]
  1. Write a difference and a similarity between do---while and while loop with examples? [4]
  2. What are data types. Give example?[4]
  1. What is the value of x after evaluating x+=++ x+ --x + x-- +8; if x=420 before the evaluation
  1. define with examples private and public.[4]
  1. Differentiate between break and continue with examples. [4]
  1. Write a program to accept three numbers and find the greatest using terenary operator? [4]
  1. Write the difference between switch case and if else with examples. [4]
  1. In the following function somefn is a part of some class. Assume the arguments a and b are greater than 0 when the function is evoked. Show the dry run/working.

public void somefn(int a, int b)

{

if(a<b)

System.out.println(“Greatest no is”+a);

else

System.out.println(“Greatest no is”+b);

}

(i)What will be the output if a =5, b=8?

(ii)What will be the output if a= 18, b= 12?[4]

10. Define an array with an example[4]

SECTION B(Each question carries 15 marks)

(Answer any four questions from this section.)

Mneumonic codes and description of variables are required along with each program. Give comments wherever required.

Question 1:

Write a program accept ten numbers in an array and search for a particular no using linear search?

Question 2:

Write a program to print the following pattern

a)1 b) 1

22 23

333 456

4444 78910

55555

Question 3:

Write a program to accept 17 numbers in an array and sort inin descending using selection sort.

Question 4:

Write a program to accept a number and print only prime factors.

For example 12  2,3

30  2,3,5

Question 5;

Write a program to check whether a given number is Armstrong or not?

153 = 1*1*1 +5*5*5 +3*3*3

=1+125+27

=153

Paper Submitted By:

NameBiju alexander

Phone No.09997372205


Other Educational Portals
| | | | |