

MCQOPTIONS
Saved Bookmarks
This section includes 25 Mcqs, each offering curated multiple-choice questions to sharpen your Java knowledge and support exam preparation. Choose a topic below to get started.
1. |
__________ tools is used to generate proxy objects in Java to easily work with the objects. |
A. | Lucene |
B. | kafka |
C. | MapReduce |
D. | Avro |
Answer» E. | |
2. |
Which of the following works well with Avro? |
A. | Lucene |
B. | kafka |
C. | MapReduce |
D. | None of the mentioned |
Answer» D. None of the mentioned | |
3. |
The ________ method in the ModelCountReducer class “reduces” the values the mapper collects into a derived value. |
A. | count |
B. | add |
C. | reduce |
D. | all of the mentioned |
Answer» D. all of the mentioned | |
4. |
Avro schemas describe the format of the message and are defined using ______________ |
A. | JSON |
B. | XML |
C. | JS |
D. | All of the mentioned |
Answer» B. XML | |
5. |
Apache _______ is a serialization framework that produces data in a compact binary format. |
A. | Oozie |
B. | Impala |
C. | kafka |
D. | Avro |
Answer» E. | |
6. |
Serializaed object can be transferred via network. |
A. | True |
B. | False |
Answer» B. False | |
7. |
Which of the following methods is not used while Serialization and DeSerialization? |
A. | readObject() |
B. | readExternal() |
C. | readWriteObject() |
D. | writeObject() |
Answer» D. writeObject() | |
8. |
Which of the following methods is used to avoid serialization of new class whose super class already implements Serialization? |
A. | writeObject() |
B. | readWriteObject() |
C. | writeReadObject() |
D. | unSerializaedObject() |
Answer» B. readWriteObject() | |
9. |
Default Serialization process cannot be overridden. |
A. | True |
B. | False |
Answer» C. | |
10. |
If member does not implement serialization, which exception would be thrown? |
A. | RuntimeException |
B. | SerializableException |
C. | NotSerializableException |
D. | UnSerializedException |
Answer» D. UnSerializedException | |
11. |
What type of members are not serialized? |
A. | Private |
B. | Protected |
C. | Static |
D. | Throwable |
Answer» D. Throwable | |
12. |
How many methods Serializable has? |
A. | 1 |
B. | 2 |
C. | 3 |
D. | 0 |
Answer» E. | |
13. |
What is deserialization? |
A. | Turning object in memory into stream of bytes |
B. | Turning stream of bytes into an object in memory |
C. | Turning object in memory into stream of bits |
D. | Turning stream of bits into an object in memory |
Answer» C. Turning object in memory into stream of bits | |
14. |
How an object can become serializable? |
A. | If a class implements java.io.Serializable class |
B. | If a class or any superclass implements java.io.Serializable interface |
C. | Any object is serializable |
D. | No object is serializable |
Answer» C. Any object is serializable | |
15. |
___________TOOLS_IS_USED_TO_GENERATE_PROXY_OBJECTS_IN_JAVA_TO_EASILY_WORK_WITH_THE_OBJECTS.?$ |
A. | Lucene |
B. | kafka |
C. | MapReduce |
D. | Avro |
Answer» E. | |
16. |
SERIALIZAED_OBJECT_CAN_BE_TRANSFERRED_VIA_NETWORK.?$ |
A. | True |
B. | False |
Answer» B. False | |
17. |
-7?$ |
A. | Hello |
B. | 2.1E10 |
C. | deserialization |
Answer» C. deserialization | |
18. |
Which of the following works well with Avro ? |
A. | Lucene |
B. | kafka |
C. | MapReduce |
D. | None of the mentioned |
Answer» D. None of the mentioned | |
19. |
The ________ method in the ModelCountReducer class “reduces” the values the mapper collects into a derived value$ |
A. | count |
B. | add |
C. | reduce |
D. | all of the mentioned |
Answer» D. all of the mentioned | |
20. |
____________ class accepts the values that the ModelCountMapper object has collected. |
A. | AvroReducer |
B. | Mapper |
C. | AvroMapper |
D. | None of the mentioned |
Answer» B. Mapper | |
21. |
The ____________ class extends and implements several Hadoop-supplied interfaces. |
A. | AvroReducer |
B. | Mapper |
C. | AvroMapper |
D. | None of the mentioned |
Answer» D. None of the mentioned | |
22. |
The ____________ is an iterator which reads through the file and returns objects using the next() method. |
A. | DatReader |
B. | DatumReader |
C. | DatumRead |
D. | None of the mentioned |
Answer» C. DatumRead | |
23. |
Avro schemas describe the format of the message and are defined using : |
A. | JSON |
B. | XML |
C. | JS |
D. | All of the mentioned |
Answer» B. XML | |
24. |
What is serialization? |
A. | Turning object in memory into stream of bytes |
B. | Turning stream of bytes into an object in memory |
C. | Turning object in memory into stream of bits |
D. | Turning stream of bits into an object in memory |
Answer» B. Turning stream of bytes into an object in memory | |
25. |
Which of these process occur automatically by the java runtime system? |
A. | Serialization |
B. | Garbage collection |
C. | File Filtering |
D. | All of the mentioned |
Answer» B. Garbage collection | |