You are on page 1of 51

HOLIDAY ASSIGNMENT-2017-18

CLASS: XII

ENGLISH CORE (301)


* Read literature lessons thoroughly and practice extra questions.

* Read and understand the theme and characters of the novel ‘The Invisible Man’.

* Do the following Practice Questions in your Note Book .

NOTE MAKING

E-learning is a trend that is here to stay. In the US, more than 41 million people log on to their
computers and double – click into virtual classrooms. And not only undergraduates, students too
pursue graduation degrees in fields as diverse as nursing, business, engineering and technology.
Experts predict that in the US, e-learning will become a US $2 billion industry within four years and
it won’t be long before a student can go through Harvard or Wharton Business School course sitting
right at home.

The trend is here to stay, not only in the US but in other countries, like India as well. It won’t
be long before Internet and web-based tools take over our classrooms in a significant manner. The
drift started with a few renowned institutions leveraging the Net to impart education. As they started
reaching out to a large number of students, some not-so-long colleges also flooded the Net with
electronic pages, chat rooms and bulletin boards as virtual classrooms. The net result was poor design
and content that left students in the lurch.

Luckily, a reversal is on the cards. A proper design and content with the right instructions
and methodologies has now made e-learning a rewarding experience for students. Now all that a
student has to do is to register at the web site and send in a cheque. A demand draft or a credit card
can also be used to pay for the course. A course packet containing the study material is then sent to
the student. The student can log on to the site and go through the syllabus, study or download the
material. As an electronic page is very different from that of a text book, the education portal’s
challenge lies in making web pages more effective than textbooks. Through the use of chat and other
software, learning becomes a real experience for a student in a virtual classroom.

Many on-line course offer features like student – teacher live chats, online assignments, and a
playback facility of recorded classrooms with expert faculty. Some sites even go a step further and

Page 1 of 51
provide personal interactive classroom sessions, offline, in select cities. What gives e-learning an
edge over traditional learning is accessibility: you need not wait for buses that are overcrowded at
peak hours to reach your school. Classes come directly to your home, the desktop to be precise.
Also, unlike regular classes, students can work as well as study at their own pace and interact with
the faculty when they have doubts. The training offered is of certain standard and so is the content
presented. With features like recorded classrooms, the problem of missed classes does not arise
anymore.

The flip side is obvious as well. As there is no personal interaction with the teacher, the going
may get a bit tough for students who have not understood a concept. There is obviously no way for
the teacher to delve into the mind of his student. Moreover, PC penetration is very low in India with
few students having access to computers and even fewer knowing about online courses. E-learning
also requires a lot of self-driven study methods. In India; many people have phobias concerning
computers while others balk at any type of computer interaction. Hence, mindset issue is a serious
concern that has to be overcome.

Then there are other drawbacks including the method of assessment. As some portals accept
assignments on the web, it gives students more scope for cheating. It also makes learning slower for
a student used to the traditional method of teaching. Online teaching, feel some, can never replace the
chalk-and-talk method. It seems our students still feel more comfortable being taught in traditional
classrooms.

A. On the basis of your reading of the above passage, make notes in points only , using
abbreviations wherever necessary . Supply a suitable title (5)
B. Write a summary of the passage in about 80 words. (3)

SECTION – B : ADVANCED WRITING SKILLS

1. NOTICE

1. You are the Secretary of your school Literary Association. Write a notice in not more than
50 words for your school notice board, giving details of the proposed inauguration of the
Literary Association of your school. You are XYZ of Jain Vidyashram, Cuddalore.

2. You are Rohit / Ritu , Secretary, Welfare Association, ABC Colony, Chennai, Write a notice
in not more than 50 words to be placed on the notice board informing the residents that there
would be no water supply for two days in your colony due to major pipeline repair work.

3. ADVERTISEMENT
1. You are Harish of No. 10 , Kailash Ganj and Lucknow. Draft an advertisement to be
published in the daily. ‘The Hindustan Times’ , under classified columns to dispose off your
car as you are going abroad.

Page 2 of 51
2. Draft an advertisement announcing the launch of special health drink by Health Care Private
Ltd., highlighting its nutritive value.

4. POSTER

You are the Secretary, Red Cross, New Delhi, Get a suitable poster designed prompting
the citizens to volunteer themselves for ‘BLOOD DONATION’ at various camps
organized by the Red Cross in the city.

5. LETTERS
1. Write a letter to the Manager (Publication) of Little Flower Company, Hyderadabad placing
an order for 4 books on Management and Administration recently published by them. You are
Rohit / Rohini, Librarian. H.P. Engineering College, Tirupathi
2. Read the given advertisement and then write a suitable application in response to it. Sign
yourself as Medha / Mohit.
Tulip Sr. Secondary School.
We are an upcoming CBSE Sr. Sec. School located at Meerut. We require dynamic,
innovative and creative faculty to teach. Urgently needed PGT as English with a degree in
Education. Expereince must, Salary negotiable.
3. Your are Buavik/Bhawna of Class XII of Tejas International School, Vijay Nagar,
Bulandshaher. Write a letter to the Manager of the sports Store, Meerut, complaining about a
defective sports watch you purchased from their store. Write as a Sports Secretary of your
school.

6. TOPICS FOR ARTICLE WRITING

 Status of Women in Indian Society


 Hike in the Prices of Essential Commodities
 Drug Abuse Among Students
 Modern Gadgets have made us Slaves to Machines
 Need for communal harmony and national integration

*******************

Page 3 of 51
Page 4 of 51
Page 5 of 51
Page 6 of 51
Page 7 of 51
Page 8 of 51
Page 9 of 51
Page 10 of 51
Page 11 of 51
Page 12 of 51
PHYSICS

1. Complete the record work and activities.


2. Stick the first term question paper on backside of note book and write answers

CHEMISTRY

1. Complete the record work and project.


2. Stick the first term question paper on backside of note book and write answers.

BIOLOGY

1. Complete the record work and project.


2. Stick the first term question paper on backside of note book and write answers

SUBMISSION DATE- 12-9-2017

BUSINESS STUDIES
I. Prepare project on Principles of management as per the instruction given in the class

II. Answer the worksheets of chapter 9Financial management and chapter 10 financial
market, in your business studies note book

III. Revise all units covered. Learn all exercise questions from the NCERT Text book.

ACCOUNTANCYChapter 1.

1. A and B are partners sharing profits and losses in the ratio of 2:1. The agreement
provided for the following,
i. Capital account shows A Rs. 40,000 and B Rs. 30,000.
ii. Current account balance shows A Rs. 2500(Cr) , B Rs. 1600(Dr).
iii. Partners are entitled to for 6% interest on capitals.
iv. B is to be paid an annual salary of Rs. 3000.
v. Interest on Drawings , A Rs. 120 and B Rs. 90.
Profit and loss account showed a net profit of Rs. 12,000 during the year
2015 after charging partner’s salary and interest of capital. During the year A
and B withdrew Rs. 4,000 and Rs. 3,000 respectively. Prepare Capital
Account of partners under
a. Fluctuating method
b. b. Fixed Method

Page 13 of 51
2. Singh and Gupta decided to start a partnership firm to manufacture low cost jute
bags as plastic bags were creating many environment problems . They contributed
capital of Rs. 1,00,000 and Rs. 50,000 on 1st April 2015for this. Singh expressed his
willingness to admit Shakti as a partner without capital, who is specially abled but
very creative and intelligent friend of his. Gupta agreed to this. The terms of
partnership were as follows
i. Singh , Gupta and Shakti will share profit in the ratio of 2:2:1.
ii. Interest on capital will be provided @6% p.a.
Due to shortage of Capital, Singh contributed Rs. 25,000 on 30 th September
2015 and Gupta contributed Rs. 10,000 on 1st January 2016 as additional .
The profit of the firm for the year ended 31st March 2016 was Rs. 1,68,900.
a. Identify the two values which the firm wants to communicate to the
society.
b. Prepare Profit & loss Appropriation Account 31st March 2016.
3. A , B and C entered into partnership on October 1 , 2015 to share profit and losses in
the ratio of 3:2:1. A , however personally guaranteed that C’s share of profit after
charging interest on capitals at 5% p.a. would not be less than Rs. 30,000 in any year.
The capital contribution were A: Rs 3,00,000 , B: Rs.2,00,000 and C:Rs. 1,00,000. The
profits for the period ended March 31st 2016 were Rs. 1.20,000. Show the
distribution of profit.
4. A , Band C were partners in a firm. They had no Partnership deed. They had been
business for 4 years and their profit or loss for this period was: year ending March
2012 Rs. 39,000, March 2013 Rs. 54,000 , March 2014 Rs. 18,000(loss) and March
2015 Rs. 75,000. During the year 2015-16 , they agreed to share profit and losses in
the ratio of 2:2;1 with retrospective effect from the year 2012-13. It was also
decided that an interest (charge) of 5% p.a was provided on capitals. (fixed). Their
capitals were Rs. 80,000 Rs. 60,000 and Rs 60,000 .respectively . Pass single
adjustment entry to adjust the capital account of the partners.
5. A and B were partners sharing profits in the ratio of 3:2. The accountant prepared
Profit and Loss account, Profit and loss Appropriation Account and Partners Capital

