Top 150+ Solved Enterprise Computing With JAVA MCQ Questions Answer
Q. What is the purpose of <noscript> tag in Java Script?
a. Prevents scripts on the page from executing.
b. Enclose text to be displayed by non –JavaScript browsers.
c. Suppresses the result to be displayed on the web page.
d. None of the above.
Q. Java Script entities start with ___________and end with _____________
a. Semicolon, colon
b. Semicolon, Ampersand
c. Ampersand, colon
d. Ampersand, semicolon.
Q. Which of the following is a server-side Java Script object?
a. Function
b. File
c. FileUpload
d. Date
Q. Which of the following is a client-side Java Script object?
a. Function
b. File
c. FileUpload
d. Date
Q. Which of the following is the correct way for writing Java Script array?
a. var salaries = new Array(1:39438, 2:39839 3:83729)
b. var salaries = new (Array1=39438, Array 2=39839 Array 3=83729)
c. var salaries = new Array(39438, 39839,83729)
d. var salaries = new Array() values = 39438, 39839 83729
Q. Which of the following syntax is correct to refer an external script called “formValidation.js”?
a. <script href = “formValidation.js”>
b. <script source = “formValidation.js”>
c. <script name = “formValidation.js”>
d. <script src = “formValidation.js”>
Q. What is the alternate name for Java script?
a. LimeScript
b. Both a and d
c. ECMScript
d. ECMAScript
Q. What type of image map could be used with Java Script?
a. Client-side image maps
b. Server-side image maps.
c. Both A and B
d. Localhost image maps
Q. Which of the following are capable of Java Script functions?
a. Returning multiple values
b. Accepting parameters and returning values
c. Accepting parameters
d. All choices are correct
Q. Which of the following is not a valid JavaScript variable name?
a. 2java
b. _java_and_java_names
c. Javaandjava
d. None of the above
Q. What java wrapper type is created when a JavaScript object is sent to Java?
a. ScriptObject
b. JavaObject
c. Jobject
d. JSObject
Q. Which of the following is correct to write “Hello World ” on the web page?
a. System.out.println(“Hello World”)
b. print(“Hello World”)
c. document.write(“Hello World”)
d. response.write(“Hello World”)
Q. How does Java Script store dates in objects of Date type?
a. The number of days since 1st, 1900
b. The number of seconds since January 1st, 1970
c. The number of milliseconds since January 1st, 1970
d. The number of picoseconds since January 1st, 1970
Q. Which attribute needs to be changed to make elements invisible?
a. Visibility
b. Visible
c. Invisibility
d. Invisible
Q. Which machine actually executed the Java Script?
a. The web server
b. The machine which is running a web server.
c. Java Script engine
d. Both A and C