Professional Documents
Culture Documents
CLASS: XII
* Read and understand the theme and characters of the novel ‘The Invisible Man’.
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)
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.
*******************
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
CHEMISTRY
BIOLOGY
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
--------------- -----------------------
Profit and Loss Appropriation Account for the year ended 31st March 2015
A. 24,000
B. 12,000
A 3/5 17,250
B 2/5 -------
69,300 69,300
Page 15 of 51
Capital Account
Particulars A B Particulars A B
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.
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
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:
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
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
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
Page 21 of 51
PHYSICAL EDUCATION
Content
Unit-1
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
ECONOMICS
5.Price Discrimination
7.Monopolistic Competition
Page 22 of 51
INFORMATICS PRACTICES
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);
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).
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
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.
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;
Page 34 of 51
93. 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
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.
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
7. How would you display all those rows from a table named "Friends" where the value of the
column "Hobbies" is "SWIMMING"
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;
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.
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.
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
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));
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")
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.
******************
Page 51 of 51