Application based QUESTIONS for JAVA

Similar documents
SAMPLE PAPER Class XII Subject INFORMATICS PRACTICES. TIME: 3Hrs. M.M. 70

Downloaded from

Q2. What will be displayed in jtextfield1 and jtextfield2 after the following code is executed:

INDIAN LEARNERS OWN ACADEMY, KUWAIT Informatics Practices XII Holiday Homework. b. What is the importance of abstract classes in programming?

Downloaded from Set :B SECTION A

15 Create a Java GUI application which has the following interface as shown below:

Mr. Bansal accepts payment through three types of credit cards. The discount is given according to the following scheme:

IMPORTANT JAVA APPLICATION

UNIT IV (IT APPLICATIONS) (From this unit: 3 Questions - 5 Marks)

INFORMATICS PRACTICES

Guru Gobind Singh Public School Sector V,B Bokaro Steel City Annual IP Assignment Class 11

1. Wap in JAVA to accept two values and calculate highest value and lowest value.

Downloaded from

Class - XII English. Hindi

P>80 A P>70 && P<80 B P<70 C 12. Calculate employee salary according to following condition

II- Pre Board Examination SET A

APEEJAY SCHOOL SAKET First Term Examination Class - XII (Commerce) INFORMATICS PRACTICES(Code 065)

KENDRIYA VIDYALAYA SANGATHAN BLUE PRINT INFORMATICS PRACTICES CLASS XII TOPICS SA(1) SA(2) LA(6) TOTAL

TIME : 3 Hrs MAX. MARKS : 70 SET 1

Informatics Practices - Assignments. A Practical Workbook

XII INFORMATICS PRACTICES CBSE Board 2014

TABLE OF CONTENTS PREFACE... 6 INTENDED AUDIENCE... 6 BEFORE YOU START... 6 I-SKOOL... 7 TECHNICAL SPECIFICATION... 7

Select Avg (Commission) for Sales; Select Count(Sales) from Sales;

Kendriya Vidyalaya Sangathan (Chandigarh Region) Blue Print of Question Paper Class: XI Subject: Informatics Practices Session

KENDRIYA VIDYALAYA SANGATHAN- CHENNAI REGION INFORMATICS PRACTICES REVISION TIME : 3 HOURS MAX MARKS : 70

1 (i) do (ii) Float (iii) salary12 (iv) Product

BLUE PRINT. S.No. Topic Marks 1 Java Programming 30 2 Database concepts 35 3 IT Applications 5

Half Yearly Examination SESSION: CLASS: Scholars 2 Subject :- Informatics Practices (ANSWER KEY) SECTION-A

INFOTECH Computer Education, Kishangarh (Raj) Visit : Page 1

NHS PTSA Self Registration Process

DEHRADUN PUBLIC SCHOOL II-TERM ASSIGNMENT ( ) SUBJECT-INFORMATICS PRACTICES (065) CLASS XI

Cvent Passkey. Group Booking. User Guide v1.0. February 2017

INDIAN SCHOOL MUSCAT FIRST PRELIMINARY EXAMINATION 2017 INFORMATICS PRACTICES

Add New Administrator - This function allows you to add new administrators to the EPP system.

Maharaja Agrasen Model School Sample Paper Subject: Informatics Practices

KENDRIYA VIDYALAYA SANGATHAN CLASS XII EXAMINATION INFORMATICS PRACTICES (065)

Welcome to the Next Level Purchasing Association. Next Level Purchasing is absolutely delighted to have you as a member.

KENDRIYA VIDYALAYA ALIGANJ SHIFT-II HOLIDAY HOMEWORK CLASS-XII INFORMATICS PRACTICES

Downloaded from

SAMPLE PAPER CLASS XII SUBJECT Informatics Practices

Sample Paper 2015 Class XII Subject INFORMATICS PRACTICES

Identifying Slope and y-intercept slope y = mx + b

TAMIL NADU UNIFORMED SERVICES RECRUITMENT BOARD

INDIAN SCHOOL MUSCAT FINAL TERM EXAMINATION INFORMATICS PRACTICES

