MCQ Bank
_________________ is NOT the type of HTTP request.
- A) Delete
- B) Post
- C) Update
- D) Get
Which of the following is NOT a part of HTTP request?
- A) Request method
- B) Status code
- C) Header fields
- D) URI
Choose the correct statement by which thread 't' causes currently executing thread to block until thread 't' finishes its run() method.
- A) t.wait()
- B) t.start()
- C) t.join()
- D) t.sleep()
Real world business objects are represented in ____________.
- A) data layer
- B) presentation layer
- C) application layer
- D) business layer
In the context of servlet mapping in web.xml, URL is provided in ___________ tag.
- A) <url-address>
- B) <url-pattern>
- C) <url-destination>
- D) <url-source>
JAVA_Home indicates the _____________ of JDK.
- A) webapps folder
- B) root directory
- C) bin folder
- D) web page
What does J2EE stand for?
- A) Java 2 Essential Edition
- B) Java 2 Enterprise Edition
- C) Java 2 Experiment Edition
- D) Java 2 Extended Edition
In web.xml, root tag _____________ represents web application.
- A) <web.app>
- B) <webapp>
- C) <web-app>
- D) webapp
HTTP response code 401 indicates that ______________ .
- A) error by server
- B) requested resource is available
- C) request requires HTTP authentication
- D) requested resource is not available
"Ready State" means a thread is in _____________ .
- A) new state
- B) waiting state
- C) ready queue
- D) dead state
Choose correct integer value for predefined Thread Priority "Thread.MAX_PRIORITY" in Java.
- A) 1
- B) 7
- C) 5
- D) 10
In _____________ state, thread is assigned a processor to run.
- A) running
- B) new
- C) dead
- D) ready
CGI (Common Gateway Interface) was widely used for generating ________ .
- A) Desktop applications
- B) Dynamic web content
- C) Mobile applications
- D) Static web content
Which of the following is/are not correct about Thread(s)?
- A) Heavy weight
- B) Light weight and share same memory
- C) Share same memory
- D) Light weight
Which of the following variable value will not be set during the installation and configuration of Apache Tomcat Server?
- A) CLASSPATH
- B) JDK_HOME
- C) CATALINA_HOME
- D) JAVA_HOME
In the context of Java Thread, sleep() method throws __________ exception.
- A) Input Output
- B) Index Out of bound
- C) File not found
- D) Interrupted
When a thread is in "New state" during its life cycle, it is _________________.
- A) in ready queue
- B) being assigned a processor to run
- C) just created
- D) ready to run
In the context of HTTP Response Code, the values in the 400s indicate that _________________.
- A) error by client
- B) resource is available
- C) resource is not available
- D) error by server
Which of the following is not the part of http response?
- A) URI
- B) Header files
- C) Status code
- D) Result Code
The ____________ method is used, when one thread wants to wait for another thread's run method to complete its execution.
- A) join()
- B) sleep()
- C) wait()
- D) yield()