CBSE Class 12 Informatics Practices Worksheet - Informatics Practices
Chapter wise assignments are being given by teachers to students to make them understand the chapter concepts. Its extremely critical for all CBSE students to practice all assignments which will help them in gaining better marks in examinations. All assignments available for free download on the website are developed by the best teachers having many years of teaching experience in CBSE schools all over the country. Students, teachers and parents are advised to download the CBSE study material.
1. Differentiate between:
a. JTextField and JPasswordField b. JButton and JFrame c. JCheckBox and JRadioButton
d. JComboBox and JListBox e. JTextField and JTextArea f. JLabel and JTextField
2. Explain the use of following functions of Java:
a. Integer.parseInt() b. Integer.toString() c. Math.round()
d. Math.pow() e. length() f. Byte.parseByte()
g. substring() h. concat() i. toLowerCase()
j. JOptionPane.showMessageDialog() k. next() l. DriverManager.getConnection()
3. Write any two common properties and two common methods among following:
a. JTextField and JTextArea b. JCheckBox and JRadioButton c. JComboBox and JListBox
4. Write Java function named tenfolds() that takes a number as parameter and returns its tenth part.
5. Write statements to import packages for following:
a. for database connectivity through JDBC. b. to use JOptionPane dialog box.
6. Consider the following GUI:
If bill amount is greater than 10000 then discount is calculated as follows:
i. Write code to make txtNameofCustomer and txtBillAmount uneditable.
ii. Write code for stop button to close the application.
iii. Write code for Calculate Discount button to calculate discount and net amount
Please click the below link to access CBSE Class 12 Informatics Practices Worksheet - Informatics Practices