S1304 First book test analysis 5
(select two items)
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)
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)
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)
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)
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)
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)
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)
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)
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