Home > Object Oriented Programming > Quizzes > Object Oriented Programming Practice Test: Inbuilt Classes
Object Oriented Programming Practice Test: Inbuilt Classes
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 85% Most missed: “Which class among the following makes incorrect assumptions?”
Quiz questions on inbuilt classes, IO and string class. In object-oriented programming (OOP), a class is a blueprint for creating objects. Inbuilt classes are classes that are already provided in a programming language for use. These classes provide some functions or objects that can be used by the programmer for easier code.  Here are some examples of classes in OOP: Student class: A class that has fields such as name, id, sec, and student_count. Racing game: A game that has multiple bike and car models. Each model has common properties, such as color and number of wheels.  In Python,... Show more
Object Oriented Programming Practice Test: Inbuilt Classes
Time left 00:00
25 Questions

1. File class is ____________________________
2. Which is not a System class variable?
3. Which is a true statement for object of String class?
4. DataInputStream is derived from ______________________
5. Which among the following class contains the methods to access character based console device?
6. What does function length do in String class?
7. Which function should be used to exit from the program that is provided by System class?
8. The function lastIndexOf() is used to ___________________
9. Which class among the following makes incorrect assumptions?
10. What is the InputStream class meant for?
11. PushBackReader allows the streams to be pushed back to the stream.
12. Which class can handle IO class interrupt?
13. IO class provides input and output through ______________________
14. Which statement is true for the Array class?
15. Which exception handler can be used when character encoding is not supported?
16. Which package contains the utility classes?
17. Which among the following is a serialization descriptor for any class?
18. The string class deals with string of only character type.
19. String class provides function toUpper() to _____________________
20. The compareTo() function is used to ________________
21. What doesn’t inbuilt classes contain?
22. StringReader handles _____________________
23. What is a FileDescriptor?
24. If two arguments are passed to the indexOf() function then ___________________
25. Function equals() is _______________ and equalIgnoreCase() is _________________