27
CLASS IX WINTER BREAK HOLIDAY HOME WORK SUBJECT- INFORMATICS PRACTICES 1. a) What do you understand by primary key and candidate key. (b) Write the output of following SQL queries. i. SELECT ROUND(6.88,2) ; ii. SELECT MID(‘Discovery Channel’,4,6) ; iii. SELECT DAYOFMONTH (‘2011–03–30‘); iv. SELECT TRUNCATE (7.727,1); (c) Consider the table STUDENT given below, write SQL Commands for (i) to (iv) and output for (v) to (viii) STUDENT Roll No Name Cla ss DOB Se x City Mark s 1 Nanda X 6/6/95 M Agra 551 2 Saura bh XII 7/5/93 M Mumba i 462 3 Sanal XI 6/5/94 F Delhi 400 4 Trisl a XII 8/8/95 F Mumba i 450 5 Store XII 8/10/9 5 M Delhi 369 6 Maris la XI 12/12/ 94 F Dubai 250 7 Neha X 8/12/9 5 F Mosco w 377 8 Nisha nt X 12/6/9 5 M Mosco w 489

kvgurgaon.files.wordpress.com file · Web viewCLASS IX. WINTER BREAK HOLIDAY HOME WORK. SUBJECT- INFORMATICS PRACTICES. a) What do you understand by primary key and …

Embed Size (px)

Citation preview

CLASS IX

WINTER BREAK HOLIDAY HOME WORKSUBJECT- INFORMATICS PRACTICES

1. a) What do you understand by primary key and candidate key. (b) Write the output of following SQL queries.

i. SELECT ROUND(6.88,2) ; ii. SELECT MID(‘Discovery Channel’,4,6) ; iii. SELECT DAYOFMONTH (‘2011–03–30‘); iv. SELECT TRUNCATE (7.727,1);

(c) Consider the table STUDENT given below, write SQL Commands for (i) to (iv) and output for (v) to (viii)

STUDENT

RollNo Name Class DOB Sex City Marks

1 Nanda X 6/6/95 M Agra 551

2 Saurabh XII 7/5/93 M Mumbai 462

3 Sanal XI 6/5/94 F Delhi 400

4 Trisla XII 8/8/95 F Mumbai 450

5 Store XII 8/10/95 M Delhi 369

6 Marisla XI 12/12/94 F Dubai 250

7 Neha X 8/12/95 F Moscow 377

8 Nishant X 12/6/95 M Moscow 489

(i) To Display all information about class XII students. (ii) List the name of made student of class X. (iii) List names all class of all students in descending order of DOB. (iv) To count the number of student in XII Class of Mumbai city. (v) SELECT DISTINCT(Sex) FROM Student. (vi) SELECT AVERAGE(Marks) FROM Student GROUP BY Sex. (vii) SELECT COUNT(*)FROM Student where Class = ‘XI’ (viii) SELECT MAX(Marks) FROM Student.

2. (a) Write an SQL query to create the table books with following structure.

Field Type Constraints

BookID Varchar (5) Primary Key

BookName Varchar (20)

Author Varchar (20)

Price Decimal (5, 2)

(b) Following two tables are shown below are preset in database-

BOOK

EID EbookName Author

3 Internal terms Okhla

4 RDBMS Steve

5 NetBeans Gosling

COST

Subj ID EID Cost

E40 1 2000

E41 4 1700

E42 3 1800

E43 5 1250

i. Identify the foreign key column in the table COST. ii. Check every value in EID column of both in table. Do you find any discrepancy.

(c) Consider the tables product and client give below –

Product

PID ProdName Manufactures Price

T P01 Pen Cello 5

T P02 Gel pen Luxar 10

T P03 Ink pen Luxar 10

T P04 Pencil Natraj 2

T P05 Sketch Camel 2

Client

CID CliName City PID

01 Rakesh Delhi TP01

02 Prakash Mumbai TP05

03 Suresh Delhi TP03

04 Dinesh Delhi TP02

05 Pravesh Banglore TP04

i. To Display the details of products whose Price is in the range of 6 to 10 ( Both value included )

ii. To display client name, city from table chart and ProdName and price from table product.

iii. To increase the price of all products by 10. ( Product the output only) 3.(a) What is SQL and its features? What are capabilities or categories of SQL ?(b) What is difference between DELETE and DROP command?(C) What is the use of DISTINCT keyword. Give a suitable example. (d) What is CLAUSE, KEYWORD and STATEMENT in SQL command? Give a suitable example.

SUBJECT- ACCOUNTANCY1 Comprehensive problem (comprising preparation of Journal , Ledger , Trail balance , Trading account and profit and loss account , Balance sheet ) to be solved in project file .

2 Half yearly question paper to be solved in project file

3 Following numerical problems to be solved in accountancy notebook

A) Financial statements (with adjustments ) – question no. 25-30

B) Depreciation – question no. 16-19

4 Prepare following chapters for periodic test -2 to be held in Jan 2018 ..

a) Bank reconciliation statement

b) Depreciation

c) Bills of exchange

d) Rectification of errors

e) Financial statement ( with adjustment )

SUBJECT- POLITICAL SCIENCE

SUBJECT- HISTORY

