Sunteți pe pagina 1din 9

Winter Vacation Assignment

CLASS XI
Subject: Informatics Practices
Set -1
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
(b) Define the terms : (i) nibble (ii) gigabyte
(c) What are the major strengths and weaknesses of computer ?
(d) What are the software classifications? Discuss their functioning in brief.
(e) What is a port? Name some port types briefly.
(f)
Write the full forms of the following terms : (i) VDU (ii) MICR (iii) OMR (iv)
DVD
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.
(a) What is Write Once Run Anywhere characteristic of Java?
(b) Differentiate between a Text Field and Text Area
(c)What is the difference between if and switch statements?
(d)Name the data types supported by Java?
2
(e)What are the operators supported by Java ?
(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
b.

Virus S/w Hut


Name of customer
Bill amount
O Credit Card O Cheque

Discount
Net Amount

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


Calculate Discount

1
2
2
2
2

1
1
2
2

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

O Cash

Stop

Payment Mode
Cost
Credit Card
Cheque

Discount
15 %
N/L
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
amount should be displayed in Text Field.
4
3. Write code for Stop button to close the interface.
1
Q5. Define Function. Explain the following function with suitable example.
10
(i)
CONCAT()
(vi)
SQRT()
(vii)
TRUNATE()
(ii)
SUBSTR()
(viii) DATE()
(iii)
Instr()
(ix)
DAYNAME()
(iv)
MOD()
(x)
NOW()
(v)
SIGN()
(xi)
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.
(xii)
Q7. a. Create a table employee as per following Table Instance Chart:
3
(xiii) Colu (xiv) E (xv)
em (xvi) Empa (xvii) emp (xviii) e (xix) d
mn Name
mpid
pname
ddress
phone
mpsal
eptid
(xx)
Key
(xxi) P (xxii)
(xxiii)
(xxiv)
(xxv)
(xxvi)
Type
rimary
(xxvii) Nulls/ (xxviii)
(xxix) Not (xxx)
(xxxi)
(xxxii)
(xxxiii)
Unique
null
(xxxiv) Data (xxxv) n (xxxvi) var (xxxvii) varch (xxxviii)
(xxxix) n (xl)
v
Type
umber
char
ar
Varchar
umber
archar
(xli)
Lengt (xlii) 6 (xliii) 20
(xliv) 30
(xlv) 10
(xlvi) 9 (xlvii) 2
h
,2
(xlviii)
(xlix) b. Write the disadvantages of using database system.
3
(l)
c. Define the following:
4
(li)
(i) Primary key
(liii)
(iii) Cardinality
(lii)
(ii) Candidate key
(liv)
(iv) Alternate key

(lv)

Set -2

(lvi)

Q1. Multiple choice questions


(5)

(lvii) A. The Swing Control components are contained in the


Design Window
Inspector Window
Properties Window
Palette Window
(lviii) B. Pick the one that is used for logical operations or comparisons such as less than
equal to or greater than.
a) Arithmetic and Logic unit
b) Control Unit
c) Both of above
d) None of the above
(lix) C. A bit stands for
a) Boolean Digit
b) Binary Digit
c) Binary Decimal
d) Byte Digit
(lx)
D. The most suitable component to accept multiline text is:
a) Text Field
b) Password Field
c) Text Area
d) All of the above
(lxi) E. What will be the output of the following command?
(lxii)
Learning.concat(Java)
(lxiii)
a) Learning Java
b) LearningJava
(lxiv)
c) JavaLearning
(lxv)
d) Java Learning
(lxvi)
e) Will result in an error
(lxvii) Q2.Define:
(3)
a) RAD
b) IDE
c) Form
(lxviii)
(lxix) Q3. Differentiate between (any 5)
(10)
a) Radio Button & Check boxes
b) Text Field & Text Area
c) Combo Box & List Box
d) Design & Source tab
e) Container & Component
f) Text field & password field
(lxx) Q4. What are operators? Write its type.
(2)
(lxxi) Q5. Is Java case sensitive? What is meant by case sensitive?
(1)
(lxxii)
(lxxiii) Q6.Desing GUI application in Java to:
(9)
a) accept marks in 5 subjects in five different text fields and calculate the total & average marks. Display
the results in separate text fields. Add appropriate labels and an exit button to end the application.
b) design a GUI application in Java to accept weight in Kilograms in a text field and convert it into grams
and milligrams on the click of two separate buttons. Display the result in a second text field. The
application must have an exit button to end the application and appropriate labels.
c) to accept the name and favourite sport in text fields and display an appropriate message including
the name & favourite sport in a dialog box using the concat() method. The application must have an
exit button to end the application .
(lxxiv)
a)
b)
c)
d)

