Sail E0 Webinar

MCQs

Total Questions : 80 | Page 2 of 8 pages
Question 11. Rhino is originated by
  1.    Microsoft
  2.    Mozilla
  3.    Apple
  4.    None of the mentioned
 Discuss Question
Answer: Option B. -> Mozilla
Question 12. Which of the following reads the textual contents of a URL and returns as a string?
  1.    spawn(f);
  2.    load(filename,…);
  3.    readFile(file);
  4.    readUrl(url);
 Discuss Question
Answer: Option D. -> readUrl(url);
Question 13. Which of the following are global functions that are not part of core JavaScript?
  1.    spawn(f);
  2.    trim();
  3.    exult();
  4.    none of the mentioned
 Discuss Question
Answer: Option A. -> spawn(f);
Question 14. Which is a useful way to try out small and simple Rhino programs and one-liners?
  1.    Starting an interative shell
  2.    Starting a one to one shell
  3.    Creating a thread to do simple programs
  4.    None of the mentioned
 Discuss Question
Answer: Option A. -> Starting an interative shell
Question 15. Which Rhino command quits Rhino environment?
  1.    terminate()
  2.    exit()
  3.    quit()
  4.    close()
 Discuss Question
Answer: Option C. -> quit()
Question 16. Which is a more formal way of importing packages and classes as JavaScript objects?
  1.    import(java.util.*);
  2.    importClass(java.util.*);
  3.    import.Class(java.util.*);
  4.    Class.import(java.util.*);
 Discuss Question
Answer: Option B. -> importClass(java.util.*);
Question 17. Consider the following code snippet
var f = new java.io.File("/tmp/test");
var out = new java.io.FileWriter(f);
out instanceof java.io.Reader
What will be the output for the above code snippet?
  1.    Error
  2.    True
  3.    Exception
  4.    False
 Discuss Question
Answer: Option D. -> False
Question 18. What does Rhino do when the getter and setter methods exist?
  1.    It becomes JavaScript properties
  2.    Java classes are used to avoid them
  3.    Java classes & JavaScript properties
  4.    None of the mentioned
 Discuss Question
Answer: Option A. -> It becomes JavaScript properties
Question 19. The JavaScript classes can be instantiated using _____ operator?
  1.    create
  2.    new
  3.    instantiate
  4.    create.new
 Discuss Question
Answer: Option B. -> new
Question 20. The new Java arrays can be created into a JavaScript programs using which of the following classes?
  1.    java.Array
  2.    java.lang.*
  3.    java.lang.Array
  4.    java.lang.reflect.Array
 Discuss Question
Answer: Option D. -> java.lang.reflect.Array

Latest Videos

Latest Test Papers