第一篇:JAVA程序員應(yīng)聘編程能力測試(英文版)
Q.1 Which color is used to indicate instance methods in the standard “javadoc” format documentation: A.blue B.red C.purple D.orange Java Certification Mock Exam 2/36 Select the most appropriate answer.Q.2 What is the correct ordering for the import, class and package declarations when found in a single file? A.package, import, class B.class, import, package C.import, package, class D.package, class, import Select the most appropriate answer.Q.3 Which methods can be legally applied to a string object? A.equals(String)B.equals(Object)C.trim()D.round()E.toString()Select all correct answers.Q.4 What is the parameter specification for the public static void main method? A.String args [] B.String [] args C.Strings args [] D.String args Select all correct answers.Q.5 What does the zeroth element of the string array passed to the public static void main Java Certification Mock Exam 3/36 method contain? A.The name of the program B.The number of arguments C.The first argument if one is present Select the most appropriate answer.Q.6 Which of the following are Java keywords? A.goto B.malloc C.extends D.FALSE Select all correct answers Q.7 What will be the result of compiling the following code: public class Test { public static void main(String args []){ int age;age = age + 1;System.out.println(“The age is ” + age);} } A.Compiles and runs with no output B.Compiles and runs printing out The age is 1 C.Compiles but generates a runtime error Java Certification Mock Exam 4/36 D.Does not compile E.Compiles but generates a compile time error Select the most appropriate answer.Q.8 Which of these is the correct format to use to create the literal char value a? A.‘a(chǎn)’ B.“a” C.new Character(a)D.