CS506 Web Design and Development Quiz 1 Solved - VU Answer

Provide Web Design and Development Quiz Solved. Recent CS506 Quiz 1 Solution for Help in Studies or Exams and Improve Knowledge or Learning Skills. Also, Get PDF Solution File Given Below.


CS506 Web Design and Development no 1 Solved Answer

CS506 QUIZ 1 SOLVED


1. Which of the following range of response code signify error by server?

a) 200-299

b) 300-399

c) 400-499

d) 500-599


2. Choose correct integer value for predefined Thread Priority “Thread.MAX_PRIORITY” in Java.

a) 1

b) 5

c) 7

d) 10


3. The method “getId()” of http Session class returns the unique identifier of the session.

a) True

b) False


4. In 3-layer architecture, we do NOT make any direct calls to database from the presentation layer.

a) True

b) False


5. Which of the following method allows any other thread of same priority to execute?

a) sleep()

b) wait()

c) notify()

d) yield()

6. Packages are nothing more than the way we organize files into different directories according to their functionality, usability as well as category they should belong to.

a) True

b) False


7. Which of the following interface needs to implement while creating threads.

a) Serializable

b) Runnable

c) ActionListner

d) WindowListener


8. Each web application has ____ servlet context/s.

a) 0

b) 1

c) 2

d) 3


9. Which of the following is NOT true about HTTP?

a) HTTP is a stateless protocol

b) HTTP is a request response communication model

b) HTTP maintains user session between successive requests.

c) HTTP has no bult-in state management between successive requests.


10. Context attributes are shared among ___ servlet/s of ___.

a) all, desktop application

b) all, a web application

c) two, a web application

d) two, desktop applications


Check Also CS506 Materials


CS506 Midterm Past Papers


CS506 Solved Midterm Papers by Moaaz


CS506 Midterm Past Papers by Waqar

11. After some amount of time, session object of HttpSession class gets terminated automatically.

a) True

b) False


12. The ___ method is used, when one thread wants to wait for another thread’s run method to complete its execution.

a) wait()

b) join()

c) yield()

d) sleep()


13. In field type of request dispatcher, the first servlet which received request is also responsible to ___.

a) forward request

b) modify request

c) finish response

d) show response


14. Choose correct line of code to start a thread “t” is java.

a) tstart

b) t.start()

c) t-start()

d) t=start()


15. Which of the following is the main idea behind partitioning a web application into layers.

a) Increase Coupling

b) Reduce Coupling

c) Increase Decoupling

d) Reduce Decoupling


16. Which of the following approach can used to create threads in java?

a) Inheritance

b) Composition

c) Polymorphism

d) Abstraction


17. “Ready State” means a thread is in __.

a) waiting state

b) ready queue

c) dead state

d) new state


18. Which of the following range of response code indicates that request was successful?

a) 100-199

b) 200-299

c) 300-399

d) 400-499


19. Which of the following is NOT a part of HTTP request?

a) Request method

b) URL

c) Status code

d) Header fields

20. web xml is a ___.

a) java file

b) configuration file

c) jar file

d) servlet file


21. addCookie() method of HTTPServletResponse takes ____ as a parameter and adds it to the cookie header.

a) ip address

b) MAC address

c) cookie object

d) session id



Download CS506 Quiz 1 Solution PDF File



See Also Important Materials


All VU Midterm Past Papers Solved by Waqar


VU All Short Notes


Latest VU Midterm MCQs 2020 Solved


Share with fellows to get easily help in studies


Post a Comment

0 Comments