Subject: Informatics Practices

Total Page:16

File Type:pdf, Size:1020Kb

Subject: Informatics Practices

http://www.cbseguess.com/

SAMPLE PAPER-2013

CLASS XI

Subject: Informatics Practices

Time allowed : 3 hours Maximum Marks: 70

Note: Read the instruction

1. Attempt all the questions.

2. Java Language and MySQL are used

Q1 (a) Which of the following is not hardware :

(i) Hard disk (ii) Printer (iii) Keyboard (iv) CPU (v) Assembler (vi) A Java Program 1

(b) Define the terms : (i) nibble (ii) gigabyte 1

(c) What are the major strengths and weaknesses of computer ? 2

(d) What are the software classifications? Discuss their functioning in brief. 2

(e) What is a port? Name some port types briefly. 2

(f) Write the full forms of the following terms : (i) VDU (ii) MICR (iii) OMR (iv) DVD 2 Q2. Define the following: 10

a. JVM

b. Loops

c. Conditional Statement

d. Classes and functions

e. Actual and formal parameters

Q3. Answer the following. www.cbseguess.com Other Educational Portals www.icseguess.com | www.ignouguess.com|www.aipmtguess.com | www.aieeeguess.com | www.niosguess.com | www.iitguess.com http://www.cbseguess.com/

(a) What is Write Once Run Anywhere characteristic of Java? 1

(b) Differentiate between a Text Field and Text Area 1

(c)What is the difference between if and switch statements? 2

(d)Name the data types supported by Java? 2

(e)What are the operators supported by Java ? 2

(f)Write a program to check wither the given number is even or odd using conditional operator 2

Q4. Write code for the following:

a. To obtain a single digit(0-9) and display it in words 3

b. Virus software Hut has developed the following Interface as shown below.

Virus S/w Hut

Name of customer

Bill amount

O Cash O Credit Card O Cheque

Discount

Net Amount

www.cbseguess.com Other Educational Portals www.icseguess.com | www.ignouguess.com|www.aipmtguess.com | www.aieeeguess.com | www.niosguess.com | www.iitguess.com http://www.cbseguess.com/

Calculate Discount Stop

If Bill amount is > 10,000 than discount is as follow

Payment Discount Mode

Cost 15 %

Credit Card N/L

Cheque 10 %

1. Write the code to make the Text Fields for Discount & Net Amount in editable. 2 2. Write code to “Calculate Discount“ button as per given criteria and discount and net 4 amount should be displayed in Text Field. 3. Write code for “Stop“ button to close the interface. 1

Q5. Define Function. Explain the following function with suitable example. 10

(i) CONCAT() (iv) MOD()

(ii) SUBSTR() (v) SIGN()

(iii) Instr() (vi) SQRT()

www.cbseguess.com Other Educational Portals www.icseguess.com | www.ignouguess.com|www.aipmtguess.com | www.aieeeguess.com | www.niosguess.com | www.iitguess.com http://www.cbseguess.com/

(vii) TRUNATE() (ix) DAYNAME()

(viii) DATE() (x) NOW()

Q6. Write the queries for the following: 10

a. Modify the last name of employee3, to punia

b. Remove the entire contents of the table

c. Change the data type of column pin code to varchar(10) in the table customer

d. Add a primary key constraint to the table employee2 using the empid column.

e. List all department numbers in table empl.

f. How many job types are offered to employees?

g. To display the name, job title and salary of employee who do not have manager.

h. To display name, age and marks (aggregate) of students whose age is greater than or equal to 16 from table student.

i. To list the employees’ details whose grade are other than G1.

j. To display the structure of table student.

Q7. a. Create a table employee as per following Table Instance Chart: 3

Column Empid empname Empaddress empphone empsal deptid Name Key Type Primary Nulls/Unique Not null DataType number varchar varchar Varchar number varchar Length 6 20 30 10 9,2 2

b. Write the disadvantages of using database system. 3

c. Define the following: 4

(i) Primary key (ii) Candidate key www.cbseguess.com Other Educational Portals www.icseguess.com | www.ignouguess.com|www.aipmtguess.com | www.aieeeguess.com | www.niosguess.com | www.iitguess.com http://www.cbseguess.com/

(iii) Cardinality (iv) Alternate key

.

www.cbseguess.com Other Educational Portals www.icseguess.com | www.ignouguess.com|www.aipmtguess.com | www.aieeeguess.com | www.niosguess.com | www.iitguess.com

Recommended publications