Jsp-intermédiaire

7 Questions | Total Attempts: 466

SettingsSettingsSettings
Please wait...
Jsp-intermédiaire

Questions and Answers
  • 1. 
    What is true about MIME type?
    • A. 

      It tells the browser what type of data browser will send

    • B. 

      It tells the browser what type of data browser will receive

    • C. 

      It tells the server what type of data server will receive

    • D. 

      It tells the server what type of data server will send

  • 2. 
    Which tag doesn't belongs to web.xml?
    • A. 

      Web-app

    • B. 

      Welcome-file-list

    • C. 

      Servlet

    • D. 

      Servlet-mappings

  • 3. 
    Which is the life-cycle procedure?
    • A. 

      Constructor call=>class loading=>init()=>service()=>destroy()

    • B. 

      Constructor call=>class loading=>init()=>service()=>destroy()

    • C. 

      Class loading=>constructor call=>init()=>service()=>destroy()

    • D. 

      Constructor call=>class loading=>service()=>init()=>destroy()

  • 4. 
    Which statement is not true about ServletContext?
    • A. 

      There is one ServletContext per one application

    • B. 

      Generally it is used to get web app parameters

    • C. 

      We can get Server Information though it

    • D. 

      There is one ServletContext per one servlet

  • 5. 
    What is the meaning of response.setIntHeader("xyz" ,67); ?
    • A. 

      Add a new header with integer value

    • B. 

      Replace the value to integer to existing header

    • C. 

      Replace the value to integer to existing header or Add a new header with integer value

    • D. 

      Always add a new header

  • 6. 
    Through which tag you can define servlet config  in web.xml?
    • A. 

      Config-param

    • B. 

      Context-param

    • C. 

      Init-param

    • D. 

      None

  • 7. 
    How the web-application get servlet context ?
    • A. 

      GetServletContext().getServletConfig().getInitParameter()

    • B. 

      GetServletConfig().getInitParameter()

    • C. 

      This.getServletConfig().getInitParameter()

    • D. 

      All of these

Back to Top Back to top