Page 14 of 51
Accounts, but forgot to post some amounts in these accounts, You are required
complete these below given amount by posting correct amounts.

Profit and Loss A/C for the year ended 31 ,March 2015

Particulars Amount particulars Amount

Interest on A’s loan 900 By Profit for the year -------

To Net profit -----

--------------- -----------------------

Profit and Loss Appropriation Account for the year ended 31st March 2015

particulars amount Particulars Amount

To Interest on Capital @ 5% p.a. By Net profit as per P/L A/C ----------------


By interest on capital
A 2500
A 120
B 2000 -------
B 80
To salary 200

A. 24,000
B. 12,000

To Profit transferred to capital

A 3/5 17,250

B 2/5 -------

69,300 69,300

Page 15 of 51
Capital Account

Particulars A B Particulars A B

To Drawing 6000 4000 By balance b/d ----------- ----------------

To Interest on drawings ---------- BY Interest on ------------ -------------


capital
To Balancec/d ----------- ------------- -------------
By Salary
--------- -----------
By P&L
Appropriation A/C

CHAPTER 2

1. The following were the profit of a firm for the last three years
Year ending 31st March profit
2010 4,00,000(including an abnormal gain of Rs.50,000)
2011 5,00,000(after charging an abnormal loss of Rs. 1,00,000)
2012 4,50,000(excluding Rs.50,000 payable on the insurance of
plant & machinery)

Calculate the value of goodwill on the basis of two years purchase of the average profit for the
last three years profit .

2. J and K are partners in a firm. Their capital are J Rs. 3,00,000 and K Rs. 2,00,000. During the
year ended 30.3. 2010 they earned a profit of Rs. 1,50 ,000 . Assuming that the normal rate
of return is 20% , calculate the value of goodwill of the firm
a. By capitalization method
b. By super profit method if the goodwill is valued at 2 years purchase of super profit.
3. The following information relates to a partnership firm. The profit for the last 5 years were
2012 80,000
2013 1,00,000
2014 2,00,000
2015 1,50,000
2016 2,70,000
Find the value of goodwill under the following
i. On the basis of three years purchase of average profit
ii. Three years purchase of Super Profit and
iii. Capitalisation of Super Profit.

Chapter – 4 Admission of a partner

1. P and Q are partners in a firm sharing profits and losses in the ratio of 3:2. On 31st March
2016, their Balance sheet was as under:
Page 16 of 51
Liabilities Amount Assets Amount
Creditors 1,75,000 L & B 5,60,000
Employee Provident 25,000 Debtors 2,00,000
Fund: Stock 1,50,000
Patents 10,000

Capitals: Bank 30,000

P: 4,50,000
7,50,000
Q: 3,00,000

9,50,000 9,50,000
They admit R for 1/5 th share in profit. R acquires 1/5th of his share from P and 4/5th share from Q.

1. R shall bring in Rs. 2,00,000 as capital and Rs. 50,000 for his share of goodwill. R brings in
only 40% of his share of goodwill in cash
2. Advertisement Expenses of Rs. 20,000 are to be carried forward to next accounting period.
3. A bills receivable of Rs. 10,000 which was previously discounted with the bank was
dishonored on 31st March 2016 but no entry has been passed for it. Full amount is expected to
be recovered from the drawee of the bill.
4. Provision for doubtful debt is to be created @5%
5. Outstanding salary amount to Rs. 35,500; Employee provident Fund is to be increased by Rs.
10,000
6. Patents are to be written off from the books.
7. Stock worth Rs. 1,00,000 was taken by P and Q in their profit sharing ratio and the stock
remaining stock was valued at Rs. 40,000
Prepare Revaluation Account, Partner’s Capital A/c and the New Balance sheet. Also
calculate new profit sharing ratio.
2. A, B and C are partners sharing profits and losses in the ratio of 3:2:1. D is
admitted as a new partner on 31st March 2016 for 1/4th share and is to pay Rs.
2,50,000 as capital. Following is the balance sheet on the date of admission:

Liabilities Amount Assets Amount


Capitals: Building 2,50,000
A: 3,00,000 Machinery 2,00,000
B: 3,00,000 Furniture 1,50,000

C: 2,00,000 Stock 1,00,000

Page 17 of 51
Creditors 1,50,000 Debtors 1,50,000
Bills payable 50,000 Bills receivable 1,00,000
Bank 50,000

10,00,000 10,00,000
Following are the required adjustment on D’s admission:

i. Out of creditors, a sum of Rs. 50,000 is owing to D. This amount shall be adjusted
as a part of his capital.
ii. Bills worth Rs. 80,000 were discounted with the bankers, out of which , a bill of
Rs. 20,000 was dishonored on 31st March 2016, but no entry has been passed for
that. Due dates of other discounted bills fall in April 2016
iii. Advertisement expenditure of Rs. 6000 is to be carried forwarded to the next
accounting period.
iv. Expenses debited in the Profit and Loss Account included a sum of Rs. 10,000
paid for B’s personal life insurance policy.
v. A provision for doubtful debts @ 5% is to be created against debtors.
vi. Expenses on Revaluation amounting to Rs. 10,100 is paid by A.
vii. During 2015-16, part of the furniture was sold for Rs. 25,000 . The book value of
the furniture sold was Rs. 40,000 and the written down value on the date of sale is
Rs 35,000. The proceeds was wrongly credited to the sales account.
(Hint:- Here both book value and written down value of furniture is given , the
meaning of written down value is depreciated value of the asset, ie, value of asset
after depreciation. Hence here book value means the original cost of assets and
written down value means amount after depreciation)
viii. The value of goodwill is 7,56,000 and D brings his share by cheque.
Prepare the Revaluation A/c, Partner’s capital a/c and the Balance sheet

Chapter – 5 Retirement of a partner

1. A, B, C and D were partners sharing profits in the ratio of 3:3:2:2 respectively. On 1


April, 2014, D retired owing to ill health. It was decided by A, B and C that in future
their profit sharing ratio would be 3:2:1. Complete the following Journal in this
regard:

Page 18 of 51
Date Particulars Amnt (Dr) Amt (Credit)
A’s capital A/c Dr --------------
B’s Capital A/c Dr --------------
C’s Capital A/c Dr 10,000
To------------------- ---------------
(Being the existing goodwill written off|)
A’s capital A/c Dr 1,20,000
B’s capital A/c Dr --------------
To C’s cApital a/c -----------------
To D’s Capital A/c ---------------
(Being the adjustment for the goodwill made
on account of change in profit sharing ratio)

2. Atul,Bibek,Chandan and Danish are partners sharing profits in the ratio of 3:3:2:2
respectively. Danish retires and Atul,Bibek and Chandan decide to share the future
profits in the ratio of 3:2:1.Goodwill of the firm is valued at ₹ 6,00,000.Goodwill
already appears in the books at ₹ 4,50,000.The profits for the first year after Danish
retirement amountto ₹ 12,00,000.
Give the necessary Journal entries to record Goodwill and to distribute the profits.
Show your calculations clearly.
3. Rose, Jasmine and Marigold are partners in a firm sharing profits in the ratio of
4:3:2.On 1st April 2014, Jasmine gave a notice to retire from the firm. Rose and
Marigold decided to share future profits in the ratio of 1:1.The capital accounts of
Rose and Marigold after all adjustments showed a balance of ₹ 43,000 and ₹ 80,500
respectively. The total amount to be paid to Jasmine was ₹ 95,500.This amount was
to be paid by Rose and Marigold in such a way that their capitals become
proportionate to their new profit sharing ratio. Pass necessary Journal Entries in the
books of the firm for the above transactions. Show your working clearly.
4. Deelip, and Eshan are partners in a firm sharing profits in the ratio of 3:1. On 1st
April 2015 they admitted Fateema as a new partner for 1/4th share in the firm which
she acquires entirely from Deelip. Their Balance Sheet on 31st March 2015 was as
follows:

Page 19 of 51
Liabilities Amount Assets Amount
Capitals: L&B 50,000
Deelip : 1,00,000 Machinery 60,000
Eshan: 70,000 1,70,0000 Stock 15,000

General Reserve 32,000 Debtors : 40,000

Sundry Creditors 54,000 Less Prov for d/d 3000 37,000


Investment 50,000
Cash 44,000
256,000 256,000
Fateema will bring ₹ 40,000 as his capital and the other terms agreed upon were:

(i) Goodwill of the firm was valued at ₹ 24,000.


