Sockets(Javascript ) Questions and Answers

Question 1. How many parameters does the method plot() accept?
  1.    6
  2.    7
  3.    8
  4.    9
Explanation:-
Answer: Option D. -> 9
The method plot() accepts a total of 9 parameters.

Question 2. What is the purpose of the method symbols in R?
  1.    Draw symbols
  2.    Draw other shapes
  3.    Draw symbols and other shapes
  4.    None of the mentioned
Explanation:-
Answer: Option B. -> Draw other shapes
The symbols() function can be used to draw other shapes on a plot; for more information about this type ?symbols at the R console.

Question 3. How to save chart as a Window metafile?
  1.    metafile()
  2.    win.metafile()
  3.    file()
  4.    metawin()
Explanation:-
Answer: Option B. -> win.metafile()
The method win.metafile([filename]) is used to save chart as a Window metafile.

Question 4. Which of the following is the initial function used to create a bubble chart natively in R?
  1.    init()
  2.    chart(bubble)
  3.    symbols()
  4.    none of the mentioned
Explanation:-
Answer: Option C. -> symbols()
The method symbols() is used to create a bubble chart natively in R.

Question 5. What is the need for bubble charts?
  1.    Represent 2D data
  2.    Represent 3D data
  3.    Represent 2D and 3D data
  4.    None of the mentioned
Explanation:-
Answer: Option B. -> Represent 3D data
Bubble charts are used to represent three-dimensional data.

Question 6. Which is the method used to save chart as a ps file?
  1.    ps()
  2.    postscript()
  3.    script()
  4.    post(script)
Explanation:-
Answer: Option B. -> postscript()
The syntax for the method to save chart as a ps file is : postscript([filename]).

Question 7. Which is the method used to draw a bar plot?
  1.    bar_plot()
  2.    plot(bar)
  3.    barplot()
  4.    plotbar()
Explanation:-
Answer: Option C. -> barplot()
The method barplot() can be used to draw a bar plot.

Question 8. Which of the following are methods used to save charts?
  1.    pdf()
  2.    jpeg()
  3.    bmp()
  4.    all of the mentioned
Explanation:-
Answer: Option D. -> all of the mentioned
All of the above mentioned methods are used to save charts in different modes.

Question 9. How many parameters does the WebPageTest API accept?
  1.    5
  2.    6
  3.    7
  4.    8
Explanation:-
Answer: Option D. -> 8
The WebPageTest API accepts totally 8 parameters, namely url, location, runs, fvonly, private, block, f, k.

Question 10. What is the purpose of the method par()?
  1.    Makes the text vertical
  2.    Makes the text horizontal
  3.    Makes the text diagonal
  4.    None of the mentioned
Explanation:-
Answer: Option B. -> Makes the text horizontal
With the method par(), you can make the text horizontal.