Sunteți pe pagina 1din 6

CLASS XII

Maximum Marks: 70

INSTRUCTIONS:
1) This Question paper contains 6 printed pages
2) All questions are compulsory
3) Programming language : Java ,SOL
Q 1.
a)
Write any two software belonging to open source programming tool.
1
b)
Two neighboring hospitals at a distance of 125 meters from each other to decide to join
their LANs
1
Using UTP cable so that they can share their e- contents. But due to loss of signals in
between they
Were unable to share resources. Which device can be used to over come the problem?
c)
Open source software is same free ware. Do you agree? Give reason
2
d)
Explain true type and open Type font in brief
2
e)
Compare the star topology with bus topology
2
f)
Which protocol is used for direct communication between two computers?
1
g)
What is cloud Computing?
Q2.
a)
Which property of Label box is used to specify the image design time?
b)
Which statement used to terminate the loop before it maturity
1
c)
Which HTML tag and corresponding attributes are used to establish default font size for
entire page
1
d)
What is the difference between <UI > tag?
1
e)
What will be the value of a and b after execution of the following code :
2
In a =1, b = 2;
{
a*
}
Write a function in java that takes cost price and selling price as input and returns if the
shop
Keeper made profit and return 0 if he had made loss
2
Write some features of XML
2
Q 3.
a.

Explain difference between DELETE and DROP command with example


2
b. If any modification or deletion is done accidently in my SQL, which command is used
to
1

The old records


Which command is used to make changes permanently Give example
2
d. How do we arrange the output in ascending or descending order, explain with an
example
2
e. How Cartesian product is different from equi join
2
f. What is the difference between HAVING and WHERE clauses?
1
c.

Q 4.
a.

While working with Net beans, Ashita included a Text Area control which contains a
list of
1
Students. What code she should write to add one more student name at the end of
the
Text Area?
b. Given an int variable K with value 102. If is to be converted in to equal string i.e.
102.
What are the two ways of doing that?
1
c.

What will be the connect of j TEXT Area I after executing the following statement :
1
J TEXT Area l .Set Text (Java is wonderful programming t language )

d. Re write the following program code using do while loop.


2
In t = 1, sum = 0;
While (I < 5)
{
Sum + = 1:
I + = 2;
e. Rewrite the corrected following code by underlining the corrected area
2
Int k, 1 =6;
K = = 1+6;
If (K 1)
{j Text Field 1. Get Text (K and L are Unequal ) :}
Else j Text Field 1. Set Text (K And l are equal):
following code

f.
2

What will be the contents of J text Field 1 and J text Field 2 after executing the

J Text Field 2. Set Text (Micro Contact (System )


f. ABC sales Enterprises wants developed soft ware to make the bill for their customer
GUI for the
Application below
Enter Sales Amount:

v.

Clear
:

EMP.N
E.
O
NAMEExit
1
ANKIT
2
SUJEET
Calculate :
a.

3
4
5
2

of the expression

b.
6

VIJAY
NITIN
VIKRA
M

DEPT
HR
ACCOUN
TS
HR
SALES
SALES

SALAR
Y
20000
24000

COMM

28000
18000
22000

2000
3000
1700

Discount:
Net amount:

1200

Q 5.
Write the difference
between ALTER and
UPDATE command with
example

Consider the following EMPLOYEE table and answer the (b) and (c) part
Table: EMPLOYEE

1. Write the SQL statement for the following queries


i.
To display the details of al SALES dept employee who are earning salary
more than
20000
ii.
To display the name of employee who are not earning any commission
iii.
To display the total salary of every department
To display record of all employee whose name contains I letter.
2. Give the output of the following sql statements
v.

SELECT COUNT (DISTINCT DEPT) FROM EMPLOYEE

VI.

SELECT MAX (SALARY) FROM EMPLOYEE

VII.
viii.

SELECT AVG (COMM) FROM EMPLOYEE WHERE DEPT = HR


SELECT SUM (COMM) FROM EMPLOYEE WHERE SALARY

Write the output of the following SQL queries


(I)

SALACT CONTACT (LOWER (Class) UPPER (X II)

(ii)

SALACT SUBSTR (KENDRIYA VIDYALAYA 10.5)

(iii)

SALACT DAY OF YEAR (2010 -12 13)

(IV)

SELECT MODE (11, 4):

Q.6
A ) Write the SQL query to create following table supplier with
following description
TABLE: SUPPLIER

b.

Field
Supp_ id
Supp_name
City
Order No

Type
Varchar ( 5 )
Varchar ( 20 )
Varchar (20)
Integer ( 10 )

Supp_Amount

Decimal ( 6.2 )

Constraint
Primary Key
Not null
Foreign Key with
reference to Order No
Column in Order
Minimum 10000

In data base there are two tables students and stream as below
Table Students
Std
1
2
3
4
5

Str Id
1
2
3
4

S name
Roondy
Joseph
Trinchu
Prothlon
Ahol

Name
English
Commerce
Science
Humanities

age
10
12
14
11
10

Stud
1
1
2
3
2

Table :
Stream

(1) What is the name of primary Key in both tables?


(2) What is the cardinality and degree of stream?

Consider the following two tables STUDENT and LIBRARY as follows


Table: STUDENT
St-Id

St- Name

Stream

Class

101
202

Karan
Divakar

12 B
11 C

305

Divya

12 C

C 102

406

Arun

Science
Commerc
e
Commerc
e
Humanitie
s
Author
Science
Lipchitz

BookIssue
C 103
C 104

12 C

C 101

Book No
501
C 101
C 102
C 103
C 104
C 105

Title
Sabina
Data
Structure
Computer
Studies
Advanced
paseal
D base
Dummies
Mastering C
++

French
Schildt

TABLE: LIBRARY
Pub
Issue Date
12 A
C 105
Mc Grow
10 DEC
2009
Galgotia
15 OCT
2010
Mc Grow
20 JAN 2009

Palmer

Pustak M

Gurewich

BPB

output que (iii)

8 SEP 2009

23 NOV
2009
Write SQl query for Que. ( I ) and ( ii ) and

6M
(i) Display student name, stream book issue and issue for each student
(ii) Display stream and total students in particular stream
(iii) SELECT St, Id, St Name, Stream, Title, issue, date

Q7
A) What is Back end?
1M
B) What do you think e learning courses of high drop out rate?
2M
c) What controls would you suggest for following types of Inputs?
2M
1) To display some information
2) Enter Pass word
3) To choose more than one subject from a set of subjects
4) To enter multiline text

S-ar putea să vă placă și