ExamVeda
Login
Home
31
BLOB stands for
Discuss
Answer & Solution
Answer: Option B
Solution:
A Blob is an opaque reference to, or handle for, a chunk of data. The name comes from SQL databases, where it means “Binary Large Object.” In JavaScript, Blobs often represent binary data, and they can be large, but neither is required: a Blob could also represent the contents of a small text file.
32
The size of blobs are generally calculated in
Discuss
Answer & Solution
Answer: Option C
Solution:
Blobs are opaque: all you can do with them directly is determine their size in bytes, ask for their MIME type, and chop them up into smaller Blobs.
33
The blobs are generally stored in
Discuss
Answer & Solution
Answer: Option C
Solution:
The web browser can store Blobs in memory or on disk, and Blobs can represent really enormous chunks of data (such as video files) that are too large to fit in main memory without first being broken into smaller pieces with slice().
34
The blobs are broken into smaller pieces using which of the following functions?
Discuss
Answer & Solution
Answer: Option D
Solution:
The web browser can store Blobs in memory or on disk, and Blobs can represent really enormous chunks of data (such as video files) that are too large to fit in main memory without first being broken into smaller pieces with slice().
35
Which algorithm supports blobs?
Discuss
Answer & Solution
Answer: Option A
Solution:
Blobs are supported by the structured clone algorithm, which means that you can obtain one from another window or thread via the message event.
36
Which database can be used to retrieve blobs?
Discuss
Answer & Solution
Answer: Option B
Solution:
Blobs can be retrieved fro client-side databases.
37
Which object can be used to create your own blobs?
Discuss
Answer & Solution
Answer: Option C
Solution:
You can create your own blobs, using a BlobBuilder object to build them out of strings, ArrayBuffer objects, and other Blobs.
38
Which of the following is a subtype of Blob?
Discuss
Answer & Solution
Answer: Option D
Solution:
The client-side JavaScript File object is a subtype of Blob: a File is just a Blob of data with a name and a modification date.
39
Which method facilitates in uploading a Blob to a server?
Discuss
Answer & Solution
Answer: Option A
Solution:
You can upload a Blob to a server by passing it to the send() method of an XMLHttpRequest object.
40
A Blob URL can be created using which of the following function?
Discuss
Answer & Solution
Answer: Option B
Solution:
Create a Blob URL with the function createObjectURL(). At the time of this writing, the draft specification and Firefox 4 put this function in a global object named URL, and Chrome and Webkit prefix that new global, calling it webkitURL.