SUBJECT- GEOGRAPHY

SUBJECT- ENGLISH1.Learn lesson for unit test 3 scheduled for 18 Jan .2.Write dialog chapterwise on “The Canterville Ghost”.

R.No. 1-5 : Ch. 1 R.No. 1-6 : Ch.1 6-7 : Ch. 2 7-12 : Ch.2 11-15 : Ch. 3 13-18 : Ch.3 16-20 : Ch. 4 19-24 : Ch. 4 21-26 : Ch. 5 25-30 : Ch. 5 31&32 : PPT

3.Read a classic from English literature and write a book review. Prepare a 02 min. speech for ASL 2nd term also

Book review : Name of the book Type of work Name of publication No. of pages/bindings (Illustration if possible)

Suggested authors – Jave Austin, Shakespeare, Roald Dahl, Ruskin Bond, Vikram Seth, Kamala Markandaya, Antan Chekar. Poets – Wordsworth, P.B. Shelly, Walt Whiteman, John Keats, Tagore.

CLASS E ,F ECONOMICS1. PREPARE A FILE ON ANY ONE PROJECT WORK2. SOLVE NUMERICAL ON FOLLOWINGS

(i)spearman Rank Correlation

(a)when ranks are given (b)when ranks are not given© when ranks are equal

3. CALULATE KARL PEARSON COEFFICENT OF CORRELATION

(a)direct method

(b)short cut method

(c)step deviation method

4. Revise the syllabus of periodic test

CLASS- D ECONOMICS

Make a Project on any topic mentioned in syllabus. What are the causes ,effects and remedial measures for inflation? Explain. Do five essay type or six marks questions , each from Human Resource

Development and Employment and Growth lesson. Do 10 questions each from 3 methods of standard deviation and mean

deviation. Do 5 questions on scatter diagram of Correlation.

SUBJECT- BUSINESS STUDIES

SUBJECT- PHYSICS

1. Show that the trajectory followed by a projectile is parabola; and derive the expressions for total time of flight, maximum height attained and horizontal range of projectile fired at an angle θ with the horizontal.

2. State triangle law of vector addition and derive expressions for the resultant of two vectors added by using this law along with the direction.

3. Derive the expression for centripetal acceleration& write its direction.

4. Differentiate between elastic & inelastic collision and derive the expressions for final velocities of two bodies after elastic collision in one direction.

5. Define Centre of mass and derive the expression for Centre of mass of two particle system.

6. Discuss the variation of acceleration due to gravity with altitude and depth.

7. Derive the expression for the pressure due to a fluid/liquid column.

8. State and prove Bernoulli’s theorem.

9. Define terminal velocity and derive expression for it.

10. Define Ascent formula. (h=2Tcosθ/rρg)

11. State Newton’s law of cooling and show that Loge(T-T0)= Kt+C.

12. Define perpendicular and parallel axis theorem.

13. Define escape velocity and derive an expression for it.

14. Define orbital velocity and derive an expression for it.

15. Define banking of road and derive an expression for it.

SUBJECT- MATHS

SUBJECT - COMPUTER SCIENCE 1. Write a function in c++ to search an element from a given array and also print its positions, from array.

2. If the array is: 13, 3, 4, 56, 7, 8. Write a function in c++ to take an integer array and its size as argument and

produce the resultant array as 8, 7, 56, 4, 3, 13.

3. Write a function in C++, which accepts an integer array and its size as arguments and swap the elements of every

even location with its following odd location.

Example: If an array of nine elements initially contains the elements as: 2,4,1,6,5,7,9,23,10.

Then the function should rearrange the array as: 4,2,6,1,7,5,23,9,10.

4. What is an array? Explain its types with an example of each.5. Explain the difference between Dynamic initialization and Initialization of array with an example.6. A) Differentiate between Actual and Formal Parameters in C++. Also give suitable examples of each in C++.

B) Name the header file(s) that shall be needed for successful compilation of the following:

void main()

{ char name[]=”P.O.I.N.T.E.R”;

intlen=strlen(name);

charename[20];

gets(ename);

if (len= =strlen(ename))

len++;

}7. For which values of the variable ‘testnum’ will the following code become infinite:

int number=1,testnum;cin>>testnum;while(1){ cout<<number;

if(number==3)break;

number+=testnum;}

Practical Questions:-

1. WAP (menu driven) in c++using functions- i) toRead an array.ii)Todisplay an array.

iii)Toreverse an array.

2. WAP to check whether the entered string is starting with ‘a’ or not.3. Write a program which will input one string and replace every space with (-) hyphen.

4. Write a program which will input one string and show the count of total no of vowels, total no of digits, total no of spaces and total no of consonents.

5. Write a menu driven program to get two 2- D array and calculate sum and subtraction of those two arrary and store the result third array.

6. Write a program which will get a two dimensional and show the sum of diagonal elements.7. Write a program which will get a two dimensional and show sum of rows and sum of columns of that 2-D array.8. Write a program which will get a two dimensional and show product of rows and product of columns of that 2-D

array.9. Write a program which will get a two dimensional and print sum of alternate elements of the array10. Write a program to sum the elements above and below the main diagonal of a matrix.