Documente Academic
Documente Profesional
Documente Cultură
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
(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
(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”);
Section-B
Q.5 (a) Write difference between Radio Button and Check box control. 1
(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
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