![]() |
CS506 Web Design and Development MCQS OBJECTIVE QUESTIONS |
CS506-Web Design & Development Quiz MCQS #Objective #Questions #Finalterm
1. Which of the following interface needs to implement while creating threads?
- Serializable
- Runnable ✔
- ActionListener
- WindowListener
- HttpSession session=req.getSession(true);
- HttpSession session=req.getSession(false);
- HttpSession session=req.getSession(1);
- HttpSession session=req.setSession(1); ✔
- servlet
- web.xml ✔
- html
- JSP
- ServletContext ✔
- HttpSession
- ServletConfig
- Both b and c
- <%@ %> ✔
- <%-- %>
- <%! %>
- <%= %>
- t2.setPriority(Thread.PRIORITY_MiX)
- t2.setPriority(Thread.PRIORITY_MAX)
- t2.setPriority(Thread.MAX_PRIORITY) ✔
- t2.setPriority(Thread.MIN_PRIORITY)
- 100-199
- 200-299 ✔
- 300-399
- 400-499
- _jspService() ✔
- jspDestroy()
- jspInit()
- both b and c
- Race condition
- Starvation ✔
- Average waiting time
- Process death
- Directories ✔
- Folders
- Libraries
- both b and c
- <jsp: .... />
- <%! %>
- <%= %>
- <%@ %>
- jspInit()
- jspService
- _jspService()
- jspDestroy()
- Current session
- Previous Session
- Next session
- Both b and c
- Computer user
- Computer that a person is using for communication purpose
- Person which carry out web surfing
- None
- sleep()
- wait()
- notify()
- yield()
- Declarations
- Scriptlets
- expressions
- All of these