Data Science Questions and Answers – Graphics Devices – 2

This set of Data Science Test focuses on “Graphics Devices – 2”.

1. Which of the following function has parameters shown in the below figure?
par or layout function easy to combine multiple plots into graph
a) par
b) bar
c) base
d) all of the mentioned
View Answer

Answer: a
Explanation: R makes it easy to combine multiple plots into one overall graph, using either the par( ) or layout( ) function.

2. Point out the correct statement.
a) Vector formats are good for line drawings and plots with solid colors using a modest number of points
b) Vector formats are good for plots with a large number of points, natural scenes or web based plots
c) The default graphics device is always the screen device
d) All of the mentioned
View Answer

Answer: a
Explanation: Bitmap formats are good for plots with a large number of points, natural scenes or web based plots.

3. Which of the following will copy the plot from one device to another?
a) dev.copy
b) dev.copypdf
c) dev.device
d) all of the mentioned
View Answer

Answer: a
Explanation: Copying a plot to another device can be useful because some plots require a lot of code and it can be a pain to type all that in again for a different device.

4. Which of the following is used to change active graphic device?
a) dev.set
b) dev.int
c) dev.win
d) all of the mentioned
View Answer

Answer: a
Explanation: You can change the active graphics device with dev.set(<integer>) where <integer> is the number associated with the graphics device you want to switch to.

advertisement
advertisement

5. Point out the wrong statement.
a) File devices are useful for creating plots that can be included in other documents or sent to other people
b) Plots must be created on a graphics device
c) For file devices, there are vector and bitmap formats
d) None of the mentioned
View Answer

Answer: d
Explanation: For file devices, there are vector and bitmap formats.

6. Which of the following is the second goal of PCA?
a) data compression
b) statistical analysis
c) data dredging
d) all of the mentioned
View Answer

Answer: a
Explanation: The principal components are equal to the right singular values if you first scale the variables.

Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

7. dev.copy2pdf specifically copy a plot to a PDF file.
a) True
b) False
View Answer

Answer: a
Explanation: Copying a plot is not an exact operation, so the result may not be identical to the original.

8. Which of the following is a vector file device?
a) png
b) svg
c) bmp
d) none of the mentioned
View Answer

Answer: b
Explanation: svg stands for scalable vector graphics.

advertisement

9. Which of the following is alternative technique toprincipal component analysis?
a) Factor analysis
b) Independent components analysis
c) Latent semantic analysis
d) All of the mentioned
View Answer

Answer: d
Explanation: PC’s may mix real patterns.

10. Every open graphics device is assigned an integer greater than 2.
a) True
b) False
View Answer

Answer: b
Explanation: Every open graphics device is assigned an integer greater than equal to 2.

advertisement

Sanfoundry Global Education & Learning Series – Data Science.

Here’s the list of Best Books in Data Science.

To practice all areas of Data Science for various tests, Here is complete set of 1000+ Multiple Choice Questions and Answers.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.