MCQOPTIONS
Saved Bookmarks
This section includes 657 Mcqs, each offering curated multiple-choice questions to sharpen your Testing Subject knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
JsonReader and JsonWriter read/write the data as token, referred as? |
| A. | Token |
| B. | JsonToken |
| C. | GsonToken |
| D. | Jtoken |
| Answer» C. GsonToken | |
| 2. |
Tree Model prepares an in-memory tree representation of the JSON document. |
| A. | Yes |
| B. | No |
| C. | Can be yes or no |
| D. | Can not say |
| Answer» B. No | |
| 3. |
Converts JSON to and from Java Maps, Lists, Strings, Numbers, Booleans, and NULL objects known as ? |
| A. | Objects Data Binding |
| B. | Data Binding |
| C. | Primitives Data Binding |
| D. | None of the above |
| Answer» D. None of the above | |
| 4. |
How many types of Data Binding API ? |
| A. | 1 |
| B. | 2 |
| C. | 3 |
| D. | 4 |
| Answer» C. 3 | |
| 5. |
Which is used to constructs a Gson object with default configuration? |
| A. | Ggson() |
| B. | JGSON() |
| C. | Gson() |
| D. | Json() |
| Answer» D. Json() | |
| 6. |
Which of the following prepares an in-memory tree representation of the JSON document? |
| A. | Streaming API |
| B. | Tree Model |
| C. | Data Binding |
| D. | All of the above |
| Answer» C. Data Binding | |
| 7. |
Which of the following are features of gson? |
| A. | Gson API provides a high-level facade to simplify commonly used use-cases |
| B. | Gson API provides default mapping for most of the objects to be serialized |
| C. | Gson creates a clean and compact JSON result which is easy to read |
| D. | All of the above |
| Answer» E. | |
| 8. |
Google Gson provides extensive support for generics? |
| A. | Yes |
| B. | No |
| C. | Can be yes or no |
| D. | Can not say |
| Answer» B. No | |
| 9. |
Google Gson is an? |
| A. | Open source |
| B. | Java-based library |
| C. | Reliable and fast |
| D. | All of the above |
| Answer» E. | |
| 10. |
Throwables class provides utility methods related to Throwable interface. |
| A. | TRUE |
| B. | FALSE |
| C. | Can be true or false |
| D. | Can not say |
| E. | |
| Answer» B. FALSE | |
| 11. |
Objects class provides helper functions applicable to all objects such as equals, hashCode, etc. |
| A. | Yes |
| B. | No |
| C. | Can be yes or no |
| D. | Can not say |
| Answer» B. No | |
| 12. |
Which of the following returns true if this range has a lower endpoint? |
| A. | hashCode |
| B. | hasLowerBound |
| C. | hasUpperBound |
| D. | hasBound |
| Answer» C. hasUpperBound | |
| 13. |
Range represents? |
| A. | interval |
| B. | sequence |
| C. | random |
| D. | Both A and B |
| Answer» E. | |
| 14. |
abstract int compare(T left, T right) is used to? |
| A. | Searches sortedList for key |
| B. | Returns an arbitrary ordering |
| C. | Compares its two arguments for order. |
| D. | Returns an ordering which first uses the ordering |
| Answer» D. Returns an ordering which first uses the ordering | |
| 15. |
Which method Ensures that index specifies a valid position in an array, list or a string of size? |
| A. | static int checkPositionIndex(int index, int size, String desc) |
| B. | static int checkPositionIndex(int index, int size) |
| C. | static void checkPositionIndexes(int start, int end, int size) |
| D. | static void checkState(boolean expression) |
| Answer» C. static void checkPositionIndexes(int start, int end, int size) | |
| 16. |
Which of the following returns an Optional instance with no contained reference? |
| A. | abstract <T> Optional<T> absent() |
| B. | boolean <T> Optional<T> absent() |
| C. | static <T> Optional<T> absent() |
| D. | abstract T get() |
| Answer» D. abstract T get() | |
| 17. |
Guava provides many utility classes which are regularly required in programming application development? |
| A. | Yes |
| B. | No |
| C. | Can be yes or no |
| D. | Can not say |
| Answer» B. No | |
| 18. |
Guava is? |
| A. | open source |
| B. | java-based library |
| C. | reliable and fast |
| D. | All of the above |
| Answer» E. | |
| 19. |
Guava developed by? |
| A. | |
| B. | |
| C. | IBM |
| D. | Microsoft |
| Answer» C. IBM | |