

MCQOPTIONS
Saved Bookmarks
This section includes 16 Mcqs, each offering curated multiple-choice questions to sharpen your R Programming knowledge and support exam preparation. Choose a topic below to get started.
1. |
If I want to save a plot to a PDF file, which of the following is a correct way of doing that? |
A. | Construct the plot on the screen device and then copy it to a PDF file with dev.copy2pdf() |
B. | Construct the plot on the PNG device with png(), then copy it to a PDF with dev.copy2pdf() |
C. | Open the PostScript device with postscript(), construct the plot, then close the device with dev.off() |
D. | Open the screen device with quartz(), construct the plot, and then close the device with dev.off() |
Answer» B. Construct the plot on the PNG device with png(), then copy it to a PDF with dev.copy2pdf() | |
2. |
What does the ‘pch’ option to par() control? |
A. | the size of the plotting symbol in a scatterplot |
B. | the line width in the base graphics system |
C. | the orientation of the axis labels on the plot |
D. | the plotting symbol/character in the base graphics system |
Answer» E. | |
3. |
Which function opens the screen graphics device for the Mac? |
A. | bitmap() |
B. | quartz() |
C. | pdf() |
D. | png() |
Answer» C. pdf() | |
4. |
Bitmapped file formats can be most useful for ____________ |
A. | Plots that may need to be resized |
B. | Plots that require animation or interactivity |
C. | Plots that are not scaled to a specific resolution |
D. | Scatterplots with many many points |
Answer» E. | |
5. |
Which of the following is an example of a vector graphics device in R? |
A. | JPEG |
B. | PNG |
C. | GIF |
D. | SVG |
Answer» E. | |
6. |
Which of the following is true about the base plotting system? |
A. | Margins and spacings are adjusted automatically depending on the type of plot and the data |
B. | Plots are typically created with a single function call |
C. | Plots are created and annotated with separate functions |
D. | The system is most useful for conditioning plots |
Answer» D. The system is most useful for conditioning plots | |
7. |
What is the role of exploratory graphs in data analysis? |
A. | They are made for formal presentations |
B. | They are typically made very quickly |
C. | Axes, legends, and other details are clean and exactly detailed |
D. | They are used in place of formal modeling |
Answer» C. Axes, legends, and other details are clean and exactly detailed | |
8. |
WHAT_DOES_THE_‚ÄÖ√Ñ√∂‚ÀÖ√Ë‚Àւ§PCH‚ÄÖ√Ñ√∂‚ÀÖ√Ë‚ÀÖ¬•_OPTION_TO_PAR()_CONTROL??$# |
A. | the size of the plotting symbol in a scatterplot |
B. | the line width in the base graphics system |
C. | the orientation of the axis labels on the plot |
D. | the plotting symbol/character in the base graphics system |
Answer» E. | |
9. |
If_I_want_to_save_a_plot_to_a_PDF_file,_which_of_the_following_is_a_correct_way_of_doing_that?$ |
A. | Construct the plot on the screen device and then copy it to a PDF file with dev.copy2pdf() |
B. | Construct the plot on the PNG device with png(), then copy it to a PDF with dev.copy2pdf() |
C. | Open the PostScript device with postscript(), construct the plot, then close the device with dev.off() |
D. | Open the screen device with quartz(), construct the plot, and then close the device with dev.off() |
Answer» B. Construct the plot on the PNG device with png(), then copy it to a PDF with dev.copy2pdf() | |
10. |
Which function opens the screen graphics device for the Mac ? |
A. | bitmap() |
B. | quartz() |
C. | pdf() |
D. | png() |
Answer» C. pdf() | |
11. |
Which of the following functions is typically used to add elements to a plot in the base graphics system? |
A. | lines() |
B. | hist() |
C. | plot() |
D. | boxplot() |
Answer» E. | |
12. |
Bitmapped file formats can be most useful for |
A. | Plots that may need to be resized |
B. | Plots that require animation or interactivity |
C. | Plots that are not scaled to a specific resolution |
D. | Scatterplots with many many points |
Answer» E. | |
13. |
Which of the following is an example of a valid graphics device in R? |
A. | A socket connection |
B. | A Microsoft Word document |
C. | A PDF file |
D. | A file folder |
Answer» D. A file folder | |
14. |
Which of the following is true about the base plotting system ? |
A. | Margins and spacings are adjusted automatically depending on the type of plot and the data |
B. | Plots are typically created with a single function call |
C. | Plots are created and annotated with separate functions |
D. | The system is most useful for conditioning plots |
Answer» D. The system is most useful for conditioning plots | |
15. |
What is the role of exploratory graphs in data analysis ? |
A. | They are made for formal presentations. |
B. | They are typically made very quickly. |
C. | Axes, legends, and other details are clean and exactly detailed. |
D. | They are used in place of formal modeling. |
Answer» C. Axes, legends, and other details are clean and exactly detailed. | |
16. |
Which of the following is a principle of analytic graphics? |
A. | Don’t plot more than two variables at at time |
B. | Make judicious use of color in your scatterplots |
C. | Show box plots (univariate summaries) |
D. | Show causality, mechanism, explanation |
Answer» E. | |