In For Matics Practices Question Paper 2011
In For Matics Practices Question Paper 2011
Q.6 How Multi Processing Operating Systems is different from Multi Programming Operating 2
Systems?
Q.9 Paradise Park uses the following interface to generate bill for its customers. 4
When the bill button is clicked the bill is displayed as shown in the interface above. The
functionality is as follows:
Rate for joy ride 1 is 100 and that for Joy ride 2 is 200. A customer can select one or
both the joy rides. The total is calculated as the sum of one or both joy rides cost. A
discount of Rs 50 is given on total if the child is below 12 years.
Write code under the action event of the jButton to achieve the above functionality.
System.out.println(“” + ((a++)+(++c)-(--b)+(d--));
System.out.println(“” + ((a>b)?(c>d)?(++d):35:(--b))); 14
txtRes.setText(“Prime”);
txtRes.setText(“Even”);
else
txtRes.setText(“Not Valid”);
int m=5;
int prod=1;
int i=1;
while(i<=5)
{
8
prod=prod+prod*(m%2);
--m;
++i;
Please Visit www.ncerthelp.com For Video lectures of all subjects Class 9 to 12
Visit www.ncerthelp.com For All NCERT solutions,
} CBSE sample papers, Question papers, Notes for Class 6 to 12
System.out.println(“”+prod);
Q.16 What are the actual and formal parameters? Give example to support your answer. 2
Q.18 Explain two circumstances where run time errors may occur in a java program. 2
a) MySQL Features.
b) Referential Integrity
c) Database Constraints
Q.21 What is NULL? What happens when you perform aruthmatic calculations on NULL 2
value.
Q.22 Enlist the various types queries available with DDL and DML 2
Q.23 Explain the difference between ROUND and TRUNCATE functions in MySQL with
examples.
Singer Text 10
Sample Data:
a) Write SQL syntax to create the table. The table does not support Foreign
Keys.
b) Add a column RATING in the above table containing numeric data and should
accept NULL values.
c) Insert one Row in the table.
d) Increase the cost of all the albums sung by RAFI by 50.
e) Display cost of all those albums whose singer name ends with ‘A’.
f) Display the album details for either RAFI, KISHORE or ASHA
……………………………………………………………………………………………………………………………….
MARKING SCHEME
Q.2 OCR is uased to read character of special type font printed on a conventional paper 1
with conventional ink.It is a input device.
Q.3 In these printers there as no mechanical contact between the print head and paper. 1
1. It is a volatile memory. Its contents are lost when power is turned off.
Q.6 Multiprogramming OS- It supports multiprogramming i.e. more than one user can be 2
supported by it therefore more than one programs are loaded and active in main store
at the same time.
Multiprocessing OS- It is capable of handling more than one processor as the jobs
have to be executed on more than on CPU. It is capable of loadsharing.
int bill=0;
if( chkJr1.isSelected())
bill+=100;
if(chkJr2.isSelected())
bill+=200;
if(age<12)
bill-=50;
Q.10 Java complier produces bytecode, which is a machine instruction code for a java 2
processor chip called Java Virtual machine. This bytecode is platform independent.
Output: 14 8
System.out.println(“” + ((a>b)?35:(--b)));
Output: 9
switch(num)
{ case 2:
case 3:
case 4:
case 5:
txtRes.setText(“Prime”);
break;
case 6:
case 8:
case 10:
txtRes.setText(“Even”);
break;
default:
txtRes.setText(“Not Valid”);
Please Visit www.ncerthelp.com For Video lectures of all subjects Class 9 to 12
Visit www.ncerthelp.com For All NCERT solutions,
} CBSE sample papers, Question papers, Notes for Class 6 to 12
Output:- 4
Q.14 2
Ordinary method Constructer
Can have any valid return type , even has no return typr , not even void
void also.
Any name except class name Same name as the class name
{ return (N1+N2+N3);}
Q.16 Actual parameters are those parameters which appear in method call statement. 2
{ return (x+y);}
int a=12,b=13;
Q.17 Comments provide internal documentation of a program. In Java comments are given 2
either by // or /* ….*/ brackts.
Example-
return (x+y);
}
Please Visit www.ncerthelp.com For Video lectures of all subjects Class 9 to 12
Visit www.ncerthelp.com For All NCERT solutions,
Q.18 1. Divide byCBSE sample
zero error- Whenpapers,
we try toQuestion papers,
divide a number by 0.Notes for Class 6 to 12 2
1. The program should be user friendly.. The user should not concern about what is
happening inside a program.
If any column value involved in an arithmetic expression is NULL, the result of the
arithmetic expression is also NULL.
a. Write SQL syntax to create the table. The table does not support Foreign Keys.
e. Display cost of all those albums whose singer name ends with ‘A’.
Select cost from Sargam where singer like ‘%A’;
a) HARA b) AN