(ii) Land & Building were valued at ₹ 70,000
(iii) Provision for Bad Debts was found to be in excess by ₹ 800.
(iv) A liability for ₹ 2,000 included in the sundry creditors was not likely to arise.
(v) The capital of the partners be adjusted on the basis of Fateema’s contribution of capital
to the firm.
(vi) Excess or shortfall ,if any ,to be transferred to current accounts
Prepare Revaluation Account, Partners’ Capital Accounts and Balance Sheet of the new firm.
5. A, B and C were partners sharing profits in the ratio of 4:3:2. C retires from the business and
A and B decided to share future profits in the ratio of 3:2.The Balance sheet of the firm as at
31st March 2016 stood as follows:
Liabilities Amount Assets Amount
Sundry Creditors 1,05,000 L & B 5,00,000
Workmen Machinery 3,20,000
compensation 45,000 Stock 2,05,000

Reserve Debtors : 150,000

Capitals: Less Prov for d/d 15,000 1,35,000


Cash at bank 40,000
A: 5,00,000
10,50,000
B: 4,00,000
C: 1,50,000
12,00,000 12,00,000
i. Goodwill of the firm is valued Rs. 1,80,000
Page 20 of 51
ii. Land & Building to be increased to Rs. 5,40,000 and Machinery is to be reduced by Rs.
B60,000
iii. The claim on account of Workmen Compensation is estimated at Rs, 27,000
iv. There were bad debts amounting to Rs. 22,000.
v. Capital of the new form in total will be same as before the retirement of C and will be in
the new profit sharing ratio of the continuing partners.
vi. C is to be paid Rs. 1,00,000 on retirement and the balance after one year @ 12% p.a
Prepare revaluation account, Capital Accounts of Partners and Baalnce sheet of the new
firm
6. A, B and C are partners sharing profits in the ratio of 3:2:1. A retires and B and C decided to
share future profits in the ratio of 3:2. Following is their balance sheet as at 31st

March 2016.
Liabilities Amount Assets Amount
Sundry Creditors 2,92,000 L & B 8,00,000
General Reserve Investment 1,20,000
Capitals: 1,20,000 Stock 2,30,000

A: 4,00,000 Trade Marks 30,000

B: 3,00,000 Loose Tools 20,000


Debtors : 200,000
C: 3,00,000
10,00,000 Less Prov for d/d 20,000 1,80,000
Cash at bank 32,000
14,12,000 14,12,000
It was agreed that:
1. Investments are revalued at Rs. 1,50,000 and Land & Building at 120%
2. There were bad debts of 12,000 and stock is valued at 90%
3. Trade Marks are value less. Loose Tools are revalued at Rs. 5000
4. A provision for Rs. 20,000 is to be made for tax liability
5. Goodwill of the firm is valued at 1.5 years purchase of the last 3 years profits which were Rs.
54,000; Rs. 70,000; and Rs. 56,000 respectively.
6. B and C decided to adjust their capitals in the profit sharing ratio and bring in sufficient
amount to pay off A and leave a balance of Rs. 60,000 in the bank. A was paid off.
Prepare Revaluation Account, Capital Accounts and New Balance Sheet.

Page 21 of 51
PHYSICAL EDUCATION

RECORD BOOK PREPARATION

Content

Unit-1

Modified AAPHER administration for all items.

Conduct Barrow 3 item test on 10 students.

Procedure for asana, benefits and contraindication for any two Asana each life style disease.

Procedure for administrating senior citizen fitness test for 5 elderly family members.

Unit-2

Draw a neat diagram of court or field of your choice with all specifications.

Unit-3

1. Fundamental skills of the game.

2. Latest rules of the game.

3. Specific exercises of warm up and conditioning.

4. Terminology related to the game.

5. Sports awards related to your game.

6. Common sports injuries and its prevention.

7. Pictures related to your game.

ECONOMICS

PREPARE A PROJECT ON THE TOPICS GIVEN BELOW

1.Human Development Index

2.Small Scale Industries

3.Health Expenditure Of Any State

4.Govt Budget And Its Components

5.Price Discrimination

6.Exchange Rate System

7.Monopolistic Competition
Page 22 of 51
INFORMATICS PRACTICES

1. What is SQL? What are the different categories of SQL commands?


2. Which data model is the most preferred one?
3. What is a datatype? Name some datatypes available in MySQL.
4. What is default value? How do you define it? What is default value for a column for
which no value is defined?
5. What do mean by table level and column level constraint?
6. What is the significance of Null?
NULL represents a value that is unavailable, unassigned, unknown or inapplicable
7. What is the role of UNIQUE constraint? How is primary key constraint different from
unique constraint?
8. Name the constraints which can be added at both the levels (table and column).
9. In a student table, out of rollno, name, address which column can be set as primary key
and why?
10. While creating a table ‘Customer’, Sneha forgot to set the primary key for the table. Give
the statement which she should write now to set the column ‘CustID’ as the primary key
of the table?
11. When a primary key constraint is included in a table, what other constraints does this
imply?
12. What must exist on parent table before MySQL will allow you to create a foreign key
constraint from the child table?
13. A table “Stock” in a database has 5 columns and contains 17 records. What is the degree
and cardinality of this table?
14. A table ‘Customers’ in a database has 5 columns and no rows in it. What is its
cardinality? What will be its cardinality if 4 rows are added in the table?
15. A table Sports1 in a database has 3 columns and 30 rows. Another similar table Sports2
has 3 columns and 50 rows. All the records from Sports2 are added into Sports1 table.
What is the degree and cardinality of both these tables now?
16. A table “Trains” in a database has degree 3 and cardinality 8. What is the number of rows
and columns in it?
17. Which statement is used to mark the start of a transaction?
18. Which command is used in MySQL to make the changes in database permanent?
19. Which command is used in MySQL to undo the changes made during transaction
execution?
20. Which statement is used to disable or enable the transaction?
21. What are the different properties of transactions maintained by database systems?
22. What are the two ways in which multiple transactions can be executed?
23. What is table alias? What is it purpose?
24. Can you join two tables without using the keyword JOIN?
25. What is the query called that combines rows from two or more tables?
26. When a column’s value is skipped in an insert command, which value is inserted in the
database?
27. What SQL clause is used to restrict the rows returned by a query?
28. Which keyword is used to eliminate the redundant or duplicate data from a query result?
29. Which command is used to add a new row in a table?
30. Aahna wants to add some records (with balance >10000) from an old table chequeold to
another table namely chequenew. What command should she use for this?
31. Bank accountant needs to change the last name of one of his customer in table customer.
Which command should be used for this?
Page 23 of 51
32. In a where clause, you can ask for any value ending in “qpt” by writing?
33. Swati needs to display name of those students who have “A” as second character in
their name. She writes the following query:
select name from student where name like ‘%A%’;
But the query is not producing the correct result. Identify the problem.
34. Which function is used to get the current time in MySQL?
35. Whether a table may be joined to itself?
36. In where clause which keyword is used to restrict the rows returned by a query depending
on validity of two conditions simultaneously?
37. Which command should be used to create a database named “student”?
38. After creating the “student’ database, you want to use it. Which command should you
give?
39. Naved wants to list the names of all the tables in his database namely “Status”. What
commands should he write at MySQL prompt to get this result?
40. State True or False whether a NULL value is treated as a blank or 0?
41. What is the purpose of Alter command in MySQL? How is it different from update
command?
42. Which command will delete the table data as well as table structure?
43. What is the purpose of DROP table command in SQL? How is it different from delete
command?
44. Sheela needs to remove all the rows in the Sales table to release the storage space without
to remove the table structure. Which statement should he use?
45. Aman needs to remove all the data in the Exchange table and the structure of the table
along with the indexes associated with the table. Which statement should he use?
46. On the Schedule table, schedule_id is primary key, name is customer name. Evaluate this
delete statement whether it is correct or not. Give reason.
delete schedule_id, name from Schedule;
47. Meena uses a EMP table with following columns:
NAME, SAL, ID, DNAME
She needs to display names of employees who have not been assigned any department or
have been assigned “pathology” department. Pathology course’s names end with
“Pathology”. She wrote the following query:
SELECT NAME, SAL
FROM EMP, COURSE
WHERE DNAME = NULL OR DNAME = “%pathology”;
But the query is not producing result. Identify the problem.
48. Another names for table columns are?
49. The NULL keyword is used to?
50. How many primary keys can be there in a table?
51. Can a table have multiple primary keys?
52. Can you have multiple foreign key constraints in a table?
53. Can a foreign key column refer to the primary key of its own table?
54. Which clause should you use to exclude group results?
55. What is the difference between a Where clause and a Having clause of SQL select
statement?
56. Can we use Where clause in Group By clause?
57. Name the command to describe the structure of the table.
58. Which clause is used to arrange the data in ascending or descending order?
59. List five aggregate functions?
60. What is the purpose of following SQL query:
Page 24 of 51
select max(salary) from emp;
61. Sahil created a table in MySQL. Later on he found that there should have been
another column in the table. Which command should he use to add another column to the
table?
62. Rama is not able to change a value in a column to NULL. What constraint did she specify
when she created the table?
63. Pooja, a student of class XI, created a table “Book”. Price is a column of this table. To
find the details of books whose prices have not been entered, she wrote following query:
select * from Book where Price= NULL;
Help Pooja to run the query by removing the errors from the query and rewriting it.
Write SQL command to display current system date.
64. Consider two fields B_date, which stores the birth date and J_date, which stores the
joining date of an employee. Write commands to find out and display the approximate
age of an employee as on joining date.
65. In MySQL, what table type (storage engine) is required for foreign keys to work?
66. Write the command to disable the foreign key?
67. How would you find the storage engine of your table?
68. What is the result of following arithmetic expression, NULL + 15?
69. Identify the error in following query: delete all from table employee;
70. Change the data type of column pincode to varchar(10) in the table customer.
71. Add one column email of data type varchar and size 30 to the table customer.
72. Write a query to display empno, ename, sal and sal*12 as Annual Salary whose
commission is not NULL from table emp.
73. “PrincipalName” is a column in a table “School”. The SQL queries
select count(*) from school;
and select count(PrincipalName) from school;
Give the result 28 and 27 respectively. What may be the possible reason for this? How
many records are present in the table- 27 or 28?
74. Jacob is not clear about the difference between the following two statements:
a. select (9-6) *12;
b. select (9-6) *12 from empl;
Help him to understand the difference between these two statements.
75. What will be the output of following queries on the basis of employee table:

