Data Science Questions and Answers Part-17

1. Which of the following file format is graphic device only for windows?
a) pdf
b) svg
c) win.metafile
d) all of the mentioned

Answer: c
Explanation: Exporting graphics to a Windows MetaFile can be achieved via the win.metafile.

2. Point out the wrong statement.
a) For quick visualizations and exploratory analysis, usually you want to use the screen device
b) Functions like xyplot in lattice will not default to sending a plot to the screen device
c) Not all graphics devices are available on all platforms
d) None of the mentioned

Answer: b
Explanation: window function cannot be used on Mac.

3. Which of the following system most often don’t have postscript viewer?
a) Windows
b) Linux
c) Mac
d) All of the mentioned

Answer: a
Explanation: postscript is older format but it resizes well.

4. There are mainly three types of file devices.
a) True
b) False

Answer: b
Explanation: There are mainly basic types of file devices-vector and bitmap.

5. Which of the following is a bitmap file type?
a) tiff
b) svg
c) pdf
d) none of the mentioned

Answer: c
Explanation: TIFF is a computer file format for storing raster graphics images.

6. Which of the following function displays currently active graphics device?
a) dev.present
b) dev.cur
c) pre.cur
d) all of the mentioned

Answer: b
Explanation: You can change the active graphics device with dev.set.

7. The most familiar place for a plot to be “sent” is screen device.
a) True
b) False

Answer: a
Explanation: On Linux, the screen device is launched with x11 function.

8. Which of the following annotation function is used to add or modify text?
a) word
b) graph
c) lines
d) all of the mentioned

Answer: d
Explanation: points and axis are other well known annotation function.

9. Which of the following package is implemented by lattice plotting system?
a) grDevices
b) grid
c) graphics
d) all of the mentioned

Answer: b
Explanation: Use grid on to display the major grid lines.

10. Point out the wrong statement.
a) Plot are created with multiple functions only
b) Plots are created with both single and multiple function calls
c) Annotation in plot is not especially intuitive
d) None of the mentioned

Answer: a
Explanation: Plots are created with single function also.