(lxxv)
(lxxvi)
(lxxvii)
(lxxviii)

Q7. Write the code for:


(2)

(lxxix)

(lxxx)
(lxxxi)
(lxxxii)
(lxxxiii)
Q8. Differentiate between:
(5)
a) Compiler & Interpreter
b) RAM & ROM
c) OCR & MICR
d) Input unit and output unit
e) Multiprogramming OS and Multiprocessing OS
(lxxxiv)
(lxxxv) Q9. Which of the following are input, output & storage device?
(4)
(lxxxvi)
MICR , Scanner, Hard disc, OCR, DVD , OMR , Speaker , Web camera , Joy stick ,
memory card , Bar code Reader , Micro Phone , Touch Screen , Graphic Tablets, optical disks
(lxxxvii)
(lxxxviii)
Q10. Write full form of:
(2)
a) MICR
b) CD-ROM
c) OCR
d) DVD
(lxxxix)
(xc)
Q11.What should be done so that only one of the various radio buttons can be selected at
a time?
(1)
(xci)
(xcii) Q12. What does a bus mean? Explain its types.
(2)
(xciii) Q13.What are the two categories of impact printers? What is the advantage of non-impact
printers over impact printers?
(2)
(xciv) Q14.How is JAVA compilation process different from Ordinary Compilation?
(2)
(xcv)
(xcvi)
(xcvii)

(xcviii) Set 3
(xcix) Direction1. All questions are compulsory.
2. Question paper divided in to 3 section A,B and C.
(c)
Section A (Each question carry 1 mark)
(ci)
(cii)
(ciii)
(civ)
(cv)
(cvi)
(cvii)
(cviii)
(cix)
(cx)
(cxi)

Q. 1- How many types of language processor are available?


Q. 2- Write any two weakness of a computer system?
Q. 3- What do you mean by Firmware?
Q. 4- Which device is used for billing purpose in shopping moll?
Q. 5- In CRT, LCD and LED which are best and why?
Q. 6- Describe all memory unit in ascending order?
Q. 7 Write any two port no and their use of network port?
Q. 8 Write the name of any two popular DBMS software?
Q. 9- Mohan typing a letter while listening a song, Which type of OS is suitable for it?
Q.10- What is firewall? Write the advantage of it?

(cxii) Section B (Each question carry 2 mark)


(cxiii)
(cxiv) Q.11- Write the active prevention from computer virus?
(cxv) Q.12- Describe the term Adware and Phishing?
(cxvi) Q.13- Write differences between Analog and Digital computer?
(cxvii) Q.14- Write the differences between OMR and MICR?
(cxviii) Q.15- Which are best in between Dot matrix and Laser? And why?
(cxix) Q.16- Explain Utility software with example?
(cxx) Q.17- What do you mean by Bytecode of java?
(cxxi) Q.18- Write the output of following expression: If age=25 and age =65
(cxxii)
Age > 65 ? 350 : 100
(cxxiii) Q.19- Write the equivalent java code from given expression:
(cxxiv)
Z=1/2at + ft2
(cxxv) Q.20- What do you mean by relational operator in java?
(cxxvi) Q.21- How many types of Integer in java?
(cxxvii) Q.22- what do you mean by shared database?
(cxxviii)
(cxxix) Section C (Each question carry 3 mark)
(cxxx)
(cxxxi) Q.23- Resolve the error and rewrite the given code:
(cxxxii)
If ( 3 > 4 OR 5 > 4 )
write o/p of given code
(cxxxiii)
{ n=1 }
(cxxxiv)
Else{
(cxxxv)
N=2}
(cxxxvi)
Q.24- WAP using while loop to print 1 to 10 natural numbers?
(cxxxvii)
Q.25- WAP using For loop to print 1 to 11 odd numbers?
(cxxxviii)
Q.26- WAP using IFElse to find a big number out of two numbers?
(cxxxix)
Q.27- WAP using switch statement to display the name of week days?
(cxl) Q.28- Describe constant and variable with example?
(cxli) Q.29- What is data model? Describe E-R model?
(cxlii) Q.30- Write the difference between for and while loop?
(cxliii) Q.31- Write the application of DBMS?
(cxliv) Q.32- Write short note on following:
(cxlv)
1) Application s/w
2) Database
(cxlvi)