empid ename salary


A1 Bob NULL
B1 John 4000
B2 Tom 5000
(a) select count(salary) from employee;
(b) select count(*) from employee;
(c) select avg(salary) from employee;
(d) select salary+100 from employee where empid=B1;
(e) select concat(‘empid’,empid), salary from employee where empid=B2;
76. What will be the output of following code?
a. select concat (concat (‘Inform’,’atics’),’Practices’);
b. select concat (lower(‘Class’),upper(‘ xii’));
c. select count(‘Inform’,’atics’);
d. select round(6.5675,2);
Page 25 of 51
e. select round(4.132,1);
f. select truncate(5.3456,1);
g. select dayofmonth(‘2009-08-25’);
h. select mid(‘Class 12’,2,3);
i. select lower(concat(‘Prac’,’Tices’));
(j) select trim(“ Trailing spaces from welcome “);
(k) select 5 mod 6;
(l) select length(“Ramesh Sharma”);
(m) select pow(5,2) + pow(2,-2);
(n) select 100 + sqrt(100);
(o) select floor(100.34);
(p) select ceil(32.33);
(q) select left(‘Ramesh Sharma’,5);
(r) select substr(trim(‘ India is great ’),3,9);
(s) SELECT INSTR(‘INFORMATICS’,’A’); [Ans:7]
(t) Select ROUND(124.44) + POW(4,2);
(u) Select YEAR(‘2009-08-15 01:02:03’) + 20;
(v) Select LCASE(RIGHT(‘AMITY INTERNATIONAL SCHOOL’,6));

77. Write an SQL query to create the table ‘Menu’ with the following structure:
Field Type Constraint
ItemCode Varchar(5) Primary Key
ItemName Varchar(20) Not null
Category Varchar(20) Default ‘Chinese’
Price Decimal(5,2) >100

