Sie sind auf Seite 1von 3

http://www.cbseguess.

com/

Sample Paper – 2010


Class – XI
Subject - Informatics Practices
Note. (i) This question paper is divided in to 4 sections.
(ii) Section-A, Section-B and Section-C are of 20 marks each.
(iii) Section-D consists 10 marks.
(iv) Answer the questions after carefully reading the text.

Section-A
1. Answer the following questions- 10×1
(a) Define- Programming Language
(b) What is an Interface?
(c) Explain Java Byte Code.
(d) What is an IDE?
(e) What is Palette?
(f) What is an event?
(g) Give examples of arithmetic binary operators.
(h) What is Data Type? Give an example.
(i) Explain do..while loop with an example.
(j) Explain the if statement with an example.

2. Answer the following questions:- 10×1


(a) Define-Table .
(b) Define-DML. Give example.
(c) What is Alternate Key?
(d) What is DBMS ? Give example.
(e) What is data redundancy?
(f) What is the function of ORDER BY?
(g) How will you drop a table? Give example.
(h) What is the default Date format for select query?
(i) Define Function.
(j) Which function returns?
(i) The length of a string (ii) The roundup value of any fractional number.

Section-B

3. Answer the following questions:-


(a) Rewrite following code using while loop. 2
int sum = 0;
for ( int i =1 ; i <= 55 ; i++ ) {
sum = sum + c;
}
(b) How many time(s) are the following loop executed? 2
int i = 1, j = 0 , n = 0;
for ( j = 1 ; j <= i ; j++) {
i ++ ;
if ( i == 5 )
{
n = 1;
break;
}
}

-------------------------------------------------------------------------------------------------------
www.cbseguess.com
Other Educational Portals
www.icseguess.com | www.ignouguess.com | www.dulife.com | www.magicsense.com
http://www.cbseguess.com/

(c) Find out the errors: 2


int i
while ( i < = 10 )
{
if ( i % 2 == 0 )

System.out.println( i )
}
else
System.out.println ( i + 1);
};

i ++ ;
}

(d) Predict the output of the following code fragments: 2


int a = 5, b = 1, k = 9 ;
while( k > 1)
{
System.out.println (a);
System.out.println (b);
a=a-b;
b = b + 2;
if (a == b)
{
k=9;
}
else
{
k = k - 3;
}
}

4. (a) Using NetBeans IDE write a java program to display all the even numbers between 2 to N. 4
(b) Using NetBeans IDE write a java program to display the sum of the digits of a number N. 4
(c) Using NetBeans IDE write a java program to check a number N is Armstrong or not.
(e.g. of Armstrong no is 153 = 13 + 53 + 33 ) 4

Section-C
5. Find the outputs- 10×1
(a) SELECT ROUND (10023.190,1);
(b) SELECT CONCAT(LOWER(‘xiHum’), UPPER(’xiSc’),LOWER(‘xiCom’));
(c) SELECT MID(‘ABS Public School’ ,4,8);
(d) SELECT SUBSTR( TRIM(‘ INDIA IS GREAT ‘),3,9);
(e) SELECT DAYOFYEAR(CURDATE());
(f) SELECT SQRT(81),SQRT(17),SQRT(-1),SQRT(0.4);
(g) SELECT POW(5,5),POW(10,-2),POW(0,3), POW(-1,3);
(h) SELECT TRIM(LEADING ‘!’ FROM ‘!!!!!WEL COME!!!!!’);
(j) SELECT TRUNCATE(919.09,2);
(i) SELECT CHAR( 66,65,84,65);

6. (a) Create the table CUSTOMER as per following table instance chart: 2

Column Name Data Type Length Constraint


Cust_ID Integer Primary Key

-------------------------------------------------------------------------------------------------------
www.cbseguess.com
Other Educational Portals
www.icseguess.com | www.ignouguess.com | www.dulife.com | www.magicsense.com
http://www.cbseguess.com/

Cust_Name Char 20 Not Null


Cust_Address Varchar 25
Pin_Code Integer
Phone_No Integer Unique

(b) Add one more column Mobile_ No of data type VARCHAR and size 30 to the table CUSTOMER. 1
(c) Insert two records with relevant information to the table CUSTOMER. 1
(d) Drop the column Moblie_No from the table CUSTOMER. 1
(e) Modify the Cust_Name of Cust_ID=2 to ‘RANI’ in the above table CUSTOMER. 1
(f) Delete the record of customer having Cust_Name=’’Deep’’. 1
(g) Change the data type of column Phone_No to VSRCHAR(10) in the table CUSTOMER. 1
(h) Make the changes permanent of the table CUSTOMER. 1
(i) Delete the entire contents of the table CUSTOMER. 1

7. Answer the following: 5×2


(a) How has e-Governance benefited the common man?
(b) Can e-Learning improve the flexibility and quality of learning? If yes, how?
(c) How does the e-Business impact daily life of common man?
(d) How does e-Commerce link customers, worker, suppliers, distributors and competitors?
(e) What are the different methods to perform e-Learning?

Paper Sumitted By:


Name : Bhabajyoti S. Baruah
Email : bhabajyotisbaruah@yahoo.co.in
Phone No. 9453216695

-------------------------------------------------------------------------------------------------------
www.cbseguess.com
Other Educational Portals
www.icseguess.com | www.ignouguess.com | www.dulife.com | www.magicsense.com

Das könnte Ihnen auch gefallen