You are on page 1of 4

UNIT TEST-MAY 2017

INFORMATICS PRACTICES
Class:XI Duration :1 Hr
Date : 08-05-2017 Max Marks:25
-----------------------------------------------------------------------------------------------------------------------------------
General Instructions:
 All questions are compulsory.
 Answer the questions after carefully reading the text
1. a) Define the term IDE. Give an example for IDE. [2]
b) Write the relation between a project and forms in Netbeans. [1]
c) What is escape sequence? Give two examples? [1½]
d) Differentiate between TextField and Label ? [1]
e) Write the properties to be changed for the following: [1]
(i) The property of the text field to be set to avoid it from editing.
(ii) The property of the form to set for the title of the form.
f) Write one property and one method of label component in NetBeans [1]
Java.
g) The following statement in java has error(s). Rewrite the correct code [1]
underlining all the corrections made :
jTextField1.SetText(‘Hello’);
h) Write Java statements for the following: [1½]
(i) To disable jButton1
(ii) To hide jLabel1
(iii)To lock jTextField1 from editing
2 a) Write statement to display the following message in a message box. [1]

b) Lakshmi works for a school. She wishes to create controls on a form [2]
for the following functions. Choose appropriate controls for the
following:
NO Control used to Purpose
1 Enter Admission Number To read the admission
number of a student.
2 Select Stream To select a stream out of
Science, Commerce and
Humanities.
3 Select Subject To select subjects for each
stream selected.
4 Clear the form To clear the data in the form.

Page 1 of 4
c) Write necessary code for the form given below. The purpose of the [2]
form is to display a message in jLabel2 as given in the sample output
screen. User enters the name in jTextField1.

Screenshot of a sample form before click of Remarks button:

Screenshot of a sample form after click of Remarks button:

d) Design a suitable Account Sign Up Form neatly for google account [2]
with following details on it. Include most appropriate controls for
each.

(i) Name of the account holder


(ii) User Name
(iii) Email Id
(iv) Gender of the account holder.
(v) Nationality of the account holder.
(vi) Hobbies of the account holder (mention 4 hobbies)
(vii) Submit the form.
(viii) Close the form.

Page 2 of 4
3 a) [2]

B
C

Identify the windows in the screenshot of NetBeans IDE marked from


A to D.
b) Ms. Sumaya wants to design an application to create class time [2]
table in Netbeans. Suggest her most suitable peroperty/method of
the controls to be considered.
(i) To clear the check box.
(ii) To set one out of many radio buttons to be chosen.
(iii) To fill the days of week in a list.
(iv) To set the mode to select a continuous range of items in a list.

Page 3 of 4
c) Write the list of controls used in the design of the form given below: [1]

d) Consider the form given below and answer the following questions: [3]

Salary Form

(i) Write java statement to display the details of an employee


given in the form in jTextArea1 on the click event of Details
button.
(ii) Write code to clear the form.
(iii) Write code to exit from the application.

************

Page 4 of 4

You might also like