0% found this document useful (0 votes)
858 views10 pages

Group-1 Question Paper Class Xi Subject: Informatics Practices (065) Time: 3 Hours Max. Marks: 70

The document is a question paper for Class XI Informatics Practices. It contains 7 questions with multiple sub-parts. Question 1 covers basic computer terms like hardware components, operating systems, display types, and computer security threats. Question 2 asks about Java concepts like JVM, variables, errors. Question 3 covers SQL commands and database concepts. Question 4 contains Java programming questions. Question 5 asks to write code for a GUI program calculating interest. Questions 6 covers SQL queries on tables and database constraints. Question 7 asks about e-governance and e-learning topics.

Uploaded by

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

Group-1 Question Paper Class Xi Subject: Informatics Practices (065) Time: 3 Hours Max. Marks: 70

The document is a question paper for Class XI Informatics Practices. It contains 7 questions with multiple sub-parts. Question 1 covers basic computer terms like hardware components, operating systems, display types, and computer security threats. Question 2 asks about Java concepts like JVM, variables, errors. Question 3 covers SQL commands and database concepts. Question 4 contains Java programming questions. Question 5 asks to write code for a GUI program calculating interest. Questions 6 covers SQL queries on tables and database constraints. Question 7 asks about e-governance and e-learning topics.

Uploaded by

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

GROUP-1

QUESTION PAPER
CLASS XI
SUBJECT : INFORMATICS PRACTICES (065)
Time: 3 hours Max. Marks: 70
S.NO QUESTION MARKS
.
1 A Name the basic units of a computer system 1
B What is an operating system. Name any two examples 2
C Give one point of difference between OCR and MCR 1
D What is a port? Name any two port types. 2
E Write any one advantage of TFT display 1
F What do you understand by computer security? Name any two threats to 2
computer security.
G Why IDE are useful in application development 1

2 A What is the role of JVM in platform independence in JAVA. 2


B Give the syntax and example of declaring variable 1
C Give any two properties of TextField Control in Java 1
D Differentiate between the following: 1x2
(i) If and Switch
(ii) Runtime error and logical errors
E What will be the value of following expressions if j= 5 1X2
(I) (5 *++j)%6
(II) (5*J++)%6
F Why program maintenance is considered very important 2

3 A What is SQL? What are the different categories of SQL commands. 2


B Name all the integrity constraints used during table creation. 1
C Describe the following commands with syntax and example. 2
(i) Insert command
(ii) Update command
D A table has 5 columns and 10 rows. What is its degree and cardinality 1
E Give one point of difference between the primary key and foreign key 1

4 A Write a program in java to calculate the sum of all the number divisible by 5 2
in the range 1 to 50.
B Write the output of the following code: 2
int i = 0, x = 0; 2
do
{ if (i%5==0)
{ x++;
System.out.println(x+”\n”);
}
++I;
}while(i<20);
System.out.println(x);
C Rewrite the following while loop into a for loop 2
int s = 0;
while(s<=13)
{
If (s%2==2)
{
System.out.println(“Color is red”);
}
else
{
System.out.println(“Color is blue”);
}
System.out.println(“New color”);
s= s+1;
D Rewrite the corrected program after removing errors. Underline the 2
corrections
In i= 5, j=10;
If(i<j)||(i=10))
System.out.println(“OK\n”);
System.out.println(“Not Ok”); )
E Mr. Radhey Shyam Bansal the owner of the Kiddi Land Enterprise has
asked his programmer Ekta to devlop the following GUI in Netbeans.
Principal
Rate
Time FIXED DEPOSIT
Senior Citizen RECURRING DEPOSIT