Time Allowed :3 hours Maximum Marks : 70


13. What is the meaning of Open Source in the term Open Source Database Management. 14. Difference between Proprietary and Open Source Software.

Sample Paper for class XII IP with Answers Prepared by Successbook Group Sub: - Informatics Practices Total Marks :70 Time:3hr

HCF Program Forms Forms Enhancements List. New fields added to the Forms 460, 461, and 462. universalservice.org

WorldPoint ONE Solution V1.06 Upgrade Instructions and Overview of New Features!

Adept Software Online Family Registration

ALEKS. Introduction to Online Ordering. To access the ALEKS online ordering form, begin at the ALEKS home page and then click on the K-12 button.

WEB PAY EMPLOYEE GUIDE

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST PRE-BOARD EXAMINATION

Questions Frequently Asked by Consumers PartyLite Preferred Program Consumer Questions

Patient Registration

MONTHLY TEST (JUNE 2018) CLASS XII INFORMATICS PRACTICES

Q New Features Guide

The Platform ecommerce Functionality

Student WebAdvisor Training Manual

INFORMATICS PRACTICES All questions are compulsory. Answer the questions after carefully reading the text.

1. Answer the following questions: a. Explain Real Time OS.

KENDRIYA VIDYALAYA SANGATHAN CLASS XII BOARD EXAMINATION INFORMATICS PREACITES (065)

PRACTICAL ASSIGNMENTS [LAB WORK] CLASS XII IP

Subject: Computer Science

TABLE OF CONTENTS ACCOUNT REGISTRATION

DEPARTMENT OF HIGHER EDUCATION, HARYANA ONLINE ADMISSIONS

INFORMATICS PRACTICES

WIRELESS DEVICES: ACCEPTABLE USE AND GUIDELINES

The Candidates are advised to be ready with the following mandatory / optional details before filling the Online Application Form.

1-1. Variables and Expressions

National Recreation and Park Association Certified Playground Safety Inspector Course & Exam

All About Catalog. Contents. West Virginia University Information Technology Services. ecommerce End User Advanced Guide

Suggestions and Model Questions for B.Com Part II IT Practical Examination (C21G), 2016 (Information Technology and its Application in Business)

WIRELESS DEVICES: ACCEPTABLE USE AND GUIDELINES

Guru Gobind Singh Public School. Assignment

INDIAN SCHOOL MUSCAT THIRD PRELIMINARY EXAMINATION INFORMATICS PRACTICES

BCSCCS407R01 JAVA PROGRAMMING LABORATORY

SAMPLE PAPER: 2015 Class :XII Subject : Informatics Practices. Time: 3 hrs. M.M. 70. Section A

INFORMATICS PRACTICES (065)

DATA MINING EXAMPLES UltraTax CS

AMS BASICS. IT Department APSACS SECRETARIAT

Selection Control Structure CSC128: FUNDAMENTALS OF COMPUTER PROBLEM SOLVING

8 th Grade - SBAC Review #1 Name:

Frequently Asked Questions. What is the Certificate in Commercial Credit programme?

School Days Off Online Registration Tutorial

FUNCTIONAL SIZE MEASUREMENT USING THE COSMIC METHOD EXAMPLE: ONLINE SHOPPING

Registration form UNISA Online Courses. 1. Personal Details and Academic History Compulsory. 2. Contact Details

SRS How To TABLE OF CONTENTS GENERAL 2

Industrial Technology

S.W.B.A.T: Identify the independent and dependent variable in sentence. Write a function rule for a table and a situation.

COURSE DESIGN DISTANCE LEARNING COURSE. Certified Trainer for Financial Cooperatives (CTFC)

PHPBasket 4 Administrator Documentation

Test Booklet. Subject: MA, Grade: 10 TAKS Grade 10 Math Student name:

Training Opportunities

CAMPUS PORTAL QUICK REFERENCE GUIDE: STUDENT PORTAL

Frequently Asked Questions PartyLite Preferred Program

Legistar Administration Guide

Registration Instructions

