Explore topic-wise MCQs in Javascript.

This section includes 8 Mcqs, each offering curated multiple-choice questions to sharpen your Javascript knowledge and support exam preparation. Choose a topic below to get started.

1.

WHAT_DOES_RHINO_DO_WHEN_THE_GETTER_AND_SETTER_METHODS_EXIST??$

A. It becomes JavaScript properties
B. Java classes are used to avoid them
C. Java classes & JavaScript properties
D. It act as javascript function
Answer» C. Java classes & JavaScript properties
2.

The_JavaScript_classes_can_be_instantiated_using_______operator.$

A. create
B. new
C. instantiate
D. create.new
Answer» E.
3.

Which is a more formal way of importing packages and classes as JavaScript objects?

A. import(java.util.*);
B. importClass(java.util.*);
C. import.Class(java.util.*);
D. Class.import(java.util.*);
Answer» C. import.Class(java.util.*);
4.

Which is a useful way to try out small and simple Rhino programs and one-liners?

A. Starting an interactive shell
B. Starting a one to one shell
C. Creating a thread to do simple programs
D. Starting a multiple shell
Answer» B. Starting a one to one shell
5.

Which Rhino command quits Rhino environment?

A. terminate()
B. exit()
C. quit()
D. close()
Answer» D. close()
6.

Which of the following reads the textual contents of a URL and returns as a string?

A. spawn(f);
B. load(filename,…);
C. readFile(file);
D. readUrl(url);
Answer» E.
7.

Which of the following are global functions that are not part of core JavaScript?

A. spawn(f);
B. trim();
C. exult();
D. eval()
Answer» B. trim();
8.

Rhino is originated by _______

A. Microsoft
B. Mozilla
C. Apple
D. Chrome
Answer» C. Apple