Ip Sample Paper
Ip Sample Paper
Note:
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:
Number of Computers
(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.
(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.