CHAPTER 6: Scatter plot, Correlation, and Line of Best Fit

Transcription:

Application based QUESTIONS for JAVA Q1. Write Java Code for the following a) On the Action event of the close button the application gets closed. 1 b) On the Action event of the clear button all the text fields and the check boxes get cleared. 1 c) On Action event of the button Calc Percentage Net percentage of the student is calculated and displayed in the appropriate text filed. Net percentage is same as that of the actual percentage if the student doesn t opts for NCC otherwise 5% is added to actual percentage. 2 d) On Action Event of the button Result, the application checks the eligibility of the students. And display result in the appropriate text field. Minimum percentage for science is 70, for commerce 60 and for humanities 40. Q2. Mr. Amit developed the following GUI application for Calculating Salary. Help him to write coding for the following

i) Calculate Salary as per the following criteria 2 BASIC PAY=BASIC+GRADE PAY DA= 90% OF BASIC PAY Display the DA in its appropriate textfield. ii) HRA should calculated according to the type of city 2 (Chosen from the listbox) Type of City Percentage TYPE-A 30% OF BASIC PAY TYPE-B 20% OF BASIC PAY TYPE-C 10% OF BASIC PAY GROSS=BASICPAY+DA+HRA Professional tax should be assigned as Rs. 300/- for Teaching Staff and Rs. 0/- for Nonteaching tax NET SALARY= GROSS-PROFESSIONAL TAX Display all calculated values in appropriate text fields. iii) Clear button should clear all text fields. 2 Q3. Blue Valley Public School has computerised its registration for class XI students. Given below is the data entry form for same. Control Controls Description

Name Text field jtextfield1 To accept admission number of the student Text field jtextfield2 To accept Name of the student Text field jtextfield3 To display total fee of the student Radio button joptcom To choose Commerce subject Radio button joptarts To choose Arts subject Radio button joptmed To choose Medical subject Radio button joptnonmed To choose Non Medical subject CheckBox jchkbox To enter information whether the computer is opted Button jbutton1 Button jbutton2 To perform the different tasks which are mentioned Button jbutton3 below. Button jbutton4 Answer the following questions using Java NetBeans IDE: (i) On clicking the initial button the jtextfield1 and jtextfield2 should be set as uneditable. (1) (ii) On clicking the Calculate button the Total Fee is calculated on the basis of the following criteria: Stream Fee(Rs.) Commerce 2500 Arts 2000 Medical 2900 Non-Medical 2800 The Total Fee should be displayed in jtextfield3.(3) (iii) If the student has opted for Computers Rs. 200 will be added to the total fee. The modified Total Fee should be displayedin jtextfield3. (1) (iv) On Clicking the End button the application will be closed.(1)

Q4.A cloth show room has announced the following festival discount on the purchase of items based on the total cost of the item purchased. Total Cost Discount (in percentage) Less than 2000 5% 2001 to 5000 25% 5001-10000 35% Above 10000 50% Design a GUI application to input the total cost and the compute and display the amount to be paid by the customer after availing the discount. 1. Write a method called festival_discount ( ) which calculate net amount after discount The method should total cost as a double type parameter. 3 2.Write the code for calculate button click event procedure to call the festival_discount ( ) method 2 3.Write the code for Exit button. 1 Q5. Ms Pragati works at a Recreation Park as a system analyst. She has created the following GUI. When a group arrives at the Recreation Park, the number of people in the group and whether the group wants to enjoy the Water Park or not is entered. Entry fees is < 500 per person. The person can choose to play at Water Park by selecting the checkbox. Rides of Water Park will cost 250 per person. Help her to write code for the following : 3 (i) On the click of command button Calculate, textfield for Entry Fees should display Number of people. Textfield for Total Amount should display sum of Entry Fees and Water Park Charges for all the people in the group. (ii) Write Java code to clear all Textboxes on the click of Clear button. 1

