0% found this document useful (0 votes)
13 views12 pages

CBSE Previous Year Question Papers Class 12 Informatics Practices Outside Set 4 2016

This document is an examination question paper for Informatics Practices, containing instructions for candidates and a total of 7 questions covering topics such as networking, Java programming, SQL, and HTML. Candidates are required to follow specific guidelines, including writing a code number on the title page and a 15-minute reading period before starting to answer. The paper includes various tasks, such as identifying network devices, writing SQL queries, and programming challenges.

Uploaded by

Kodai Kodai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views12 pages

CBSE Previous Year Question Papers Class 12 Informatics Practices Outside Set 4 2016

This document is an examination question paper for Informatics Practices, containing instructions for candidates and a total of 7 questions covering topics such as networking, Java programming, SQL, and HTML. Candidates are required to follow specific guidelines, including writing a code number on the title page and a 15-minute reading period before starting to answer. The paper includes various tasks, such as identifying network devices, writing SQL queries, and programming challenges.

Uploaded by

Kodai Kodai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Series ONS SET-4

Code No. 90
Roll No. Candidates must write the Code on the
title page of the answer-book.

· Please check that this question paper contains 11 printed pages.


· Code number given on the right hand side of the question paper should be written
on the title page of the answer-book by the candidate.
· Please check that this question paper contains 7 questions.
· Please write down the Serial Number of the question before attempting
it.
· 15 minute time has been allotted to read this question paper. The question paper
will be distributed at 10.15 a.m. From 10.15 a.m. to 10.30 a.m., the students will
read the question paper only and will not write any answer on the answer-book
during this period.

INFORMATICS PRACTICES

Time allowed : 3 hours Maximum Marks : 70

General Instructions :
(i) All questions are compulsory.
(ii) Answer the questions after carefully reading the text.

90 1 P.T.O.
1. (a) Vidya College has three departments that are to be connected into a 2
network. Which of the following communication medium (out of the given
options), should be used by the college for connecting their departments
for very effective High Speed communication ?
• Coaxial Cable
• Optical Fiber
• Ethernet Cable
Also name the type of network (out of PAN/LAN/WAN) formed.
(b) State reason why Star topology requires more cable length than Bus 2
topology.
(c) Seema needs a network device that should regenerate the signal over the 2
same network before the signal becomes too weak or corrupted.
Amit needs a network device to connect two different networks together
that work upon different networking models so that the two networks can
communicate properly.
Name the devices that should be used by Seema and Amit.
(d) How is a domain name related to an IP address ? 2
(e) How is firewall useful in ensuring network security ? 2

2. (a) Identify the odd one out of the following Java statements. State reason 1
for your choice.
(i) for
(ii) do while
(iii) switch
(iv) while
(b) Write the purpose of parseInt( ) method. 1
(c) Identify invalid variable names out of the following. State reason if 1
invalid.
(i) for
(ii) - salary
(iii) salary12
(iv) product
(d) What is the difference between statements (i) and (ii) ? 1
(i) t 5 2;
(ii) if (t552)
d53;

90 2
Bookmark – LearnCBSE.in
1. On your computer, open Chrome.
2. Go to the site you want to visit again in the future.
3. To the right of the address bar, click Star .

Open a Bookmark – LearnCBSE.in


1. On your computer, open Chrome.
2. At the top right, click More Bookmarks.
3. Find and click on your favorite LearnCBSE.in Bookmark.

To open bookmarks faster, use the bookmarks bar. Your


bookmarks will show under the address bar. Click a bookmark to open it. To turn the
bookmarks bar on or off, click More Bookmarks Show Bookmarks Bar.

How to Search in Google, to access NCERT Solutions Faster.

• In Google Assistant Voice Search LearnCBSE.in to Get Best NCERT Solutions


• Add to Favorites - Bookmark in Google browser to Access Faster
• In Google Search bar You can search
Ex: (i) LearnCBSE.in Class 12 Maths ch 1 Ex 1.1 Q1,
(ii) LearnCBSE.in Class 12 Physics Important Questions,
(iii) Any Question (LearnCBSE.in + Type your Question in Google Search bar)