78. In a database there are two tables ‘LOAN’ and ‘BORROWER’ as shown below:
LOAN
Loan_No Branch_Name Amount
K-170 Downtown 50000
K-230 Redwood 60000
K-260 Perryridge 37000
BORROWER
Borrower_ID Customer_Name Loan_No
1061 Jones K-170
1062 Smith K-265
1063 Hayes K-230
(a) How many rows and columns will be there in the Cartesian product or cross join of
these two tables? [
(b) Which column in the ‘BORROWER’ table is the foreign key?
(c) Identify the primary key column in table BORROWER.
(d) How many rows will be there in left outer join of these two tables?
(e) How many rows will be there in equi- join of these two tables?
(f) How many rows will be there in non equi- join of these two tables?
(g) How many rows and columns will be there in the natural join of these two tables?
(h) Check every value in Loan_No column of both the tables. Do you find any
discrepancy?

Page 26 of 51
79. Create table Employee as per following Table instance chart.
Column Name EmpID Ename EmpPhone EmpSal DeptID
Key Type Primary Foreign
Nulls/Unique Not Null Unique
FK Table Department
FK Column Dept_ID
Datatype Char Varchar Number Number Varchar
Size 4 20 11 9,2 2

80. The Title and Price columns of table “Library” are given below:
TITLE PRICE
Mastering C++ 495
Guide Network 500
Mastering SQL 650
Dos GUIDE 400
Basic for beginners 399
Mastering Window Null
Based on this information, find the output of the following queries:
(a) SELECT MIN(Price)from library;
(b) SELECT COUNT(Title) from library WHERE Price < 150;
(c) Select AVG(price) from library WHERE title like ‘%e%’;
(d) Select title from library where price = (select max(price) from library);

81. Consider the table Hospital given below:


No Name Age Department DateOfAdm Charges Sex
1 Sandeep 64 Surgery 23/02/97 400 F
2 Ravina 24 Orthopedic 20/01/98 200 F
3 Karan 45 Orthopedic 10/02/97 200 M
4 Tarun 12 Surgery 01/01/98 300 F
5 Zubin 36 ENT 12/01/98 250 M
6 Ketaki 16 ENT 12/02/98 300 F
7 Ankita 29 Cardiology 20/02/98 800 F
8 Zareen 45 Gynecology 22/02/98 500 F
9 Kush 19 Cardiology 13/01/97 800 M
10 Shailya 31 Medicine 19/02/97 400 F

Write commands in SQL for (i) to (xvi)


(i) To show all information about the MALE patients of cardiology department.
(ii) To list the names of male patients who are in orthopedic department.
(iii) To display Patient’s name, charges, Age for female patients.
(iv) To count the number of patients with Age < 30.
(v) Increase the charges of male patient in ENT department by 4%.
Page 27 of 51
(vi) Add another column email_id with suitable data type.
(vii) Delete the records of all female patients in Surgery department.
(viii) Display a report listing name, age, charges and amount of charges including VAT as
2% on charges name the column as total charges and keep the data in ascending order
of name.
(ix) To list name and department of those patients in which date of admission is before
23/02/1997 from hospital table in descending order of their name.
(x) To show the name of those patients who have first alphabet as ‘S’ and third alphabet
as ‘n’ from hospital table.
(xi) To display the second largest charges from hospital table.
(xii) To find the total charges of those patients who are admitting in Orthopedic
department.
(xiii) To display the difference of highest and lowest charges of each department having
maximum charges more than 300.
(xiv) Find out the details of patients whose age is same or more than that of patient whose
hospital charges are maximum.
(xv) Display the details of all the patients who are hospitalised in 1998.
(xvi) Display the sum of charges of various departments.
Find the output for SQL commands (xvii) to (xxiii).
(xvii) SELECT COUNT(DISTINCT Department) FROM HOSPITAL;
(xviii) SELECT MAX(Age) FROM HOSPITAL WHERE SEX=’M’;
(xix) SELECT AVG(Charges) FROM HOSPITAL WHERE SEX=’F’;
(xx) SELECT SUM(Charges) FROM HOSPITAL WHERE DATEOFADM < ’12/08/98’;
(xxi) select name, age, department from hospital where Sex= ‘M’ ;
(xxii) SELECT DISTINCT Department FROM HOSPITAL;
(xxiii) select count (*) from Hospital where Sex=’F’;

82. Consider the tables PEOPLE and PROPERTIES given below:


PEOPLE
Name Phone PID
Aisha 9411223344 1
Karan 9422114455 2
Rosy 9433112244 3

PROPERTIES
PID SPID Farm_Name
1 1 Old house farm
3 2 Nanada’s farm
3 3 Will’s farm
3 4 Tall farm
4 5 The florist
With reference to these tables, write command in SQL for (i) and (iii) and output for (iii).
(i) Display the name and phone number of each person who has a farm.
(ii) Display the farm name of farm(s) owned by Karan.
(iii) SELECT Name, Phone, Farm_Name
FROM PEOPLE right join PROPERTIES
On PEOPLE.PID = PROPERTIES .PID;
83. Consider the following table Student. Write SQL commands for the statement
(i)–(v) and give the outputs for SQL queries (vi)-(vii).
Page 28 of 51
NO NAME STIPEND STREAM AVG.MARK GRADE CLASS
1 AMIT 400 Medical 78.5 B 12 B
2 SUMIT 450 Commerce 89.2 A 11 C
3 KUMAR 300 Commerce 68.6 C 12 C
4 AJEET 350 Humanities 73.1 B 12 C
5 SUJEET 500 NonMedical 90.6 A 11 A
6 DEEPAK 400 Medical 75.4 B 12 B
7 SANJAY 250 Humanities 64.4 C 11 A
8 KULDEEP 450 Nonmedical 88.5 A 12 A
9 MOHIT 500 Nonmedical 92.0 A 12 A
10 ARUN 300 Commerce 67.5 C 12 C

(i) Select all the contents of Nonmedical stream students from STUDENT.
(ii) List the name of those students who are in class 12 sorted by stipend.
(iii) List all details of students sorted by AvgMark in descending order.
(iv) Display a report, listing name, stipend, stream and amount of stipend
received in a year assuming that stipend is paid every month.
(v) To add a new column called Phone_no.
(vi) SELECT COUNT(DISTINCT STREAM) FROM STUDENT;
(vii) SELECT AVG(STIPEND) FROM STUDENT WHERE GRADE=”B”;

84. Given the following LAB relation: Write SQL command for questions (i) to (v)
and the output for (vi) to (ix).

No Item Name Cost Per Item Quantity Date of Warranty Operational


Purchase
1 Computer 60000 9 2006-05-21 2 7
2 Printer 15000 3 2007-05-21 4 2
3 Scanner 18000 1 2008-08-29 3 1
4 Camera 21000 2 2006-06-13 1 2
5 Hub 8000 1 2009-06-13 2 1
6 UPS 5000 5 2006-05-21 1 4
7 Plotter 25000 2 2010-01-11 2 2

(i) To select the Item Name purchased after 2007-10-31.


(ii) To list the ItemName in ascending order of the date of purchase where
quantity is more than 3.
(iii) To count the number of Items whose cost is more than 10000.
(iv) Decrease the cost per item by 10% if the warranty is 1.
(v) To insert a new record in the lab table with the
following data: 8,’VCR’,10000,2,’2010-02-02’,1,2.
(vi) SELECT MIN(DISTINCT QUANTITY) FROM LAB;
(vii) SELECT MIN(WARRANTY) FROM LAB WHERE QUANTITY=2;
(viii) SELECT SUM(COSTPERITEM) FROM LAB WHERE QUANTITY>2;
(ix) SELECT AVG(COSTPERITEM)FROM LAB WHERE Warranty=2;
85. Given the following CREATE TABLE command, identify foreign key constraints
and their complete details. (i.e, the parent table, child table, field name, restriction
etc.).
CREATE TABLE lego_composer (
Page 29 of 51
Construction int(11) NOT NULL,
Brique int(11) NOT NULL,
Nombre integer NOT NULL Default 1,
CONSTRAINT Construction_composer FOREIGN KEY (construction)
REFERENCES LEGO_CONSTRUCTION(id) ON DELETE RESTRICT ON
UPDATE CASCADE,
CONSTRAINT brique_composer FOREIGN KEY (brique)
REFERENCES LEGO_BRIQUE(id) ON DELETE RESTRICT ON UPDATE
CASCADE,
PRIMARY KEY (Construction, Brique) );

86. Consider the table BUS given below:


Busno Origin Dest Rate KM Time Type
21 Del Jul 45.5 210 9.50 AC
198 Del Amrit NULL 250 10.00 NULL
101 Chandi Del 12.5 250 22.00 NON AC
49 Mum Pune 35.0 205 11.00 NON AC
12 Del Agra 50.0 330 6.00 AC
25 Del Hrdw 20.5 250 5.00 NON AC
24 Del Agra 25.0 330 8.30 NON AC
(a) Insert a new row in the table BUS with
data: 22, Agra, Delhi, 50, 330, 14.00, AC
(b) Modify a row of Busno 198 by changing the Rate to 30 and type to ‘NON AC’.
(c) Add a new column Tax_Charge number(6) with constraint NOT NULL to the table.
(d) Display the starting and the destination stations together in one column.
(e) Display the number of buses which start from Delhi before 10 am.
(f) To display a report with busno, origin and destination for only those buses whose
time is between 11 am and 11 pm.
(g) To display the origin along with sum of km for each
origin. Give the output of the following MySQL queries:
(h) Select Busno, Type from BUS where dest in(‘Del’, ‘Agra’);
(i) Select Busno, Origin, Dest from Bus where Dest like ‘A%’;
87. What will be the output of following code?
a. select round(-1.48);
b. select round(-1.66);
c. select round(3.456,1);
d. select round(2.198,0);
e. select round(156.456,-2);
f. select truncate(7.29,1);
g. select truncate(255.56,-2);
h. select char(65);
i. select substr(‘welcome to ip’,-3,5);
j. select substr(‘welcome to ip’,5);
k. select month(2011-10-24);
l. select dayname(2016-03-20);

88. Consider the tables ‘DOCTOR’ and ‘SALARY’ given below. With reference to
Page 30 of 51
these tables, Write commands in SQL for (a) and (d) and output for (e) below:
DOCTOR
No NAME DEPT SEX EXPERIENCE
301 Raj ENT M 12
799 Rohan ORTHEPEDIC M 5
101 Maria CARDIOLOGY M 10
302 Mathew ENT F 3
SALARY
No Basic Allowance Fees
101 12000 1000 300
799 23000 2300 400
301 32000 4000 500
302 12000 5200 100
(a) Display the average salary of all the doctors working in ”ENT” department.
(where salary is sum of basic and allowance)
(b) Display the minimum allowance of female doctors.
(c) Display the doctor no, doctor name and corresponding basic for each doctor.
(d) Display the list of all doctors who charge fees less than 400.
(e) Select NAME, BASIC, ALLOWANCE
FROM DOCTOR, SALARY
WHERE FEES>=500 AND DOCTOR.NO=SALARY.NO;
89. Consider the following tables Item and Customer. Write SQL commands for the
statements (i) to (iv) and give output for SQL queries (v) to (viii).
TABLE: ITEM
I_ID ItemName Manufacturer Price
PC01 Personal Computer ABC 35000
LC05 Laptop ABC 55000
PC03 Personal Computer XYZ 32000
PC06 Personal Computer COMP 37000
LC03 Laptop PQR 57000
TABLE: CUSTOMER
C_ID CustomerName City I_ID
01 N Roy Delhi LC03
06 H Singh Mumbai PC03
12 R Pandey Delhi PC06
15 C Sharma Delhi LC03
16 K Agarwal Bangalore PC01

Page 31 of 51
(i) To display the details of those Customers whose City is Delhi.
(ii) To display the details of Items whose Price is in the range of 35000 to 55000 (Both
values included).
(iii) To display the CustomerName, City from table Customer and ItemName and Price
from table Item, with their corresponding matching I_ID
(iv) To increase the Price of all Items by 1000 in the table Item.
(v) SELECT DISTINCT City FROM Customer;
(vi) SELECT ItemName, MAX(Price), Count(*) FROM Item GROUP BY ItemName;
(vii) SELECT CustomerName, Manufacturer FROM Item, Customer WHERE
Item.I_Id=Customer.I_Id;
(viii) SELECT ItemName, Price * 100 FROM Item WHERE Manufacturer='ABC';
90. Consider the following table and answer the questions given below

a. Display all last names of people of Mumbai city in uppercase


b. Display Person Id along with First 3 characters of his/her name.
c. Display first name concatenated with last name for all the employees.
d. Display length of address along with Person Id
e. Display last 2 characters of City and Person ID.
f. Display Last Names and First names of people who have "at" in the second or
third position in their first names.
g. Display the position of 'a' in Last name in every row.
h. Display Last Name and First name of people who have "a" as the last character in
their First names.
i. Display the first name and last name concatenated after removing the leading and
trailing blanks.
j. Display Person Id, last names and contribution rounded to the nearest rupee of all
the persons.
k. Display Person Id, last name and contribution with decimal digits truncated of all
the persons.

Page 32 of 51
l. Display Last name, contribution and a third column which has contribution
divided by 10. Round it to two decimal points

i. Display Item name, unit price along with Date of purchase for all the Items.
ii. Display Item name along with Month (in number) when it was purchased for all the items.
iii. Display Item name along with year in which it was purchased for all the items.
iv. Display Item Id, Date of Purchase and day name of week (e.g. Monday) on which it was
purchased for all the items.
v. Display names of all the items that were purchased on Mondays or Tuesdays.
vi. Display the day name of the week on which Rice was purchased.
vii. Display the Item name and unit price truncated to integer value (no decimal digits)of all
the items.
viii. Display current date and time.

91. Write SQL statements to do the following:


(a) Using the three separate words "We," "study," and "MySQL," produce the
following output:
"We study MySQL"
(b) Use the string "Internet is a boon" and extract the string "net".
(c) Display the length of the string "Informatics Practices".
(d) Display the position of "My" in "Enjoying MySQL".
(e) Display the date 10 years from now. Label the column "Future."
(f) Display the day of week on which your birthday will fall or fell in 2010.

Page 33 of 51
11. Categorize the DDL and DML commands :
CREATE, TRUNCATE, DELETE, GRANT, ROLLBACK, SELECT

12. Consider the table Flight given below, write command in SQL for (A) to (D) and output
for (E) to (H).
Table : FLIGHT
Flight_No Origin Destination Seats Flightdate Rate
1005 Varanasi Nepal 275 12-Dec-07 3000
2785 Delhi Kerala 290 17-Jan-08 5500
6587 Mumbai Varanasi 435 19-Feb-08 5000
1265 Varanasi Nepal 200 02-Jan-08 5400
4457 Delhi Lucknow 150 22-Feb-08 4500
6856 Varanasi Mumbai 180 03-Mar-08 6000
(A) To display Flight flying between Varanasi and Nepal.
(B) To display the different Origin of Flights.
(C) To display list of flights in descending order of Rate.
(D) To display flight details of the flight whose flightdate is after Jan 2008.
(E) SELECT Flight_No, Destination FROM Flight WHERE Destination LIKE ‘_u%’;
(F) SELECT Origin, COUNT(*) FROM Flight GROUP BY Origin;
(G) SELECT Origin, Destination FROM Flight WHERE seats>400;
(H) SELECT SUM(Rate),MAX( Seats) FROM Flight;

Que.13 Find output of the following.


(i) Select length(‘INDIA’) FROM DUAL;
(ii) Select Power(2,7) FROM DUAL;
(iii) Select round(1223.1823,1) FROM DUAL;
(iv) Select Substr(Trim(‘ Today was Sunday ‘), 2, 4) FROM DUAL;
(v) Select curdate( ) as ‘Sunday’FROM DUAL;
(vi) SELECT POW(4,3), POW(3,4);
(vii) SELECT ROUND(543.5694,2), ROUND(543.5694), ROUND(543.5694,-1);
(viii) SELECT TRUNCATE(543.5694,2), TRUNCATE(543.5694,-1);
(ix) SELECT LENGTH("Prof. M. L. Sharma");
(x) SELECT CONCAT("SHEIKH", " HAROON") "FULL NAME";
(xi) SELECT YEAR(CURDATE()), MONTH(CURDATE()), DAY(CURDATE());

(xii) SELECT DAYOFYEAR(CURDATE()), DAYOFMONTH(CURDATE()),


(xiii) DAYNAME(CURDATE());
(xiv) SELECT LEFT("Unicode",3), RIGHT("Unicode",4);
(xv) SELECT INSTR("UNICODE","CO"), INSTR("UNICODE","CD");
(xvi) SELECT MID("Informatics",3,4), SUBSTR("Practices",3);

Page 34 of 51
93. Consignor

CID CneeName Salary


2004 Rajindra 3200
2007 Sumitra 4500
2008 Sujatha 1500

Write MySQL commands for 1 to 4 on the basis of table Consignor

1. Write the command for add a new column City with character size 20.
2. Remove the Salary field from Consignor table.
3. Change the name of the column CneeName to Name
4. Change the data type of column CID to character type.

Bank
AcctNo AccName TransactionAmt
6850 Tarun Nanda 2000
3950 Sanajy Sharma 15000
1100 Nikhil Arora 69000

1. Write the command for add a new column ContactNo with character size 20.
2. Remove the column TransactionAmt from Consignor table.
3. Change the name of the column AccName to Account_Name
4. Change the data type of column AccNo to character type.

BOOKS
Bookid Title Price
B123 Poetry Collections 200
P142 Drama 150
D456 Fiction 225

Write MySQL commands for 1 to 4 on the basis of table BOOKS


1. Write the command for add a new column Author with character size 20.
2. Remove the Price field from Books table.
3. Change the name of the column Bookid to BookNo
4. Change the data type of column BookNo to character type.

Teacher
TeacherID TeacherName Category
1450 Smrithy PGT
1475 AshokSharma PRT
1654 Jaine TGT

Page 35 of 51
1. Write the command for add a new column ContactNo with character
size 20.
2. Remove the column Category from Teacher table.
3. Change the name of the column TeacherName to TName
4. Change the data type of column TeeacherID to character type.

1. Which statement is used to extract data from a table?


2. How do you select all the columns from a table named "Employee"?
3. How do you select a column named "IName" from a table named "Inventory"?
4. Which of the following are valid column names?
A. Marks Eng B. 66_Marks C. Marks_Eng D. #Eng_Marks
5. SELECT statement can be used to perform these functions.

A. Insert rows into a table. B. Choose and display columns from a table. C. Modify data in a
table. D. Select and display structure of a table

6. Which statement is used to insert new data in a table?

7. How would you display all those rows from a table named "Friends" where the value of the
column "Hobbies" is "SWIMMING"

A. SELECT ALL FROM Friends WHERE Hobbies IS 'SWIMMING';


B. SELECT * FROM Friends WHERE Hobbies='SWIMMING';
C. SELECT * FROM Friends WHERE Hobbies = 'Swimming" ;
D. SELECT ALL FROM Friends WHERE Hobbies 'SWIMMING' ;
8. Which statement is used to modify data in a table?
A. CHANGE B. MODIFY C. UPDATE D. SAVE AS
9. Which SQL statement is used to delete data from a table?
A. DELETE B. DROP C. TRUNCATE D. REMOVE
10. How do you select all the rows from a table named "Student" where the value of the column
"FName" starts with "G"?
11. The OR operator displays a record if ANY of the conditions listed are true. The AND
operator displays a record if ALL of the conditions listed are true
A. False B. True
12. Which keyword is used to return only different values in a column?
13. Which SQL keyword(s) is/are used to sort the rows in the output:
14. How would you return all the rows from a table named "Item" sorted in descending order on
the column "IName"?
15. How can you insert a new row into the "Store" table?

Page 36 of 51
16. Which statement is appropriate to change the first name "Madhur" to "Mridul" in the
"FName" column in the 'Student' table?
17. How can you delete the rows with marks below 33 in the 'Student' Table?
a) Define the following terms: i) Keyword ii) Clause iii) Statement
b) Which statement is used to select a database and make it current?
c) How is a database related to table(s)?
d) Write SQL statement to view names of all the tables contained in the current database
e) Which keyword is used to eliminate redundant data?
f) In INSERT INTO statement, while giving data values, how should text values be supplied?
g) What is NULL? What happens when you perform arithmetic calculations on NULL values?
h) Write SQL statement to display the result of arithmetic expression 78*2 on screen
i) Is there any difference in the output of the following statements :
Select * from Emp; SELECT * FROM EMP;
j) List two categories into which MySQL statements can be categorized. Give examples of 2
statements in each category.
k) Write the minimum number of column(s) that must be specified while creating a table using
CREATE TABLE statement.
l) What happens if you give a CREATE TABLE statement to create a table named 'Item' and a
table named 'Item' already exists?
m) Write any 4 things that are displayed when you display the structure of a table using
DESCRIBE statement.
n) Consider the following INSERT INTO statement: INSERT INTO Emp(Empid,Salary)
VALUES ('I201',25000); What values are assigned to the columns Empid and Salary
respectively?
p) What is the difference in the output of SELECT statement if we write the keyword ALL in place
of DISTINCT?
q) What is the purpose of a Column Alias?
r) Write the purpose of the following SELECT statement? SELECT Itemcode,IName AS "Item
Title" FROM Item;
s) What does the Modulus arithmetic operator do?
t) List six relational operators used in SQL.
u) How are operators with equal priority evaluated in an expression?
v) Which statement is used to modify data in a table?
w) Which statement is used to remove a column from a table? x) What is the purpose of
"ORDER BY" clause?
95. Table Traveldetails has 15 records and table Passenger has 5 records in it. Ms. Chetna wants
to display all information stored in both of these related tables . She forget to specify the equi-
join condition in the query. How many rows will get displayed on execution of this query?

