MCQOPTIONS
Saved Bookmarks
This section includes 104 Mcqs, each offering curated multiple-choice questions to sharpen your Data Mining knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
In Java, Is null an object |
| A. | Yes |
| B. | No |
| C. | Sometimes Yes |
| D. | None of the above |
| Answer» C. Sometimes Yes | |
| 2. |
Which of the following component is not used to act as a input/output stream in Java |
| A. | file |
| B. | class |
| C. | a pipe |
| D. | array of bytes |
| Answer» C. a pipe | |
| 3. |
What is the immediate super class of Applet Class |
| A. | Object |
| B. | Window |
| C. | Panel |
| D. | Component |
| Answer» D. Component | |
| 4. |
In Javascript each window object has sub-object, which called |
| A. | Features |
| B. | Properties |
| C. | Characteristics |
| D. | Qualifiers |
| Answer» C. Characteristics | |
| 5. |
Default value of priority variable MIN_PRIORITY |
| A. | 1 |
| B. | 10 |
| C. | 100 |
| D. | 1000 |
| Answer» B. 10 | |
| 6. |
In Java Garbage collector frees the programmer from worrying about |
| A. | Memory issues |
| B. | dangling references |
| C. | creating new objects |
| D. | recursion |
| Answer» C. creating new objects | |
| 7. |
Which of the following statements will result in compilation error in Java |
| A. | signed int abc; |
| B. | unsigned int abc; |
| C. | signed byte abc; |
| D. | All of the above |
| Answer» E. | |
| 8. |
Which of the following does not have a superclass in Java |
| A. | System |
| B. | Object |
| C. | Lang |
| D. | Exception |
| Answer» D. Exception | |
| 9. |
Which one is not a keyword in Java |
| A. | Private |
| B. | Throw |
| C. | Void |
| D. | Run |
| Answer» E. | |
| 10. |
Which of the following operator in Java have context dependent meaning |
| A. | + |
| B. | ++ |
| C. | & |
| D. | All of the above |
| Answer» E. | |
| 11. |
Which operator is used to allocate memory to array variable in Java |
| A. | calloc |
| B. | new |
| C. | malloc |
| D. | None of above |
| Answer» C. malloc | |
| 12. |
Output of relational operators is |
| A. | Short |
| B. | Integer |
| C. | Boolean |
| D. | All of above |
| Answer» D. All of above | |
| 13. |
How many reserved keywords are currently defined in the Java language |
| A. | 32 |
| B. | 39 |
| C. | 45 |
| D. | 50 |
| Answer» E. | |
| 14. |
__ method is called only once during the run time of your applet |
| A. | init() |
| B. | start() |
| C. | stop() |
| D. | destroy() |
| Answer» B. start() | |
| 15. |
Which of the following is true “An applet can play an audio file represented by the AudioClip interface in the java, applet package Causes the audio clip to replay continually for__†|
| A. | public void stop() |
| B. | public void play() |
| C. | public void loop() |
| D. | Both A and B |
| Answer» D. Both A and B | |
| 16. |
SecurityException is for |
| A. | Caused when there's not enough memory to allocate a new object |
| B. | Caused when an applet tries to perform an action not allowed by the browser's security setting |
| C. | Caused when the system runs out of stack space |
| D. | Caused by referencing a null object |
| Answer» C. Caused when the system runs out of stack space | |
| 17. |
An exception is a condition that is caused by a __ error in the program |
| A. | Compile |
| B. | Execution |
| C. | Runtime |
| D. | Syntax |
| Answer» D. Syntax | |
| 18. |
Dividing an integer by zero is a __error |
| A. | Compile |
| B. | Syntax |
| C. | Runtime |
| D. | Logic |
| Answer» D. Logic | |
| 19. |
Default value of priority variable MAX_PRIORITY |
| A. | 5 |
| B. | 10 |
| C. | 50 |
| D. | 100 |
| Answer» C. 50 | |
| 20. |
__ method is used to find out that a thread is still running or no |
| A. | Alive() |
| B. | CheckRun() |
| C. | isAlive() |
| D. | Run() |
| Answer» D. Run() | |
| 21. |
Dead state can be compared with __ method of applets |
| A. | stop() |
| B. | paint() |
| C. | destroy() |
| D. | init() |
| Answer» D. init() | |
| 22. |
__ package is classes for networking |
| A. | java.io |
| B. | java.net |
| C. | java.awt |
| D. | java.applet |
| Answer» C. java.awt | |
| 23. |
Which are true |
| A. | An interface can sub interfaced from other interface |
| B. | Interface support extending |
| C. | Interface can’t support extending |
| D. | Both A and B |
| Answer» E. | |
| 24. |
__ gives the number of objects present |
| A. | list.size() |
| B. | list.copyInto(array) |
| C. | list.removeElement(item) |
| D. | Both A and B |
| Answer» B. list.copyInto(array) | |
| 25. |
__ method is used to convert primitive numbers to object numbers in wrapper classes |
| A. | String() Method |
| B. | Constructor Methods |
| C. | Parsing Method |
| D. | None of the above |
| Answer» C. Parsing Method | |
| 26. |
We can use__ to convert primitive data types to wrapper class types automatically |
| A. | Auto boxing |
| B. | Unboxing |
| C. | Annotations |
| D. | Both A and B |
| Answer» E. | |
| 27. |
Which of the following is false |
| A. | It is convenient to use vectors to store objects |
| B. | Vector can be used to store a list of objects that may vary in size |
| C. | Vector ia a StringBuffer |
| D. | We can add and delete objects from the list as and when required |
| Answer» D. We can add and delete objects from the list as and when required | |
| 28. |
Which of the following is not a wrapper class |
| A. | Integer |
| B. | Byte |
| C. | Random |
| D. | Short |
| Answer» B. Byte | |
| 29. |
Which one of the following is false |
| A. | type arrayname[]; |
| B. | arrayname [] type; |
| C. | type [] arrayname; |
| D. | None of the above |
| Answer» C. type [] arrayname; | |
| 30. |
__ is a group of related data items that share a common name with same data type |
| A. | String |
| B. | Array |
| C. | Parameter |
| D. | Arguments |
| Answer» C. Parameter | |
| 31. |
__ is a process of hiding the implementation details and showing only functionality to the user |
| A. | Abstract |
| B. | Network |
| C. | System |
| D. | Anonymous |
| Answer» B. Network | |
| 32. |
__ classes cannot be instantiated |
| A. | String |
| B. | Mutable |
| C. | Wrapper |
| D. | Abstract |
| Answer» E. | |
| 33. |
A class that cannot be subclassed is called a __ |
| A. | Parent class |
| B. | Child class |
| C. | Revised class |
| D. | Final class |
| Answer» E. | |
| 34. |
When more than one child classes have the same parent class then it is called as |
| A. | Single inheritance |
| B. | Multilevel inheritance |
| C. | Class inheritance |
| D. | Hierarchical inheritance |
| Answer» E. | |
| 35. |
When a class extends a class, which extends another class then this is called __ inheritance |
| A. | Single level |
| B. | Two level |
| C. | Multi level |
| D. | Many level |
| Answer» D. Many level | |
| 36. |
In inheritance, the old class is known as |
| A. | Start class |
| B. | Base class |
| C. | Derived class |
| D. | Sub class |
| Answer» C. Derived class | |
| 37. |
Base class is also known as |
| A. | Super class |
| B. | Child class |
| C. | Sub class |
| D. | Derived class |
| Answer» B. Child class | |
| 38. |
Which one of the followings is false for static method |
| A. | They can only call other static methods |
| B. | They can only access static data |
| C. | They can only access static data |
| D. | They can only access dynamic data |
| Answer» E. | |
| 39. |
Polymorphism that is resolved during compiler time is known as |
| A. | Dynamic polymorphism |
| B. | Static polymorphism |
| C. | Special Polymorphism |
| D. | None of the above |
| Answer» C. Special Polymorphism | |
| 40. |
When reference variable of Parent class refers to the object of Child class, then it is known as |
| A. | Side casting |
| B. | Upcasting |
| C. | Top casting |
| D. | Downcasting |
| Answer» C. Top casting | |
| 41. |
Runtime polymorphism is also known as __ |
| A. | Static binding |
| B. | Early binding |
| C. | Dynamic method dispatch |
| D. | Method overloading |
| Answer» D. Method overloading | |
| 42. |
Polymorphism in Java is of two tytpes, namely __ and __ |
| A. | Static type, Dynamic type |
| B. | Start time, End time |
| C. | Run time, Compile time |
| D. | Variable type, Static type |
| Answer» D. Variable type, Static type | |
| 43. |
Method __ has same name but different parameter list and different definition |
| A. | Binding |
| B. | Overriding |
| C. | Overloading |
| D. | Polymorphism |
| Answer» D. Polymorphism | |
| 44. |
Constructors have the same name as the __ |
| A. | Class |
| B. | Int |
| C. | Void |
| D. | String |
| Answer» B. Int | |
| 45. |
Which one enables an object to initialize itself when it is created |
| A. | Validator |
| B. | Arguments |
| C. | Parameters |
| D. | Constructor |
| Answer» E. | |
| 46. |
Header should always be declared independently separated by |
| A. | Dot |
| B. | Slash |
| C. | Commas |
| D. | Pipe |
| Answer» D. Pipe | |
| 47. |
In Java, the functions are called |
| A. | Fields |
| B. | Methods |
| C. | Operator |
| D. | Class |
| Answer» C. Operator | |
| 48. |
__ leaves a loop, __ jumps to the next iteration |
| A. | break,continue |
| B. | continue,break |
| C. | switch,break |
| D. | break,switch |
| Answer» B. continue,break | |
| 49. |
Which one jump statement is not supported in Java |
| A. | Else |
| B. | Break |
| C. | Return |
| D. | Continue |
| Answer» B. Break | |
| 50. |
Case and break are used in __ |
| A. | Jump |
| B. | if-else |
| C. | nested-if |
| D. | Switch |
| Answer» E. | |