Monday , 25 November 2024

CS506 Solved and Unsolved MCQs for Final Term Papers

Question

Which of the following is NOT a part of HTTP request?
Select correct option:
Request method
URI
Status code
Header fields
One is more that name is body

Question

Which of the following method needs to override while handling threads in java?
Select correct option:

init()
start()
run()
runnable()

Question

Which of the following problem occurs with lower priority threads?
Select correct option:
Race condition
Starvation
Average waiting time
Process death

Question

Which of the following is NOT a web technology of Java?
Select correct option:

Servlet
JSP
ASP
JSF

Question

Which of the following interface needs to implement while creating threads?
Select correct option:
Serializable
Runnable
ActionListener
WindowListener

Question

Which of the following approch is used to create threads in java?
Select correct option:
inheritance
interface
Both inheriance and interface
None of these

Question

Which of the following method allows any other thread of same priority to execute?
Select correct option:
sleep()
wait()
notify()
yield()

Question

Which of the following Environment variable tells the system about the root directory of TOMCAT?
Select correct option:
JAva_HOME
CATALINA_HOME
CLASSPATH
PATH

Question

Which of the following is NOT true about HTTP?
Select correct option:

HTTP is a stateless protocol
HTTP is a request response communication model
HTTP maintains user session between successive requests. ( not sure)
HTTP has no built-in state management between successive requests.

Remaining three are available in books…

Question

Which of the following range of response code signify error by server?
Select correct option:
200-299
300-399
400-499
500-599

Question

Which of the following is NOT a web technoloy of Java?
Select correct option:
Servlet
JSP (not sure)
ASP
JSF

Question

Which of the following folder contains configuration file?
Select correct option:
classes
lib
bin (not sure)
WEB-INF

Question

3 of 10 39:25
Which of the following is NOT true about HTTP?
Select correct option:
HTTP is a stateless protocol
HTTP is a request response communication model
HTTP maintains user session between successive requests.
HTTP has no built-in state management between successive requests.

Question

4 of 10 39:51
Which of the following is NOT a part of HTTP request?
Select correct option:
Request method

URI
Status code
Header fields

Question

Which of the following range of response code signify error by server?
Select correct option:
200-299
300-399
400-499
500-599

Question

Which of the following approch is used to create threads in java?
Select correct option:
inheritance
interface
Both inheriance and interface
None of these

Question

Which of the following method call causes the currently executing thread to return to Ready state?
Select correct option:
sleep()
yield()
wait()
None of these

Question

Web.xml is a ___________
Select correct option:
java file
configuration file
jar file
servlet

Question

Which of the following interface needs to implement while creating threads?
Select correct option:
Serializable
Runnable
ActionListener
WindowListener

Question

Which of the following Environment variable tells the system about the root directory of TOMCAT?
Select correct option:
JAva_HOME
CATALINA_HOME
CLASSPATH
PATH

Question

Which of the following is NOT a part of HTTP request?
Select correct option:
Request method
URI
Status code
Header fields

Question

Which of the following interface needs to implement while creating threads?
Select correct option:

Serializable
Runnable
ActionListener
WindowListener

Question

Which of the following range of response code indicates that request was successful?
Select correct option:
100-199
200-299
300-399
400-499

Question

Which of the following method call causes the currently executing thread to return to Ready state?
Select correct option:
sleep()
yield()
wait()
None of these

Question

Which of the following folder contains configuration file?
Select correct option:
classes
lib
bin
WEB-INF

Question

Which of the following range of response code indicates that request was successful?
Select correct option:
100-199
200-299
300-399
400-499

Question

Which of the following is NOT a part of HTTP request?
Select correct option:
Request method
URI
Status code
Header fields

Question

Which of the following interface needs to implement while creating threads?
Select correct option:
Serializable
Runnable
ActionListener
WindowListener

Question

Which of the following is NOT true about HTTP?
Select correct option:
HTTP is a stateless protocol
HTTP is a request response communication model
HTTP maintains user session between successive requests.
HTTP has no built-in state management between successive requests.

Check Also

CS506 Unsolved Paper for Final Term Try to solve

Question No: 1 ( Marks: 1 ) – Please choose one Which of the following …

Leave a Reply

Your email address will not be published. Required fields are marked *

*