96. Consider the Relation Doctor given below, write command in SQL for (i) to (iv) and output
for (v) to (viii)
Relation: Doctor
ID Name Dept Gender Experience ConstFee
201 R.K. Nath ENT M 12 300
457 Mahavir Singh SKIN M 500
365 M. Asthana MEDICINE F 9 250

Page 37 of 51
221 V. S. Nag ENT M 3 150
122 S. P. Sinha NEPHRO F 200
110 J. P. Pandey CARDIOLOGY M 9 500
i. To display name of all male doctors who are in Medicine having more than 10 years of
experience.
ii. To display the count of the different departments.
iii. To display minimum consultation fee of female doctors
iv. To display name and department of male doctors who has no experience.
v. SELECT AVG(ConstFee) FROM Doctor WHERE NOT Gender=’F’;
vi. SELECT Count(Experience) FROM Doctor;
vii. SELECT Name, Experience FROM Doctor WHERE id BETWEEN 100 AND 200;
viii. SELECT SUM(ConstFee),MAX( Experience) FROM Doctor;

97. Answer the following question.


a. Write an SQL query to create the table “peripheral“ with the following structure-

Field Type Constraint


P_Id Varchar(5) Primary Key
P_Name Varchar(25)
Manufacturer Varchar(15)
Price Integer Must between 399 and 4999
Quantity Integer Not Null
98. In a database there are two Relations ‘Dress’ and ‘Material’ shown below-
Relation : Dress
Dcode Description Price MCode LaunchDate
1002 Trouser 999 M002 15-12-2010
2006 Coat 1599 M001 27-09-2009
1036 Sweater 540 M001 11-01-2008
1789 Frock 1950 M003 31-12-2010
Relation: Material
MCode Type
M001 Woolen
M002 Cotton
M003 Polyester
M004 Silk
M005 Denim
i) Name the column which can be made ‘Foreign Key’ from both the tables
ii) To display the dress details which are made up of woolen?
99. Consider the tables given below:
Table : STOCK

