Read and download free pdf of CBSE Class 12 Informatics Practices Commonly Used Libraries Worksheet. Students and teachers of Class 12 Informatics Practices can get free printable Worksheets for Class 12 Informatics Practices Commonly Used Libraries in PDF format prepared as per the latest syllabus and examination pattern in your schools. Class 12 students should practice questions and answers given here for Informatics Practices in Class 12 which will help them to improve your knowledge of all important chapters and its topics. Students should also download free pdf of Class 12 Informatics Practices Worksheets prepared by teachers as per the latest Informatics Practices books and syllabus issued this academic year and solve important problems with solutions on daily basis to get more score in school exams and tests
Worksheet for Class 12 Informatics Practices Commonly Used Libraries
Class 12 Informatics Practices students should refer to the following printable worksheet in Pdf for Commonly Used Libraries in Class 12. This test paper with questions and answers for Class 12 will be very useful for exams and help you to score good marks
Class 12 Informatics Practices Worksheet for Commonly Used Libraries
CHAPTER 6: COMMONLY USED LIBRARIES
Libraries: It is a set of ready-made software routines that can be reused in new programs. Libraries are made available in a program using import statement e.g. import java.io.*; String Library: It is a part of java language library java.lang, which is by default imported to the program. There are 3 classes to work with characters:
(i) Character Class whose instances can hold single character data.
(ii) String Class whose instances can hold unchanging string. Every time we change, a new object is created automatically.
String s = “Excellent” ; or String s = new String(“Excellent”);
(iii) StringBuffer Class whose instances can hold mutable strings.
StringBuffer sb = new StringBuffer(); or StringBuffer sb = new StringBuffer(“First”); or
StringBuffer sb = new StringBuffer(10); // to hold 10 characters
String s = "crack", r = "rack";
Additional stringBuffer Methods:
Method Prototype | Description |
append(x) reverse() | Adds x char at the end. sb.append(r); =>> artscience sb.reverse(); =>> ecneicstra |
Math Functions: It is found in Math library and used as Math.sqrt(a*a + b*c)
Function | Action | Function | Action | Function | Action |
pow(x,y) | Xy | ceil(x) | Round up | floor(x) | Round down |
sqrt(x) | Root | abs(a) | Absolute | max(a,b), min(a,b) | Max, min |
round(x): Rounds off a number to its nearest integer. It argument is double then it returns long and for float it returns int. If the argument is NaN, then the result is zero. Round(-4.5) is -4. Round(4.5) is 5. (NaN means Not a Number).
Sample Questions:
1. What will be display in a jTextField1 after executing the following code?
int m= 16; m=m+1;
if (m<15) jTextField. setText(Integer.toString(m)); else
jTextField1.setText(Integer.toString(m+15));
2. What does round() return if a negative float value is passed to it?
3. Write code to display IP 12 CBSE in a dialog box (JOptionPane).
4. What will be the output of the following code: (i) Math.round(1.5) (ii) “Welcome”.toUpperCase().
5. What will be the value X1 after the execution of the following code ?
String X1= "Graduate" ,X2="Post" ; X1=X2. concat (X1) ;
CBSE Class 12 Informatics Practices Data Handling using Pandas Worksheet |
CBSE Class 12 Informatics Practices Societal Impacts Worksheet |
Worksheet for CBSE Informatics Practices Class 12 Commonly Used Libraries
We hope students liked the above worksheet for Commonly Used Libraries designed as per the latest syllabus for Class 12 Informatics Practices released by CBSE. Students of Class 12 should download in Pdf format and practice the questions and solutions given in the above worksheet for Class 12 Informatics Practices on a daily basis. All the latest worksheets with answers have been developed for Informatics Practices by referring to the most important and regularly asked topics that the students should learn and practice to get better scores in their class tests and examinations. Expert teachers of studiestoday have referred to the NCERT book for Class 12 Informatics Practices to develop the Informatics Practices Class 12 worksheet. After solving the questions given in the worksheet which have been developed as per the latest course books also refer to the NCERT solutions for Class 12 Informatics Practices designed by our teachers. We have also provided a lot of MCQ questions for Class 12 Informatics Practices in the worksheet so that you can solve questions relating to all topics given in each chapter.
You can download the CBSE Printable worksheets for Class 12 Informatics Practices Commonly Used Libraries for latest session from StudiesToday.com
There is no charge for the Printable worksheets for Class 12 CBSE Informatics Practices Commonly Used Libraries you can download everything free
Yes, studiestoday.com provides all latest NCERT Commonly Used Libraries Class 12 Informatics Practices test sheets with answers based on the latest books for the current academic session
CBSE Class 12 Informatics Practices Commonly Used Libraries worksheets cover all topics as per the latest syllabus for current academic year.
Regular practice with Class 12 Informatics Practices worksheets can help you understand all concepts better, you can identify weak areas, and improve your speed and accuracy.