Sunteți pe pagina 1din 3

MAA JINWANI PUBLIC SCHOOL

Periodic Assessment-I (2019)


CLASS XII
SUBJECT: INFORMATICS PRACTICES (265)
Time: 03:00 Hrs. MM: 70
Instructions:
a. All questions are compulsory
b. This question paper contains 7 questions.
c. Answer the questions after carefully reading the question paper.

Section-A

Q.1 (a) Nikhil is transferring songs from his mobile to his friend’s mobile via Bluetooth connection. Name the network 1
(Guided/Unguided) used by Nikhil.
(b) International Tour and Travels company has set up its new branch office in Jaipur where different buildings are 2
spanned over in the radius of 900 meter in Jaipur. Name the network formed in the following situations :
(i) The branch office is connected with the regional office in New Delhi.
(ii) All the buildings of branch office are connected to each other.

(c) (a) What happens to the Network with Star topology if the following happens : 2
(i) One of the computers on the network fails?
(ii) The central hub or switch to which all computers are connected, fails?
(d) Write the purpose of the following devices : 3
(a) Modem
(b) Repeater

(e) Explain two measures that a school should take to ensure security of their computer network. 1

Q.2 (a) Write the value that will be assigned to variable x after executing the following statement : 2
x = 3 + 36/12 + 2*5;
(b) Distinguish between parselnt() and parseDouble() methods. 1

(c) Consider the statement :- fname = “Rishabh”; 2


(1) What is the datatype of fname?
(2) Is 456 the same as “456”? Give reason.

(d) Write the value that will be stored in variable p after execution of following code. How many times will the loop 4
execute?
int y=3, x, p=0;
do
{
p = p + x;
y = y – 1;
}
while (y > 0);
(e) Write a java GUI code to find leap year of given year by the user. 3

Q.3 (a) What is entry control and exit control loop? 1

(b) Observe the following code carefully and find which statement will never get execute in the code: 3
int count = 1;
do
{
if (count<15)
jTextField1.setText(“jump”);
else
jTextField1.setText(“stop”);
count=count+4;
}
while(t<=15);
(c) Define implicit and explicit type conversion with suitable example. 2

(d) What will be displayed in jTextArea1 after executing the following statement? 1
jTextArea1.setText(“INDIA\nINCREDIBLE\tINDIA”);

(e) Write a Java GUI program to find LCM of given number. 5

Section-B

Q.4 (a) What is the significance of a break statement in a switch statement? 2

(b) Rewrite the following code fragment using while loop: 3


int a;
for(a=1; a<=10; a++)
{
jTextfield1.setText(“ ” + a);
}
Section-C

Q.5 (a) Write difference between Radio Button and Check box control. 1

(b) Rewrite the following code using if-else. 2


String tour;
int x= Integer.parseInt(jTextField1.getText());
switch(x)
{
case1: tour=”We are going to Bhopal”;
break;
case2: tour=” We are going to Mumbai”;
break;
case3: tour= “We are going to Delhi”;
break;
default: tour=”The tour has been cancelled”;
}
(c) How many times will the following loop execute: 2
int z =7, sum=0;
do
{
sum=sum+z;
z=z+2;
System.out.println(“ ” +z);
}
while(z<=12);
(d) Write Java code to assign the value 10 to variable x and store its square value in another variable y. 2

(e) Write a Java GUI program to reverse a string. 5

(f) Write a Java GUI program to find Area and circumference of circle. 3

Q.6 (a) Write one similarity and one difference between CHAR and VARCHAR data types. 2

(b) Write the full forms of the following: i. DDL ii. DML 1

(c) Sankalp has typed following code: 3


int ch=nteger.parseInt(jTextField1.getText());
switch(ch)
{

Page 2 of 3
case1: jTextField2.setText(“Accounts”);
case2: : jTextField2.setText(“Economics”);
case1: jTextField2.setText(“IP”);
break;
default: jTextField2.setText(“Invalid entry”);
}

On entering the value 1, 2 or 3 he is getting the same output. Mention the possible reason for the same. Also
rewrite the correct code.
(d) Write a sql command to describe structure of a table named – student. 2

Q.7 (a) Mention any two example of common Database Management System. 1

(b) Write a command to display all the tables of a database named – mjps. 2

(c) Write MySQL command to create the Table ‘LIBRARY’ with given constraints. 4
COLUMN_NAME DATATYPE(SIZE) CONSTRAINT
BookId Int(10) Primary Key
BookName Varchar(40)
Type Char(4)
Author Varchar(40)
No_Copies Int(6)
Price Decimal(8,2)
(d) Ms. Varuna is creating a form for a Sports Club application. Help her to choose most appropriate controls from 2
ListBox, ComboBox, TextField, TextArea, RadioButton, CheckBox, Label and Command Button for the
following entries :
S. No. Function
1 To enter NAME

2 To enter EMAIL ID
3 To allow user to choose MEMBERSHIP DURATION out of 1 Month, 3 Months, 6
Months, 1 year.
4 To choose PRE-EXISTING MEDICAL CONDITIONS out of Diabetes,
Heart Disease, Chest Pain, Shortness of Breath, Epilepsy, Others.

Page 3 of 3

S-ar putea să vă placă și