Logo
우주 별자리
quiz thumbnail
अनुक्रमण
कॉलेज
अन्य

Serialization

Diya

14

प्रीमियम मैप के साथ बनाई गई क्विज़

15 प्रश्न

गलत उत्तर की अनुमति दें

गलत होने पर जवाब दिखाएं

सार्वजनिक क्विज़

# 1बहुविकल्पी
What is the process of converting an object into a stream of bytes called?
Compilation
Serialization
Execution
Deserialization
# 2बहुविकल्पी
When a stream of bytes is converted back into an object, what is this process called?
Serialization
Compilation
Deserialization
Abstraction
# 3बहुविकल्पी
What is the primary purpose of `serialVersionUID` in Java serialization?
To encrypt the serialized data
To compress the serialized data
To store the object's metadata
To identify the version of a class during deserialization
# 4बहुविकल्पी
Which of the following is a major advantage of serialization?
It always makes programs run faster.
It eliminates the need for memory management.
It allows objects to be easily saved to disk and reloaded later.
It automatically fixes bugs in the code.
# 5बहुविकल्पी
If a class does not explicitly define a `serialVersionUID`, what happens?
The Java runtime automatically generates one based on class features.
Serialization will not work for that class.
The class will be compiled with errors.
A default value of 1 is used.
# 6बहुविकल्पी
What is one potential limitation of serialization?
It can only serialize primitive data types.
It requires a constant internet connection.
Serialized objects can be very large and take up a lot of space.
It is too simple to be useful.
# 7बहुविकल्पी
Serialization is often used for which of the following purposes?
To encrypt sensitive user passwords
To automatically generate user interfaces
To send objects across a network
To perform complex mathematical calculations
# 8बहुविकल्पी
When deserializing an object, what must be true about the class definition on the receiving end?
It must be completely different from the original class.
It must be written in a different programming language.
It must have fewer fields than the original class.
It must be compatible with the class used during serialization.
# 9बहुविकल्पी
Which of the following is NOT an advantage of serialization?
Automatic code optimization
Persistence of object state
Inter-process communication
Data transfer
# 10बहुविकल्पी
What does it mean for a class to be 'serializable'?
It can be compiled into machine code.
It can be converted into a byte stream and reconstructed.
It can run on any operating system.
It can automatically connect to the internet.
# 11बहुविकल्पी
If you modify a class that has already been serialized and then try to deserialize it with the old version, what might happen?
The program will crash immediately.
It will always work without issues.
You might get an error, especially if `serialVersionUID` doesn't match.
The object will be automatically updated to the new version.
# 12बहुविकल्पी
Serialization can be used to implement which design pattern?
Singleton
Factory
Observer
Memento
# 13बहुविकल्पी
What is a common security concern with serialization?
It can slow down network connections.
Malicious data could be deserialized, leading to security vulnerabilities.
It requires a lot of processing power.
It can cause memory leaks.
# 14बहुविकल्पी
Which of these is a benefit of using serialization for data storage?
It makes data access instantaneous.
It automatically encrypts the data.
It reduces the amount of disk space needed.
It allows complex object structures to be saved and retrieved easily.
# 15बहुविकल्पी
What is the role of the `Serializable` interface in Java?
It marks a class as eligible for serialization.
It automatically makes a class thread-safe.
It defines how objects are displayed on the screen.
It handles all network communication.
Google Classroom पर शेयर करें

यह क्विज़ प्रीमियम मैप से बनाई गई है। प्लान समाप्त होने के कारण एक्सेस प्रतिबंधित है।