(cxlvii) Set -4

(cxlviii)
(cxlix)
(cl)
(cli)
(clii)
(cliii)
(1
(cliv)

Q.1. 1. What is an Operating System? Give one name.


(1
2. What are two differences between a compiler and an interpreter.
(2
3. Name two Input devices.
(1
4. Name 2 ports that allow wireless connection of devices.
(1
5. Identify the type of the devices(Input or Output) - OMR, WEBCAMERA
(1
6. What is Cloud Storage? Give one example.

7. Write any 2 differences between Primary Memory and


Secondary Memory
(2
(clv)
8. Define System Software. Give two examples.
(1
(clvi) Q.2. 1. Can a java file contain more than one main() method?
(1
2.
Write Short Notes on
(2
(clvii)
1. JVM.
2. Netbeans.
(clviii)
(clix)
(1
(clx)

3. What is the purpose of a button group in java?


(1
4. What is void data type?

5. What type of values are returned when operands are checked


with conditional
(clxi)
operators?
(1
(clxii)
6. What is a Frame? Write a sample code to create Frame with one
text field.
(1
(clxiii)
7. What is a difference between Text Field and Text Area?
(1
(clxiv)
8. Differentiate between Formal and Actual Parameters?
(2
(clxv) Q.3. 1. Write a program to check whether a give year is leap year or not
(3
(clxvi)
2. Write the program to create a simple calculator with +,-,*
operations.
(5
(clxvii)
3. Consider the following while-loop and tell how many times
the loop will execute? (1
(clxviii)
int a=40,result=0;
(clxix)
for (int i=1;i<5;++i)
(clxx)
{
(clxxi)
result=(a+i);
(clxxii)
if(i==5){
(clxxiii)
a=45;
(clxxiv)
}
(clxxv)
}
(clxxvi)
4. Find output of the following :(3
(clxxvii)
(i) If a,b,c are integers and d is a floating literal
(clxxviii)
d=(++b/c)/(++a/3);
(a=2, b=5 and c=5)
(clxxix)
(clxxx)
(ii) for(int i=0;x<=10; x+=2)

2.
3.
4.
5.
6.

(clxxxi)
{
(clxxxii)
System.out.println(x);
(clxxxiii)
}
(clxxxiv)
(clxxxv)
5. Find errors and write the correct code after underlining the
errors:(3
(clxxxvi)
(i) System.out.ptinln(Today is: new Date())
(clxxxvii)
(ii) for (i=2;i<16;i++)
(clxxxviii) Q.4. 1. Create a table CUSTOMERS based on the following chart:(3
Table Name:
CUSTOMERS
(clxxxix) F
(cxc) Ty
(cxci) Cons
ield
p
train
Name
e
t
(cxcii)
C
(cxciii)
(cxciv)
P
UST_I
int(10)
RIMA
D
RY
KEY
(cxcv)
C
(cxcvi)
(cxcvii)
UST_N
Varchar(
AME
3
5)
(cxcviii)
P
(cxcix)
(cc) NOT
AN_N
Varchar(
NULL
O
1
0)
(cci) CREAT
(ccii) D
(cciii)
E_DT
at
e
(cciv) TRXN_
(ccv) D
(ccvi)
AMT
o
u
bl
e(
6,
2)
(ccvii)
(ccviii)
(a) Create a query to add the following data in the above
table:(2
(ccix) CNR_101, Manisha Pradhan, AFFPCY478Q ,2nd June 2001, 12875.25
What is RDBMS?
(1
What is the use of NOT NULL Constraint?
(1
Write any 2 types of SQL commands.
(1
Differentiate between CHAR and VARCHAR data types.
(1
What is Cardinality?
(1
(ccx) Q.5. 1. Write output of the following(SQL functions)(4
a. Select LOWER(INTERNATIONAL CES 2013);
b. Select SQRT(36);
c. Select MOD(35,3);
d. Select POWER(2,8)
e. Select Trim(
CWG 2010);
f. Select Length(IIIF/101 DDA FLAT);

2.

3.
4.
5.
6.

g. Select SUBSTR(ICE CREAM,5,3);


h. Select (2*5+6/2)
Name type of SQL command for the following:(2
a. To delete the data in a table.
b. To add a column to a table.
Name the keyword used to avoid duplicate rows in a query.
(1
What is an Aggregate Function? Give one example.
(1
Differentiate between Max and Min functions.
(1
Define UPDATE command with example.
(1
(ccxi)
(ccxii)
Q.6. Write SQL commands for the statements (a) to (i) and give
outputs of the SQL Queries (i)on
the basis of CUSTOMER_DETAILS
(1*10=10
(ccxiii)
Table Name: CUSTOMER_DETAILS
(ccxiv)
(ccxv)
(ccxvi)
(ccxvii)
(ccxviii)
(ccxix)
(ccxx)
CU
CUT_
ACCT
ACCU
DOJ
GE
N
_
L
A
T
T
M
Y
_
E
P
A
E
M
T
(ccxxi)
(ccxxii)
(ccxxiii)
(ccxxiv)
(ccxxv)
(ccxxvi)
CN
Manoj
Savin
1025
1999
M
g
0
0
0
(ccxxvii) (ccxxviii)
(ccxxix)
(ccxxx)
(ccxxxi)
(ccxxxii)
CN
Rahul
Curre
1326
1998
M
n
0
t
0
0
(ccxxxiii) (ccxxxiv)
(ccxxxv)
(ccxxxvi)
(ccxxxvii)
(ccxxxviii)
CN
John
Savin
1425
1999
M
g
0
0
0
(ccxxxix) (ccxl) S
(ccxli)
(ccxlii)
(ccxliii)
(ccxliv)
CN
t
Salar
1825
1998
M
e
y
0
v
0
S
e
0
a
v
i
n
g
(ccxlv)
CN

(ccxlvi)
Manp
r

(ccxlvii)
Curre
n

(ccxlviii)
1125
0

(ccxlix)
1998

(ccl)
F

(ccli)
CN

(cclvii)
CN

a.
b.
c.
d.
e.
f.
g.
h.
i.
j.

e
e
t
(cclii) C
a
t
h
e
r
i
n
e
(cclviii)
Rame
s
h

0
0

(ccliii)S
a
v
i
n
g

(ccliv)
1026
0
0
0

(cclix)
Savin
g

(cclv)
1999

(cclvi)
F

(cclx) 2
(cclxi)
(cclxii)
0
1998
M
2
5
0
0
0
To select all the customer of Saving and Current account type.
To list the names of customer with their date of joining in descending order.
To list the customers who have opened accounts after 1998 May 31.
To display female customers with accumulated amount greater than 1025000..
To list the customers having 15 letters name.
To list all the account types.
To update the ACCULT_AMT to Rs. 1925000 where CUST_ID is CNR_105.
To show the customer who opened accounts in 1999.
To list the customers who have Salary Saving accounts.
Select CUST_ID,ACCT_TYPE,DOJ from CUSTOMER_DETAILS where GENDER=F.
(cclxiii)
(cclxiv)
(cclxv)
Q.7. 1. What is E-Commerce? Write two advantages of ECommerce.
(2
(cclxvi)
2. Define E-Governance.
(1
(cclxvii)
3. What are two advantages of e-Learning ? Name one eLeaning Company.
(2

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