To import bookmarks from most browsers, like Google Chrome Firefox, Internet
Explorer, and Safari:
1. On your computer, open Chrome.
2. At the top right, click more .
3. Select Bookmarks Import Bookmarks and Settings.
4. Select the downloaded program
(https://drive.google.com/open?id=1H9UTsvlPwihBa3kkVL0_Dw4Rcx6-TNeP - download)
that contains the bookmarks you'd like to import.
5. Click Import.
6. Click Done.

How to Export and Import Bookmarks in Chrome – Watch Now


(e) Write HTML tags to do the following : 2
(i) Inserting a horizontal line in a web page.
(ii) Inserting a line break
(f) What does ‘XML’ stand for ? How is the purpose of HTML different from 2
XML ?
(g) Rewrite the following code using if else if statement : 2
switch(depcode)
{
case 1 :
allowance 5 4000;
break;
case 2 :
allowance 5 3200;
break;
default :
allowance 5 1000;
}

3. (a) What is the meaning of ‘Open Source’ in the term ‘Open Source Database 1
Management System’ ?
(b) In a table ‘Employee’, a column ‘Occupation’ contains many duplicate 1
values. Which keyword would you use if you wish to list only different
values ?
(c) How is ALTER TABLE statement different from UPDATE statement ? 1

(d) Charvi wants to delete the records where the “FirstName” is “Rama” in 1
the ‘Emp’ Table. She has entered the following SQL statement. An error
is being displayed. Rewrite the correct statement.
DELETE ‘Rama’ FirstName FROM Emp;

90 3 P.T.O.
(e) (i) Name 2 Group (Aggregate) functions of SQL. 2

(ii) Consider the table :

Table : Company

CompanyCode Donations
C101 13000
C102 NULL
C104 7000
C105 4000

What output will be displayed by the following SQL statement ?

SELECT AVG(Donations) FROM Company;

(f) Given below is the ‘Emp’ table : 2

ENO NAME
1 Anita Khanna
2 Bishmeet Singh

SET AUTOCOMMIT 5 0;

INSERT INTO Emp VALUES (5,‘Farzia’);

COMMIT;

UPDATE Emp SET NAME 5 ‘Farzziya’ WHERE ENO55;

SAVEPOINT A;

INSERT INTO Emp VALUES(6,‘Richard’);

SAVEPOINT B;

INSERT INTO Emp VALUES(7,‘Rajyalakshmi’);

SAVEPOINT C;

ROLLBACK TO B;

What will be the output of the following SQL query now ?

SELECT * FROM Emp;

90 4
(g) Consider the table below : 2

Table : Company

EMPID DEPARTMENT SALARY


E101 PERSONNEL 60000
E102 ACCOUNTS 65000
E103 MARKETING 40000
E104 PERSONNEL 62000
E105 PERSONNEL 50000
E106 MARKETING 35000

Identify error(s) in the following SQL statement. Rewrite the correct SQL
statement.

SELECT Department, Salary

FROM Company

GROUP BY Department;

4. (a) Identify programming languages out of the following : 1

HTML, C11,JAVA, MySQL

(b) Write Java statement to extract selected item from a given listbox named 1
“jList1.”

(c) What will be displayed in jTextField1 and jTextField2 after the following 1
code is executed :

int t;

int x;

x512;

t5(3*x11)/3;

jTextField1.setText('' ''1t);

jTextField2.setText('' ''1x);

90 5 P.T.O.
(d) Write the output that will be displayed in the textfields by the following 2
Java code :
String x;
String stream5“Commerce”;
jTextField1.setText((stream.length()19)1'' '');
x5stream.concat(“Humanities”);
jTextField2.setText(x);
jTextField3.setText('' ''1x.substring(2,5));
jTextField4.setText(stream.toLowerCase());
(e) Write the value that will be stored in variable sum after execution of 2
following code :
int sum50,m54;
for(int i59;i>56;i--)
{
if (i%3550)
sum5sum1i;
else
sum5sum2i;
}
(f) The following code has error(s). Rewrite the correct code underlining all 2
the corrections made :
int a50;
int b515;
do ;
a5a13;
b5b23;
while a<5b;

90 6
(g) Ms. Sharma works as a programmer in “ABC Car Rental Company”
where she has designed a software to compute charges to be paid by the
client. A screenshot of the same is shown below :

A client can take any car out of Deluxe/SemiDeluxe/Ordinary for rent.

A client can also opt for services of a guide. Charges vary depending on
the type of car opted.

Charges of services of Guide are extra.


Help Ms. Sharma in writing the code to do the following :

90 7 P.T.O.
(i) After selecting appropriate Radio Button and checkbox(if required), 2
when ‘CALCULATE’ button is clicked, Amount, Guide Charges and
Total Amount should be calculated and displayed in the respective
text fields.

Category of Car Amount (in C)


Deluxe Car 1000 per day
Semi Deluxe Car 800 per day
Ordinary Car 700 per day

Amount is obtained by multiplying per day charges of Car with 2


number of days for which the car is taken.
If ‘Guide Required’ checkbox is selected, Guide charges per day are
` 500.00.
Guide Charges is calculated as : Car required for No. of days * 500;
Total Amount 5Amount1Guide Charges
(ii) When ‘CLEAR’ button is clicked, all text fields and checkbox should 1
be cleared.
(iii) When ‘CLOSE’ button is clicked,the application should close. 1

5. (a) Srishti has created the following table with the name ‘Veterinary’. 2

Column Name Constraint


AnimalId Primary Key
VaccinationsDate
AnimalName Not Null
OwnerName

One of the rows inserted is as follows :

AnimalId VaccinationDate AnimalName OwnerName


A101 2015-02-12 Sheru Amit Sharma

(i) What are the data type of columns AnimalId and


VaccinationDate in the table Veterinary ?

90 8
(ii) Srishti is now trying to insert the following row :

AnimalId VaccinationDate AnimalName OwnerName


A102 2015-08-09 NULL Abhimanyu Shah

Will she be able to successfully insert it ? Give reason.


(b) Write the output of the following SQL queries : 2
(i) SELECT MID(‘LearningIsFun’,2,4);
(ii) SELECT ROUND(76.384,2);
(iii) SELECT INSTR(‘INFORMATION FORM’,’RM’);
(iv) SELECT DAYOFYEAR (‘2015201230’);
(c) Table “Order” is shown below. Write commands in SQL for (i) to (iv) and 6
output for (v) and (vi)
Table : Order

OrderId OrderDate SalesPerson OrderAmount


O101 2015-09-12 Ravi Kumar 34000
O102 2015-08-15 Rashmi Arora 50000
O103 2015-11-01 Ravi Kumar 55000
O104 2015-12-09 Manjeet Singh 60000
O105 2015-11-10 Rashmi Arora 50000

(i) To display names of SalesPersons (without duplicates).


(ii) To list OrderId and respective OrderAmount in descending order of
orderAmount.
(iii) To count the number of orders booked by SalesPersons with names
starting with ‘R’.
(iv) To list Order ids, order dates and order amounts that were booked
after 1st September 2015.
(v) SELECT OrderId, OrderAmount FROM Order where
OrderAmount between 50000 and 60000;
(vi)SELECT concat (OrderId, SalesPerson),
length(SalesPerson) FROM Order;

90 9 P.T.O.
6. (a) Write SQL query to create a table ‘Song’ with the following structure : 2

Field Type Constraint


Songid Integer Primary key
Title Varchar (50)
Duration Integer
ReleaseDate Date

(b) Consider the tables given below : 2

Table : Party

PartyId Description CostPerPerson


P101 Birthday 400
P102 Wedding 700
P103 Farewell 350
P104 Engagement 450

Table : Client

ClientId ClientName Address Phone NoOfGuests PartyId


C101 A.K. Antony A-151, Adarsh Nagar 99101956 80 P101
C102 Fauzia Aria K-5/52,Vikas Vihar 893466448 500 P102
C103 Rashi Khanna D-6, Hakikat Nagar 981166568 50 P101
76-A/2, MG Colony,
C104 S.K. Chandra 65877756 100 P104
Adarsh Avenue.

(i) Name the Primary keys in both the tables.

(ii) ‘P101’ data is present twice in column ‘PartyId’ in ‘Client’ table - Is


there any discrepancy ? Give reason for your answer.

(c) With reference to the above given tables (in Q6 b), Write commands in 6
SQL for (i) and (ii) and output for (iii) given below :

(i) To display Client names of clients, their phone numbers, PartyId


and party description who will have number of guests more than 50
for their parties.

90 10
(ii) To display Client Ids, their addresses, number of guests of those
clients who have ‘Adarsh’ anywhere in their addresses.

ClientId ClientName Address Phone NoOfGuests PartyId

(iii) S E L E C T ClientId, ClientName,NoOfGuests,


description, Costperperson,FROM Client, Party WHERE
Client.PartyId5Party.PartyId AND NoOfGuests BETWEEN
50 AND 100;
7. (a) How is an e-commerce business more cost effective than traditional 2
business ? Write two points.
(b) How is e-learning beneficial for old people ? Write one point. 1
(c) Ms. Ariya is creating a form for PAN CARD application. Help her to 2
choose most appropriate controls from ListBox, ComboBox, TextField,
TextArea, RadioButton, CheckBox, Label and Command Button for the
following entries.

S.No Function
1 To enter NAME
2 To enter MOBILE NUMBER
3 To allow user to choose one CATEGORY out of the
categories :
Company, Trust, Individual.
4 To enter NATURE OF BUSINESS/PROFESSION in the
form of a paragraph

90 11 P.T.O.

You might also like