Getting Started with Java Web development-tomcat Unit Quiz

Source: Internet
Author: User

1Multi-Select

The following statements about Tomcat are correct:

    • A.tomcat will listen to the port to get the user's request
    • B.tomcat will complete the HTTP message format parsing of the user's HTTP request
    • C.tomcat is a Web container that invokes the user's code logic
    • The open source protocol used by D.tomcat is Apache License
    • E.tomcat, like OpenJDK, is written by C + +.
    • F.tomcat is a development tool

For the features of the Tomcat installation directory under the subdirectory, the following statements are incorrect:

    • The a.conf directory contains some jar files that the Tomcat boot needs to rely on
    • B. By default, when you publish your app, place the application in the WebApps directory
    • C.bin directory, only a few scripts, no jar package
    • D.lib directory, the configuration file used primarily by Tomcat
    • E. Startup shutdown related scripts are in the bin directory

  

The following information can be configured in the Tomcat configuration file Server.xml:

    • Thread pool parameters used by A.connector
    • B.tomcat the access log output format
    • C.connector Port number for monitoring
    • D.tomcat CPU affinity for running processes

 

When accessing the Tomcat deployment application, the following error occurred, typically caused by:

    • A.tomcat started correctly, but the URL entered when the browser was accessed has an error
    • B. The wrong Tomcat listener Port was entered when the browser was accessed
    • C. Forgot to start the Tomcat app, so not Found
    • D. The user does not have permission to start Tomcat, which is actually a failure when starting Tomcat
    • E.tomcat Normal startup, but due to user logic code bug, in the run out of the exception that was not caught by the user

2. Judgment

Tomcat default listener port is 8080 and cannot be modified

    • A.x
    • B.√

Coyote is the implementation of Tomcat's connector component, which mainly accomplishes the functions related to network communication.

    • A.x
    • B.√

The Access log format for Tomcat can be configured

    • A.√
    • b.x

Tomcat can only invoke the user's code to generate a dynamic response, unable to process static files

    • A.√
    • b.x

Tomcat can be used independently as a Web server

    • A.√
    • b.x

Tomcat can handle only the HTTP 1.0 protocol and cannot process the HTTP 1.1 protocol

    • A.x
    • B.√

The implementation of the container part of Tomcat is Catalina, which invokes the Java code that executes the user

    • A.x
    • B.√

Getting Started with Java Web development-tomcat Unit Quiz

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.