Itcode Itname Dcode Qty unitpr Stkdate


444 Drawing Copy 101 10 21 31-June-2009
445 Sharpener Camlin 102 25 13 21-Apr-2010
450 Eraser Natraj 101 40 6 11-Dec-2010

Page 38 of 51
452 Gel Pen Montex 103 80 10 03-Jan-2010
457 Geometry Box 101 65 65 15-Nov-2009
467 Parker Premium 102 40 109 27-Oct-2009
469 Office File 103 27 34 13-Sep-2010
Table : DEALERS
Dcode Dname Location
101 Vikash Stationers Lanka Varanasi
102 Bharat Drawing Emporium Luxa Varanasi
103 Banaras Books Corporation Bansphatak Varanasi
With reference to these tables, write commands in SQL for (i) and (ii) and output for (iii) below-
(i) To display the amount that has been spent to purchase Office file &
Sharpener camlin.
(ii) To display all the items of Vikash Stationers.

(iii) SELECT DCODE,COUNT(QTY),AVG(UNITPR) FROM STOCK


GROUP BY DCODE;

Page 39 of 51
Page 40 of 51
PART - II
1. Which of the following is a container control?
i. TextField ii.Label iii.Frame iv. Button
2. While making a Form in Netbeans, Mr Jack wants to display a list of countries for
users to select one from. Suggest a most appropriate control.
3. How can you declare the variable in JAVA for the following;
(i) If you want to store the salary of an employee.
(ii) If you want to store the name of an employee.

4. What would be the contents of jTextField1 after execution of following code.


jTextField.SetText(Math..round(2.3)+ “ “);

5. A programmer stored roll number of 10 digits in a string variable


strRoll. Now it is required to be stored in numeric form using Long variable. Write a
Java code to do this.
6. Write java code for solve following equation.
ans =((a +b)2)2
7. (b) Find out the value of res after executing equation.
int a=20,b=10;
res = a++ +b- - +a + ++b -a;

Page 41 of 51
8. While working in Netbeans, Rajmeeta included a Listbox in the form. Now she
wants the list of her friends' names to be displayed in it. Which property of Listbox
control should she use to do this?
9. What will be the contents of jTextArea1 after executing the following
statement:
jTextArea1.setText("Object\nOriented\tProgramming");
10. Mr. Nayak has developed a Java application for a school, in which, a combo
box is made on the form for selecting class. Name the property which Mr.Nayak
should use to add the class’s data in combo box.
11. Name the statements used for decision making in Java.
12. Write the purpose of the following statements:
int n=Integer.parseInt(“1254”); ii) jButton1.doClick( );
13. What will be the content of jTextField1 and jTextField2 after executing the
following code:
String st=”New to Information Technology”;
jTextField1.setText(st.replace(“Technology”,”Practices”);
jTextField2.setText(st.substring(7));
14. ABC public school has developed a JAVA application through which the parents are
able to see their deposited fee details for their ward. What should school do so that
parents / students are able to view the details shown in text field and can’t modify
them.
15. What will be the contents of jTextField after executing the following statement?
jTextField.setText ( ‘B’ + ‘a’ )
16. Identify the errors and tell the output ( jTF 1 = 20 , jTF2 = 10 )
(i) int m = integer.getInt(jTFl.getText() + jTFl.getText());
(ii) JOptionPane.showMessageDialog(null , “ ” + ( m +1 ) ) ;
17. Name any two methods associated with jOption dialog.
18. Write the code to make textfields tfAmount, tfBillAmount non editable.
19. Write the value of z after execution of following code :
int j;
int z;
j=4;
z = (4*++j)%3;

Page 42 of 51
20. Write the difference between the following :
(i) A = 10
(ii) If (A==10)
21. Write statement to increase the value assigned to variable Z by 5 and then to display
the value.
22. What will be the content of the jTextArea1 after executing the following code :
int n = 89;
jTextAreal.setText(Integer.toString(++n));
23. Write the output :
System.out.println(Math.pow(4.0,2.0));
System.out.println(Math.round(6.459));
24. While working in Netbeans, Ms Kanta Surbhi wants to display 'Cleared' or
'Re-attempt required' message depending the marks entered in jTextField.
Help her to choose more appropriate statement out of 'If statement' and 'Switch
statement'.
25. ( Write a statement to make jTextArea1 as un-editable
26. Write Java code that takes the price of a pencil from jTextField1 and quantity
of pencils from jTextField2 and calculates total amount as price * quantity to
be displayed in jTextField3 and also find 10% tax amount to be displayed in
jTextField4.
27. What will be displayed in jTextField1 after executing the following code
int N = 20;
N=N+l;
If (N<21)
jTextField1.setText(Integer.toString(N+10));
else
jTextField1.setText(Integer.toString(N+15));
28. What will be displayed In jTextArea1 after executing the following statement:
jTextAreal.setText("Live\nIn Peace\t and harmony") ;
29. Given a string object namely 'VALUE', having value as "324" stored in it.
What will be result of the following:
JOptionPane.showMessageDialog(null,""+(Value.length()+Integer.parseInt(value))) ;
30. What will be the content of jTextField1 after executing the following statement?

Page 43 of 51
jTextField1.setText(“Informatics”.substring(2,5));
31. Which property of jLabel box is used to specify the image during design time?
32. Which statement is used to terminate the loop before its maturity?
33. Name any two integer data type, which store only integer value.
34. Item code consisting of 5 digits is stored in an integer type variable intItemCode.
Mr. Srikant wants to Store this Item code in a String type variable called
strItemCode. Write appropriate java statement(s)to help him in performing the
same.
35. Suppose x1 and x2 are two double type variables that you want to add as integer and
assign to an integer variable. Construct a java statement for doing so.
36. Given a string object named PAY having values as “68000” stored in it. Obtain the
output of the following...
JOptionPane.showMessageDialog (null,” “+salary.length () +Integer.parseInt
(salary));
37. Mr. RajKumar is doing Java course from ABC Computers. He has clear the concepts
of different operators.
38. Now he is studying about conditional statements .He wants to use the relational and
logical operators with conditional statements but he is confused which conditional
statement use between IF and Switch.Help him for the dame.
39. Why is it necessary to put break statement after every case in a switch statement
40. What is the purpose of the following statement:
jTextField1.setText(“Informatics Practices”,toUpperCase( ));
41. What will be the contents of jTextField1 and jTextField2 after executing the
following code:
String str =”Mahatma”;
jTextField1.setText(str.substring(4));
jTextField2.setText( “” +str.length( ));
42. What will be the contents of jTextField1 and jTextField2 after executing the
following code:
String str =”Mahatma”;
jTextField1.setText(str.substring(4));
jTextField2.setText( “” +str.length( ));
43. What will be the value of variable “j”, if the value of k is 20, and p is 10 initially?

Page 44 of 51
j = --k + 3 * k + p++
44. Write one limitation and one advantage of a switch statement.
45. Which of the data type holds numbers from 32,768 to 32,767 from the followings:
(a) char (b) byte (c) short
46. While working in Netbeans, Wilson included a ListBox in the form. Now he wants
the list of his friends’ name to be displayed in it. Which property of ListBox control
should he use to do this?
47. Can a static class member of public class get accessed by
(a) same class (b) other class in the same package (c) class in any other package
48. What type of inheritance does java has?
49. Which import command do you need to write before creating an Option pane dialog
window?
50. What will be the contents of jTextArea1 after executing the following code:
jTextArea1.setText(“Object \n Oriented \t Programming”)
51. We know that a private member of a class is not directly accessible by a sub class. Is
it any way possible for the objects of a derived class to access the private members of
the base class? if yes, how? Remember, the base class cannot be modified.
52. Which property of the radio button should be set to make the radio buttons mutually
exclusive?
53. Name one container for each of the following categories.
(i) Top level container
(ii) Middle level container
54. Given a string Object namely month having value as “11” stored in it. What will
be the result of following code?
JOptionPane.showMessageDialog(null,“ ” + (month.length() + Integer.parseInt( month) ) );
55. What will be the content of jTextField1 after executing the following statement?
jTextField1.setText(“Informatics”.substring(3));
56. What will be the contents of JTextField1 and JTextFiled2 after executing the
following code
jTextField1.setText("Business".substring(3,4));
jTextField2.setText("studies".toUpperCase());
59.

Page 45 of 51
60. What will be content of textArea when following code will be executed?
String str1=”Ruksana”;
String str2=”Ruchi”;
jTextArea1.Append(str2.length()+str2.concat(str1).length());
61. Mr Kapoor has its office address consist of 4 different lines which he wants to enter
in textarea in different lines. Which property of textarea he should use for the same
62. Write sample code to reverse the number 45321 and store it in a variable revStr
and display it in a separate Message Box or Dialog Box?
63. Which property of jLabel box is used to specify the image during design time?
64. Which statement is used to terminate the loop before its maturity?
65. Distinguish between '/' and ,”%”, operators.
66. What is a button group ? Which control is generally used with a button group ?
67. Which property of ListBox is used to display values in the list ?
69. What does the system.exit(0)does when it is attached with a jButton control?
70. Ms.Deepali has developed a java application to get computerized result of the students
of her school. She enters the marks in the TextFields and corresponding percentage is
calculated. But she forgets to write the command for conversion from string to Decimal

format. Write the command.


71. What will be displayed in jTextArea1 after executing the following
jTextField1.setText(“Unity\n In\n Diversity\t India”)
72. While writing the code Mrs Ghosh wants to execute any statement at least once even if
condition is false. Help her to choose appropriate loop.

Page 46 of 51
73. Which method of text area is used to add specified text to the end of the Text
74. What would be the possible problem with the following code that prevents following
code from adding elements to a list list1 ?
ListModel L1 = list1.getModel();
L1.addElement(“new element”)
75. How would you count the number of rows and number columns in a table
(JTable object) namely tbl1?
76. Write Java code to assign the value 70 to variable y. Then decrease the value of y by
5 and store it in variable z.
77. What will be the contents of jTextField1 and jTextField2 after executing following
code :
String s = “Best”;
String r = “Luck”;
String z; z = r.concat(s);
jTextField1.setText(z); jTextField2.setText(r.toUpperCase());

78. Ms. Kiran has developed a Java application for a restaurant billing, in which check
boxes and text fields are made on form. Items are shown through check boxes. When the
user selectsthe check box; corresponding text field should be displayed. Name the text
field’s method which Kiran should use to perform the same.
79. Name the method to set the value of jLabel.
80. Given an int variable K with value 275. It is to be converted into equivalent string i.e.
“275”. What are the two ways of doing that?
81. What is the purpose of keyword (i) extends and (ii) super in java?
82. Write one point of similarity and one point of difference between for and while loop.
83. In JDBC coding, what method would you use to move to first row of recordset recSet?
84. Given a string object named salary having value 69500 stored in it obtain the output of
the following:
JOptionPane.showMessageDialog(null,” ”+salary.length( )+Integer.parseInt(salary));
85. What will be displayed in jTextArea1 after executing the following code?
jTextArea1.setText(“India is \n my mother \t land”);
86. Differentiate executeQuery() and executeUpdate() with an example?
87. What is selection statements of java explain along with examples?

Page 47 of 51
88. What is the API class of jPasswordField , jTextArea, jRadioButton and jList
controls?
89. Which text controls allow text entry in them, also explain container controls?
90. Differentiate between isSelected() and setSelected() method of java with an example?
91. Given a string namely subject having value “123” stored in it.
What will be the result of following Code.
JOptionPane.showMessageDialog(null, “ ”+(subject.length()+Integer.parseInt(subject));
92. What will be displayed in jTextArea1 after the execution of the following loop ?
for (int I=5; I>=2;I– –)
jTextArea1.setText(jTextArea1.getText()+ " "+Integer.toString(I*I));
93. Give the output of the following Java code :
String name="Chennai Express";
int TM=name.length();
int TN=80–TM;
jTextField2.setText(Integer.toString(TM.concat(TN));

94. Write Java statement to make a jTextfield1 unEditable.


95. Seema has taken a list control on her form display the list of all items available
in her shop. But she wants to allow the user to select multiple items from his list
Control. Which property of jList should she use to do the same?
96. Which method of j Frame is used to close the frame without closing the
application.
97. While working in Netbeans, Ms Ruhi wants to display 'Cleared' or'Re-attempt
required' message depending the marks entered in jTextField. Help her to choose
more appropriate statement out of 'If statement' and 'Switch statement'.
98. What will be displayed In jTextArea1 after executing the following statement:
jTextArea1.setText("Live\nIn Peace\t and harmony") ;
99. Given a string object namely 'VALUE', having value as "324" stored in it. What will
be result of the following:
JOptionPane.showMessageDialog(null,""+(Value.length()+Integer.parseInt(value))) ;
100. Which of the following are valid identifiers?
(i) int $y; (ii) int 678 (iii) int _333
PART II

1. What will be the content of the Text Area – textarea1 after the execution of the following
Statements?
textarea1.setText(“Java\n”);

Page 48 of 51
textarea1.append(“Programming \t Language”);
2. How will you input an integer value using JOptionPane?
3. How to store the selected item from a List Box in to a String variable.
4. Write a small code for Exit Control Loop
5. What will be the output of the following command?
"Learning".concat("Java")

a)Learning Java b)LearningJava c)JavaLearning d)Java Learning

