Advanced Data Science Questions & Answers focuses on “Graphics Devices”.
1. 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.
2. Point out the correct statement.
a) On Mac, the screen device is launched with quartz
b) On Windows, the screen device is launched with wind
c) On Unix, the screen device is launched with x12
d) All of the mentioned
Answer: a
Explanation: On Windows, the screen device is launched with window function.
3. Which of the following is an example of graphics device?
a) PDF
b) SVG
c) JPEG
d) All of the mentioned
Answer: d
Explanation: When the plot() function is invoked, R sends the data corresponding to the plot over, and the graphics device generates the plot.
4. 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.
5. 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.
6. 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.
7. 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.
8. 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.
9. 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.