S1304 First book Test analysis

Source: Internet
Author: User

S1304 First book test analysis 5
(select two items)
    • A:
    • B:
    • C:
    • D:
The correct answer is c,d you answer is b,c answer the wrong Analysis of test questions:AB is not a library function of the string class25
(Select an item)
    • A:
    • B:
    • C:
    • D:
The correct answer is, D, you answered B .Analysis of test questions:c java-version, javac–version can view the JDK installation version. In a Windows system, the JDK must be installed before the Java environment can be used. Instead, configure the JDK environment variables. Java_home is not required, using Java_home is similar to a variable in the JAVA language, in the PATH environment variable, you can get the absolute path of the Bin folder by%java_home%\bin, but you can also write the absolute path directly in path such as C \ Jdk1.7.0_75\bin to replace Java_home. So the answer is D. 33
(select two items)
    • A:
    • B:
    • C:
    • D:
The correct answer is a, B, you answer a,d answer the wrong Analysis of test questions:This topic examines the use of process control and continue based on the For statement, continue is the end of this cycle to start the next cycle, in the If judgment when I is an odd number to end the cycle, so need to traverse an interval to get to all the 1-10 between the even, But because the ultimate goal is to get a and, so can not consider there is no 0, because the addition of 0, the results will not be affected. So the answer is select AB. 36
(Select an item)
    • A:
    • B:
    • C:
    • D:
The correct answer is a you answered D to answer the wrong Analysis of test questions:the correct order is: Package statement declaration packages, import statement Guide, class statement definition classes40
(Select an item)
    • A:
    • B:
    • C:
    • D:
The correct answer is D, you're answering a wrong answer.Analysis of test questions:the correct answer is D. STR is an array that gets the length of the arrays using the Long property; The string index starts at 0, so the second character should be charat (1), so the correct answer is D. 47
(Select an item)
    • A:
    • B:
    • C:
    • D:
The correct answer is C you're answering a wrong answer.Analysis of test questions:

The = = Operation compares the values of two variables for equality, and for a reference variable represents whether the two variables are stored in the same address in the heap, that is, whether the contents of the stack are the same. Whether the two variables represented by the equals operation are references to the same object, that is, whether the contents of the heap are the same.

48
(Select an item)
    • A:
    • B:
    • C:
    • D:
The correct answer is B, and you're answering a wrong answer.Analysis of test questions:The reference type is passed as a parameter, which passes the reference, does not open space, changes the value or changes the value of the original space, so the answer b is correct49
(Select an item)
    • A:
    • B:
    • C:
    • D:
The correct answer is D, you're answering a wrong answer.Analysis of test questions:This topic examines the definition and invocation of the parameter method, according to the program D 50
(Select an item)
    • A:
    • B:
    • C:
    • D:
The correct answer is B, and you're answering a wrong answer.Analysis of test questions:

This code first defines the array, then the user assigns the value, realizes the array element exchange value, the final output. The key to solving the problem is to understand the code that uses the TEMP variable to implement the exchange value of the array two elements.

S1304 First book Test analysis

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.