INTEREST
calculate AMOUNT
CLEAR
(I) Write the code for the clear button to clear all the textfields 5
(txtPrincipal and txtTime) and Checkbox. Set the Default choice
in the radiobutton as Fixed Deposit. Suppose the name of
radiobutton Fixed Deposit is radioFD and Recurring Deposit is
radioRD.
(II) Write the code for the calculate button to calculate the
compound interest (P*(1+R/100)T and amount (Principal +
Compound Interest) and display the values in the txtInterest and
txtAmount depending on principal , rate and time.

Rate is calculated based on the time according to the following table

Account Time Rate


Fixed deposit <=1 10%
>1 and <=5 12 %
>5 15%
Recurring <=2 11%
deposit
>2 AND <=7 12%
>7 15%
An additional rate of 2 % is given to the senior citizens i.e. if the chkSr
checkbox is checked
5 A Write an SQL query to create table bank with the following structure 2
Field Type Constraint
Account no. Integer Primary key
CustName Varchar(20 Not Null
)
Contact no. Varchar(10 Not Null
)
Balance Decimal Must
be>=1000
B Write an SQL query to create table transaction with the following structure 2
Field Type Constraint
Account Integer Foreign key related to account no. of bank
no. table
Trans_date Varchar(10 Not Null
)
Trans_type Varchar(20 -
)
Amount Decimal Must be > 0
C Write the output of the following SQL command: 4
(i) Select concat(Lcase(‘Tobe’), trim(Trailing ‘.’ From ‘
continued….’));
(ii) Select roun(15.193,1) + truncate(2.24,1);
(iii) Select len(trim(‘Ajay#Jain###’)) (# means blank space)
(iv) Select mid(trim(‘#infomatics Practices##’),6,6); (# means blank
space)
D What is the difference between Delete and Drop commands of SQL 1
E What is a constraint 1
6 A There is a table T1 with combination of columns C1, C2 and C3 as primary 2
key ? Is it possible to enter
(i) NULL values in any of theses columns?
(ii) Duplicate values in any of these columns?
B Consider the following employee table and write the output of the following
SQL queries:
Emp Name Job Gender Salar Deptno Commission
no. y .
101 Reena Presiden F 30000 10 300
t
102 Shanka Manager M 18000 10 400
r
103 Meena Manager F 15000 20 300
104 Payal Clerk F 5000 30 100
105 Rony Manager M 23000 20 500
(i) Display the name of those employees whose name conatains ‘ee’.
(ii) Display the name, salary and deptno of those employees whose salary is in
the range 10000 and 30000. Order the query output in ascending order of
name.
(iii) Display all the details of female manager and president having slay>
10000.
(iv) Double the commission of those employees working in deptno 20 and 30.
( C) Consider the above table and perform the following: 4
(i) In the employee table add a column mobile no. of data type number with
maximum of 10 digits with default value of 0000
(ii) Display the names of employees having exactly four lettered names
(iii) Add a primary key constraint EmpNo in the employee table
(iv) Remove the column Gender
7 A Name any two e governance websies of India. 1
B How has e learning benefitted the students. 2
C Describe any two positive impacts of e business 2
GROUP-1
MARKING SCHEME
CLASS XI
SUBJECT : INFORMATICS PRACTICES (065)

S.NO QUESTION MARKS


.
1 A Input Unit, Output Unit , CPU , Memory 1
B Operating system is a program which act as an interface between a user and 1
the hardware (i.e. all computer resources)

Example Windows and Linux ½+½

C Any one difference between OCR and MCR 1


D Ports are the points on computer having associated circuitry to allow 1
connection of external devices with computer

Serial port and parallel port ½+½

E Use less power than a normal monitor and can display text and graphics in a 1
wide range of colours.
F Computer Security: It is the ability of a system to protect information and 1
system resources with respect to confidentiality and integrity
Viruses and Spyware ½ +½

G It is a software tool to help programmer to edit, compile , interpret and 1


debug the program in the same environment.
2 A JVM is an abstract machine designed to implemented on the top of existing 2
processors. It hides the underlying operating system.
B Datatype<variable name>; ½ +½
Int a;
C Text and name ( any two properties) ½ +½

D (i) If can evaluate a relational or logical expression whereas switch 1


can test for equality
(ii) Runtime errors occurs at run time whereas in case the application 1
is not giving any compilation or runtime error but still giving a
incorrect output, it is logical errors.
E (i) 0 1X2
(ii) 1
F Correct explanation 2
3 A SQL: In order to access data within the database, all programs and user 1
RDBMS, DDL, DML, TCL , Session Control commands 1
B Primary key, Not Null, Foreign key, Check, Default, Unique 1
C (i) Insert command is used to insert new record into the table 1
Syntax is
Insert into table name values(exp-1, exp-2, exp-3…..);
Insert into emp values (101, ‘seema’,’president’,….); (½ +
½)

(ii) Update command is used to change some or all of the values in 1


an existing row.
Syntax is
Update <table name> set colname-new value,……………. ½ +½
Where <search_conditio>;
Exp: update item set itemname=’key’ where itemno=1;
D degree and cardinality is 5 and 10 respectively 1
E Primary key is used to uniquely identify the tuples of a table whereas 1
foreign key is a column of a table which is primay in parent talbe
4 A int I, sum=0; 2
for(i=1;i<=50;++i)
{
If(i%5==0)
Sum= sum+I;
}
System.out.println(“Sum”+sum);
B Output is 2
1
2
3
4
4
C for( int s=0;s<=13;++s) 2
{
If(s%2==2)
{
System.out.println(“Color is red”);
}
else
{
System.out.println(“New Color”);
}

D Rewrite the corrected program after removing errors. Underline the 2


corrections
In i= 5, j=10; ½
If((i<j)||(i=10)) 1
System.out.println(“OK+\n”); 1/2
System.out.println(“Not Ok”);
)
E (i) txtPrincipal.setText(“”); ½
(ii) txtTime.setText(“”); ½
(iii) chkSR.setSelected(false); ½
(iv) radioFD.setSelected(true); ½

(b). float P= Float.ParseFloat(txtPrincipal.getText());


Float T = Float.ParseFloat(txtTime.getText());
4
If(radioFD.isSelected()== true)
{
If(T<=1)
R =10;
else if(T>1 && T<=5)
R=12;
else if(T>5)
R=15;
}
If(radioRD.isSelected()==true)
{
If(T<=2)
R=11;
else if (T>2 &&T<=7)
R = 12;
else if (T>7)
R = 15;
}
If (chkSR.isSelected()== true)
R = R+2;
float A = (P*Math.pow((1+R/100),T);
float CI= A-P;
txtInterest.setText(“”+CI);
txtAmount.setText(“”+A);

5 A Create table bank


(
Accountno integer primarykey, ½
Custname varchar(20) NotNull, ½
Contactno varchar(10) Not Null, ½
Balance Decimal check(Salary>=1000) ½
);
B SQL query to create table “transaction”
Create Table Transaction
(
AccountNo Integer references bank(AccountNo), ½
Trans_date varchar(10) NotNull, ½
Trans_type varchar(20), ½
Amount decimal check(Amount>0) ½
);
C Write the output of the following SQL command:
(i) To be continued 1
(ii) 17.4 1
(iii) 9 1
(iv) matics 1
D Delete is DML command while Drop is a DDL command 1
Delete is used to delete rows from a table while drop is used to remove
entire table from the database
E A constraint is a condition or check application on a field or set of fields 1
6 A It is not possible to enter NULL values in any of these columns 1
B While it is possible to enter duplicate values in these columns but the 1
combination of C1, C2, C3 should be unique
B
(i) Select name from employee where name like”%ee%”; 1
(ii) Select name, salary, Deptno from employee where salary between 10000 1
and 30000 order by name;
(iii) Select * from employee where Gender= ‘F’ and Job in (‘Manager’, 1
‘President’) and salary>10000;
(iv) Update employee set commission = 2 *commission where deptno in (20,30); 1
( C) Consider the above table and perform the following:
(i) Alter table employee add ( mobileno integer default 0000); 1
(ii) Select names from employee where name like’----‘; 1
(iii) Alter table employee add constraint pk primary key empno; 1
(iv) Alter table employee drop column gender; 1
7 A (i) www.incometaxindia.gov.in 1
(ii) www.india.gov.in

B 1. Boon for working class 2


2. Availability of same course to millions
C 1. Offers opportunity to access new markets across the globe. 2
2. Provides convenience and comfort for customers

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy