100% found this document useful (1 vote)
597 views6 pages

Ip Sample Paper

The document is the question paper for the half-yearly exam for Class 12 Informatics Practices. It contains 3 sections - Section A with 30 marks, Section B with 20 marks, and Section C with 20 marks. Section A contains 5 questions worth 1-2 marks each about computer networks, data processing, and programming concepts. Section B contains 5 questions worth 1-3 marks each involving a case study on developing a student record system. Section C contains 2 questions worth 4 marks each involving analysis of code snippets and output. Students are instructed to answer all questions after carefully reading the text.

Uploaded by

nyuasfad
Copyright
© Attribution Non-Commercial (BY-NC)
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
100% found this document useful (1 vote)
597 views6 pages

Ip Sample Paper

The document is the question paper for the half-yearly exam for Class 12 Informatics Practices. It contains 3 sections - Section A with 30 marks, Section B with 20 marks, and Section C with 20 marks. Section A contains 5 questions worth 1-2 marks each about computer networks, data processing, and programming concepts. Section B contains 5 questions worth 1-3 marks each involving a case study on developing a student record system. Section C contains 2 questions worth 4 marks each involving analysis of code snippets and output. Students are instructed to answer all questions after carefully reading the text.

Uploaded by

nyuasfad
Copyright
© Attribution Non-Commercial (BY-NC)
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/ 6

KENDRIYA VIDYALAYA, CHURU

Half Yearly Exam-2010-11


SUB: - INFORMATICS PRACTICES (065)
CLASS- XII

TIME : 3:00 Hrs Max Marks: 70

Note:

1. This question paper is divided into three sections


2. Section- A consists 30 marks each.
3. Section – B consists of 20 marks each
4. Section – C consists of 20 marks each
5. Answer the questions after carefully reading the text.

Section – A
Q1. Answer the following questions
Knowledge Supplement Organization has set up its new center at Mangalore for its office and
web based activities. It has 4 blocks of buildings as shown in the diagram below:

Center to center distances between various blocks

Number of Computers

a1. Suggest a cable layout of connections between the blocks. 1


a2. Suggest the most suitable place (i.e. block) to house the server of this organization with a 1
suitable reason.
a3. Suggest the placement of the following devices with justification 1
(i) Repeater
(ii) Hub/Switch
a4. The organization is planning to link its front office situated in the city in a hilly region 1
where cable connection is not feasible, suggest an economic way to connect it with
reasonably high speed?
(b) What is the geographical scope of LAN, MAN and WAN? 2

Class-12 Subject-Informatics Practices (Code-065) Page(1)


(c) Would you suggest open source software (OSS) for an organization or sector where the 2
performance is the factor of utmost importance, such as Military?
You must be aware that military has different software needs than the commercial sector
because of its unique mission and environment. While commercial sector choose software
on the basis of factors like: application choice, ease of use, service and support, price,
reliability and performance, the military does the same depending upon factors like:
reliability, long term supportability, security, scalability and performance of the software.
Keeping in mind the above scenario the above question with a proper justification. Give
example of software, if you are recommending one.
Expand the following abbreviations and explain in brief :
(d) 2
(i). SDLC (ii). GNU
Q2 Answer the following questions
(a) How is form data processed when the form is submitted? Are there any pre-requisites
2
form-processing?
(b) What is use of IFNULL () function? Write the Syntax and example of IFNULL () 2
(c) Define the following terms : 2
i) Redundancy ii) Inconsistency

(d) Distinguish between a unary, a binary and a ternary operator. Give examples of Java 2
operators for each one of them.
(e) What are the HTML Logical and Physical Text Styles? Write its names. 2
Q3 Answer the following questions
(a) Write one Difference of the following: 2
i. Protected and Friendly access specifyers
ii. Overridden and Overloading
(b) Expand the following : 2
i. JDBC ii. XML & EDI iii. DSN iv. DDLC
(c) Why was the concept of inheritance introduced in object oriented programming 2
Languages? Write the Syntax and its body key points.
(d) Given the following code fragment: Rewrite the code using do-while. 2
int i = 100 ;
while ( i > 0 )
System. out. println ( i - - ) ;
System. out. println ( “Thank You” ) ;
(e) Identify and rectify errors in the following public abstract void Cook(); 2
code fragment: }
public class Cake extends Eatable
public abstract class Eatable{ {
private String name; public Cake (String n) {
public String getName(){ name=n; }
return name; } public void Cook(int qty){
public void setName(String nm) int time=qty/4;
{ System.out.println(“Back for ” +
name=nm; } time + minits);} }
Class-12 Subject-Informatics Practices (Code-065) Page(2)
Section – B
Q4. Answer the following questions
Read the following case study and answer the questions that follow :
A programmer is required to develop a student record. The school offers two different streams,
medical and non-medical, with different grading criteria.
The following is the data entry screen used to calculate percentage and grade.

The list of controls for the above frame is as follows :


Control Type Control Name Description
jFrame FrameStudRec The main Frame
jText Field txtFirstTerm To enter first term marks
txtSecondTerm To enter second term marks
txtPercentage To display the percentage
txtGrade To display the grade
jRadioButton optMedical To provide the Medical Stream
optNonmedical To provide the Non-Medical Stream
jButton(Ok) cmdCalcPerc To calculate Percentage
cmdCalcGrade To calculate Grade
cmdClear To clear all Text Fields
cmdExit To Exit from the Application
(a) Write the code for the From Window Activate event of FrameStudRec so as to disable the 1
txtPercentage and the txtGrade text fields.
(b) Write the code for the cmdClear button to clear all the text fields. 1
(c) Write the code for the cmdCalcPerc button to calculate the percentage to display in text 2
field txtPercentage, after finding the total marks of first term and second term (assuming
that both marks are out of 100).
(d) Write the code for the cmdCalcGrade button to calculate the grade to display in text field 3
txtGrade, depending on the stream selected according to the criteria in the following table:
Stream Percentage Grade
Medical > = 80 A
60 – 80 B
< 60 C
Non Medical > = 75 A
50 – 75 B
< 50 C
(e) Write Factorial () function and pass an integer number as a argument and 3
return a factorial of passed number by using recursion method.

Class-12 Subject-Informatics Practices (Code-065) Page(3)


Q5. Answer the following questions
(a) A Class Telcall calculates the monthly phone bill of a consumer. Some of the members of 4
the class are given below:

Phone Number Name Total Calls Amount


01562256755 KVCHURU 97 500
(b) Read the code carefully and state that what happen when below code will execute. 4
i). ii).
public class AQuestion { public static void main(String []
public void method(StringBuffer sb) args)
{ System.out.println(sb + "String {
Buffer Version"); } if("String ".trim()=="String")
public void method(String s) System.out.println("Equal");
{ else
System.out.println(s+" String System.out.println(" NotEqual");
Version");} StringBuffer sb=new
public static void main(String [] args) StringBuffer("String");
{ if(sb.toString()=="String")
AQuestion ob= new AQuestion(); System.out.println("Equal");
ob.method(null); else
}} System.out.println("Not Equal");
}
(c) Name the class that provide an easy and convenient way to display standard dialogs for 2
posting a information, asking a question or prompting for simple user input. How can import
it in your program/ application?

Class-12 Subject-Informatics Practices (Code-065) Page(4)


Section – C
Q6. Answer the following questions
(a) What is Package? Explain various built-in packages of Java. 2
(b) What is Interface? Write syntax of Interface and implementation of Interface. 2

(c) What happen when student program execute and justify your answer : 2
public final class NewClass {
public final int xyz=200;
public float amt=20.90f;
public abstract int method(int a, int b){
return (a+b); } }
public class Test extends NewClass{
void getData()
{ xyz=210;
amt=23.90f; }
public int method(int x)
{ return (x*100);
}}
(d) A class Employee contains employee details and another class Salary calculates the 4
employee’s net salary.
The details of the two classes are given below:

Specify the class Employee giving details of the constructors and member function void
Display (). Using the concept of inheritance specifies the class Salary giving details of
constructor and the member function void calculate (). The main function needs to be
written.

Class-12 Subject-Informatics Practices (Code-065) Page(5)


Q7 Answer the following questions
Write a SQL commands for table FURNITURE
Table: FURNITURE
ITEMNO ITEMNAME TYPE DATEOFSTOCK PRICE DISCOUNT
INT VARCHAR VARCHAR DATE INT INT
5 20 20 - 6 2
Primary Key Not Null Reference to Default ’10-03-10’ Price < 40,000 Not Null
TYPE column
of item table
a). Write a MYSQL Command to create a furniture table including all 2
constraints.
b). On the FURNITURE table, ITEMNO is the primary key. TYPE is the ITEM 2
type of furniture and refers to the TYPE column of ITEM Table. The
DISCOUNT is a NOT NULL column.
Evaluate this DELETE statement:
DELETE ITEMNO, TYPE, DISCOUNT FROM FURNITURE WHERE
ITEMNAME=‘CHAIR’;
Why does the DELETE statement fail when you execute it?
c). Write a MYSQL quarry to Calculate the discount from the specified
2
percentage and PRICE column.
d). EMPNO ENAME GENDER DEPTNO COMM SALARY
101 RAJINDRA M 10 120 3488.90
102 SUMITRA F 10 200 2490.32
103 PANJWANI F 20 3053.15
104 ANIL KUMAR M 30 00 4501.89
2
Find the output of the following commands:-
i. SELECT SUBSTR(ENAME,1,5), COMM FROM EMPLOYEE WHERE COMM IS
NOT NULL;
ii. SELECT EMPNO, ENAME, SALARY, IFNULL(COMM , ‘Zero’ ) “ COMMISSION”
FROM EMPLOYEE WHERE ENAME LIKE ‘---J%’;
e). Write the MySQL command to remove a GENDER column from Employee table 2

Class-12 Subject-Informatics Practices (Code-065) Page(6)

You might also like