6. Which of the following is a selection construct?

a. do while Loop b. for Loop c. while Loop d. None of these

7. If there are two or more possible options then we can use:

a. simple if statement b. nested if statement

c. while loop d. None of the above

8. A loop that never ends is called a:

9. Statements in a block statement are enclosed in which braces:

10. A group of statements which get executed based on a condition is called:


11. Which of the following is an exit controlled loop?
a. for loop b.do while Loop c. while loop d.none of these
Which construct will you use to find the sum of the first 10 natural numbers?
12. What does getPassword( ) on a password field return?

13. Which of the following component is the best suited to accept the country of the user?
A. List B. Combo box C. Radio button D. Check box
14. What command do you need to write in actionPerformed( ) event handler of a button, in order
to make it exit button?
a. System.out.println(); b.System.exit(0); c. System.out.print( )
15. What method would you use, in order to simulate a button’s(namely Okbtn) click event, without
any mouse activity from user’s side?
a. Okbtn.setText( ) b.Okbtn.getText( ) c. Okbtn.doClick( )
16. What would be the name of the event handler method in the ListSelection listener interface for a
list namely CheckList to handle its item selections?
a. CheckListValueChanged( ) b.getSelectedValue( ) c.clearSelection( )
17. Which control displays text that the user cannot directly change or edit?

Page 49 of 51
18. Which control provides basic text editing facility?
a.TextField b. Checkbox c. Combobox d. Label
19. Occurrence of an activity is called
20. Which property is used to set the text of the Label?
21. The object containing the data to be exhibited by the combo box by
which property.
22. What is the default name of action event handler of a button namely TestBtn?
23. What property would you set to assign access key to a button?
24. Which method can programmatically performs the click action of a push button?
24. Which property would you set the setting the password character as ‘$’?
25. Which method returns the password entered in a password field?
26. Which list property do you set for specifying the items for the list.
27. Which method would you use to determine the index of selected item in a list?
28. Which method would you use to insert an item at specified index, in the list?
29. How you can determine whether 5th item in a list is selected or not?
30. Which method you would use to insert ‘Hello’ at 10th position in the Text Area control.
31. Which method you would like to use to insert an Icon (picture) on a Push Button.
32. Which property would you like to set to make a Combo box editable?
33. Name any two Object Oriented Programming languages?
34. Given the value of a variable, write a statement, without using if construct, which will
produce the absolute value of a variable.
35. Given a pacakage named EDU.student, how would you import a class named Test contained in this
package? Write one line statement.
36. What does a JList fire when a user selects an item?
37. Which command is used to import packages and their classes?
(a) include (b) import (c) public (d) inline Ans: (b) import
38.Which statement is used to create a package in Java?
(a) Class (b) super (c) this (d) package
Ans:(d) package
39. In Java, all strings are objects?
(a) True (b) False (c) don’t say Ans: (a) True
40. What do you understand by Package in Java?
Ans: A group of classes is called package
41.Given a package named EDU. Student, how would you import a class named Test contained in this
package? Write one line statement.

Page 50 of 51
42. Which of the following is a valid variable name:
a) 3firstname b) Integer c) Char d) Number1
43. Which of the following statements refer to the same variable name?
i) Amount=20 ii) amount=20 iii) Amount="20" iv) Amount=20
a) Both i) & ii) b) Both i) & iv) c) Both ii) & iii) d) All of the above
44. What will be the output of the following code segment:
String firstName = "Johua ";
String lastName = "Yacomo";
String fullName = firstName + lastName;
jTextField1.setText("Full Name: ");
jTextField2.setText (fullName);
45. To print the value of a variable "x" of type int, which of the following expressions
can be used: i ) jTextField1.setText("x = " + x);
ii) jTextField1.setText ("x = " + "x"));
iii) jTextField1.setText ("x = " + Integer.toString(x));
iv) jTextField1.setText (x = +"x");
a) Both i) & ii) b) Only i) c) Both i) and iii) d) Only iii)
46. What is a Variable?
47. Why are data types important?
48. Explain Numeric data types with the help of an example.
49. How are keywords different from variable names?
50. Is Java case sensitive? What is meant by case sensitive?
51. Is a string containing a single character same as a char?
52. Explain the use of different operators with the help of an example.
******************

ALL THE BEST!!!

Page 51 of 51

You might also like