(iii) Write Java code to close the application on the click of Exit button. 1 Q6. Read the following case study and answer the questions that follow : The Shop n Store has developed the following data entry screen for its operations. The store offers three different types of membership discount schemes for its regular customers. Platinum members get a discount of 10% on all their purchases, Gold members get 5% and Silver members get 3% discount. The list of controls for above interface is as follows: Object Type Text Field Radio Buttons Button Object Name ProducTF QtyTF RateTF AmountTF DiscountTF NetTF PlatinumRB GoldRB SilverRB CalcBTN ExitBTN Description To enter name of the product To enter quantity Sold To enter rate per unit To display total amount as quantity *rate To display the discount amount based on membership type To display net amount as amount-discount To Specify the Member Ship Type To Calculate the amount, discount and net amount To Close the Application (i). Write the code to disable the text fields AmountTF, DiscountTF and NetTF. [1] (ii). Write the code for CalcBTN to calculate the amount, discount and net amount as per given [2] descriptions and conditions. (iii).write the code for ExitBTN to close the application, but before the application is closed it should check the net amount and if the net amount > 10,000 the membership of the customer should be upgraded and displayed. For example, if the customer already has Silver membership it should be upgraded Gold membership (similarly from gold to platinum) and he informed of the same using a message box. Q7.Read the following case study and answer the questions that follow : The Shop n Store has developed the following data entry screen for its operations. The store offers three different types of membership discount schemes for its regular customers. Platinum

members get a discount of 10% on all their purchases, Gold members get 5% and Silver members get 3% discount. Marks Grade % > = 90 A++ 80-90 A+ 75-80 A 60-75 B 50-60 C 40-50 D <40 Fail The list of controls for above interface is as follows: (i). Write the code to disable the text fields AmountTF, DiscountTF and NetTF. [1] (ii). Write the code for CalcBTN to calculate the amount, discount and net amount as per given [2] descriptions and conditions (iii).write the code for ExitBTN to close the application, but before the application is closed it [2] should check the net amount and if the net amount > 10,000 the membership of the customer should be upgraded and displayed. For example, if the customer already has Silver membership it should be upgraded Gold membership (similarly from gold to platinum) and he informed of the same using a message box. Q8.Design a GUI application having interface as shown below. 2+2+1=5 (i) The percentage marks are to be entered in the Text field(markstf) and upon clicking at a button(calcbtn), corresponding grade (as per following rules) should be displayed in the label(resultlbl) below command button. Grade Calculator Enter your marks% 82 Calculate Final Grade You get on A+ (ii) Write the code for FocusLost event of texfield markstf to ensure that the user does not enter a negative or zero value. If a negative or a zero value is entered, then the textfield should be made blank and a warning message should be displayed. (iii) If you are asked to add a clear button to the application, what code would your write for it so that the textifield markstf and label resultlbl get cleared when it is clicked?

Q9.Mr. Madhav works in a construction company. To calculate total wages he has developed the following GUI in NetBeans. Male and female labourers are respectively paid Rs. 150/- per day and Rs. 170/- per day. Skilled labourers are paid extra at the rate of Rs. 100/- day. Male and female labourers from rural areas are paid 10% less per day. You may choose any valid name for control name and variable name. Write code to do the following- (i) When Calculate Wage button is clicked, the total wages is calculated as per the given criteria and displayed in total wage text box. [3] (ii) When Clear button is clicked, all the text boxes should be cleared and radio button, check box should be deselected. [1] (iii) Close the application when Quit button is pressed. [1] Q10.Suresh is an employer in Electricity board. He has developed the following GUI to calculate the electricity bill. Slab for units consumed Units Domestic Commercial 0-300 Rs. 2/- per unit Rs. 5/- per unit

>300 Rs. 4/- for units Rs. 10/-per units For eg: if units consumed for domestic purpose is 650 then Upto 300 units :Rs. 600/- Above 300 units: Rs. 1400/- Net Amount: Rs. 2000/- (1) Which method is used to determine whether domestic or commercial radio button is been clicked or not? (1) (2) Write code for the following a) Calculate and display amount upto 300 units, above 300 units and net amount when Calculate button is clicked. (3) b) Clear all the text fields when clear button is clicked (1) c) Close the application when stop button is clicked.(1) ********************************************