Java Practice 1
Số trang: 13
Loại file: doc
Dung lượng: 733.00 KB
Lượt xem: 10
Lượt tải: 0
Xem trước 2 trang đầu tiên của tài liệu này:
Thông tin tài liệu:
Tham khảo tài liệu java practice 1, công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả
Nội dung trích xuất từ tài liệu:
Java Practice 1Java Practice 11. The data defined by the class are referred to as member variables orinstance variablesA.TrueB.False2 . What a Java programmer calls a __________ , a C/C++ programmer callsa functionA.ClassesB.MethodC.FunctionD.Object3 . Each method or variable in a class may be marked private or publicA.TrueB.False4 . _____________ is the process by which one object acquires theproperties of another objectA.EncapsulationB.ClassC.InheritenceD.Polymorphism5 . _________ is a feature that allows one interface to be used for a generalclass of actions.A.EncapsulationB.ClassC.InheritenceD.Polymorphism6 . In Java, a source file is officially called a compilation unit.A.TrueB.False7 . The Java compiler requires that a source file use the ________ filenameextensionA..hB.. javaC.>javaD..class8 . When Java source code is compiled, each individual class is put into itsown output file named after the class and using the ______ extensionA..hB.. javaC.>javaD..class9 . Comments in Java Program must begin with /* and end with */A.TrueB.False10 . All statements in Java end with a _____________A.ColonB.SemiColonC.HypenD.Dot11 . The simplest form of the for loop in Java is for(initialization; condition;iteration) statement;A.TrueB.False12 . Java allows two or more statements to be grouped into blocks of codecalled Code BlocksA.TrueB.False13 . You do not need to follow any special indentation rules in JavaA.TrueB.False14 . Java is Case ________A.InsensitiveB.Sensitive15 . A constant value in Java is created by using a literal representation ofitA.TrueB.False16 . The keywords const and goto are reserved but not usedA.TrueB.False17 . The Separator [ ] is Used to declare array typesA.TrueB.False18 . enum is a Keyword in Java, introduced from J2SE 5A.TrueB.False19 . Javas built-in methods are members of the System class, which is aclass predefined by Java that is automatically included in your programsA.TrueB.False20 . The print( ) method is just like println( ), except that it does not output anewline character after each callA.TrueB.False1 . The Java interpreter is used for the execution of the source code.A.TrueB.False2 . On successful compilation a file with the .exe extension is created.A.TrueB.False3 . The Java source code can be created in a Notepad editor.A.TrueB.False4 . The Java Program is enclosed in a class definition.A.TrueB.False5 . Class and main() methods declarations are required for every Javaapplication?A.TrueB.False6 . Java Compiler and Java Interpreter are the two parts in executing a Javaprogram.A.TrueB.False7 . Encapsulation, Inheritance and Polymorphism are the three OOPsprinciples.A.TrueB.False8 . Java source code file is a compilation unit.A.TrueB.False9 . What output is displayed as the result of executing the followingstatement? System.out.println(// Looks like a comment.); // Looks like acommentA.Looks like a commentB.The statement results in a compilation errorC.No output is displayed10 . In order for a source code file, containing the public class Test, tosuccessfully compile, which of the following must be true?A.It must have a package statementB.It must be named Test.javaC.It must import java.langD.It must declare a public class named Test11 . Void is the return type of programs main( ) method.A.TrueB.False12 . string array is the argument type of programs main( ) method.A.TrueB.False13 . __________ will be automatically invoked when an object is created.A.MethodB.ConstructorC.Function14 . method has to be call explicitly.A.TrueB.False15 . loading the driver and making the connection are the steps involved inestablishing a connection of JDBC.A.TrueB.False16 . In JDBC ______________ used to create an instance of a driver andregister it with the DriverManager. When you have loaded a driver, it isavailable for making a connection with a DBMS.A.Class.forDriverB.Class.forDataC.Class.forName17 . DriverManager.getConnection function establishes a connection to callthe appropriate driver connected to the DBMS.A.TrueB.False18 . CallableStatement object is used to call a Strored Procedure fromJDBC.A.TrueB.False19 . One of the new features in the JDBC 2.0 API is the ability to move aresult sets cursor Backward as well as Forward.A.TrueB.False20 . javax.servlet and javax.servlet.http are the two packages for servletsA.TrueB.False21 . In the Life cycle of a servlet init() method initates the servlet anddestroy() method destroys the servlet.A.TrueB.False22 . The servlet handles the client request through service() method.A.TrueB.False23 . ServletContext() interface gives access to information about theenvironment and allows them to log significant ...
Nội dung trích xuất từ tài liệu:
Java Practice 1Java Practice 11. The data defined by the class are referred to as member variables orinstance variablesA.TrueB.False2 . What a Java programmer calls a __________ , a C/C++ programmer callsa functionA.ClassesB.MethodC.FunctionD.Object3 . Each method or variable in a class may be marked private or publicA.TrueB.False4 . _____________ is the process by which one object acquires theproperties of another objectA.EncapsulationB.ClassC.InheritenceD.Polymorphism5 . _________ is a feature that allows one interface to be used for a generalclass of actions.A.EncapsulationB.ClassC.InheritenceD.Polymorphism6 . In Java, a source file is officially called a compilation unit.A.TrueB.False7 . The Java compiler requires that a source file use the ________ filenameextensionA..hB.. javaC.>javaD..class8 . When Java source code is compiled, each individual class is put into itsown output file named after the class and using the ______ extensionA..hB.. javaC.>javaD..class9 . Comments in Java Program must begin with /* and end with */A.TrueB.False10 . All statements in Java end with a _____________A.ColonB.SemiColonC.HypenD.Dot11 . The simplest form of the for loop in Java is for(initialization; condition;iteration) statement;A.TrueB.False12 . Java allows two or more statements to be grouped into blocks of codecalled Code BlocksA.TrueB.False13 . You do not need to follow any special indentation rules in JavaA.TrueB.False14 . Java is Case ________A.InsensitiveB.Sensitive15 . A constant value in Java is created by using a literal representation ofitA.TrueB.False16 . The keywords const and goto are reserved but not usedA.TrueB.False17 . The Separator [ ] is Used to declare array typesA.TrueB.False18 . enum is a Keyword in Java, introduced from J2SE 5A.TrueB.False19 . Javas built-in methods are members of the System class, which is aclass predefined by Java that is automatically included in your programsA.TrueB.False20 . The print( ) method is just like println( ), except that it does not output anewline character after each callA.TrueB.False1 . The Java interpreter is used for the execution of the source code.A.TrueB.False2 . On successful compilation a file with the .exe extension is created.A.TrueB.False3 . The Java source code can be created in a Notepad editor.A.TrueB.False4 . The Java Program is enclosed in a class definition.A.TrueB.False5 . Class and main() methods declarations are required for every Javaapplication?A.TrueB.False6 . Java Compiler and Java Interpreter are the two parts in executing a Javaprogram.A.TrueB.False7 . Encapsulation, Inheritance and Polymorphism are the three OOPsprinciples.A.TrueB.False8 . Java source code file is a compilation unit.A.TrueB.False9 . What output is displayed as the result of executing the followingstatement? System.out.println(// Looks like a comment.); // Looks like acommentA.Looks like a commentB.The statement results in a compilation errorC.No output is displayed10 . In order for a source code file, containing the public class Test, tosuccessfully compile, which of the following must be true?A.It must have a package statementB.It must be named Test.javaC.It must import java.langD.It must declare a public class named Test11 . Void is the return type of programs main( ) method.A.TrueB.False12 . string array is the argument type of programs main( ) method.A.TrueB.False13 . __________ will be automatically invoked when an object is created.A.MethodB.ConstructorC.Function14 . method has to be call explicitly.A.TrueB.False15 . loading the driver and making the connection are the steps involved inestablishing a connection of JDBC.A.TrueB.False16 . In JDBC ______________ used to create an instance of a driver andregister it with the DriverManager. When you have loaded a driver, it isavailable for making a connection with a DBMS.A.Class.forDriverB.Class.forDataC.Class.forName17 . DriverManager.getConnection function establishes a connection to callthe appropriate driver connected to the DBMS.A.TrueB.False18 . CallableStatement object is used to call a Strored Procedure fromJDBC.A.TrueB.False19 . One of the new features in the JDBC 2.0 API is the ability to move aresult sets cursor Backward as well as Forward.A.TrueB.False20 . javax.servlet and javax.servlet.http are the two packages for servletsA.TrueB.False21 . In the Life cycle of a servlet init() method initates the servlet anddestroy() method destroys the servlet.A.TrueB.False22 . The servlet handles the client request through service() method.A.TrueB.False23 . ServletContext() interface gives access to information about theenvironment and allows them to log significant ...
Tìm kiếm theo từ khóa liên quan:
ngôn ngữ java tài liệu về java vài tập java trắc nghiệm về java lập trình javaGợi ý tài liệu liên quan:
-
Bài toán phân luồng giao thông và ứng dụng
11 trang 180 1 0 -
Excel add in development in c and c phần 9
0 trang 108 0 0 -
Program C Ansi Programming Embedded Systems in C and C++ phần 4
12 trang 95 0 0 -
Lập trình Java cơ bản : GUI nâng cao part 3
6 trang 81 0 0 -
265 trang 78 0 0
-
81 trang 66 0 0
-
Nghiên cứu hệ thống báo cháy ứng dụng cảm biến nhiệt hồng ngoại và camera
4 trang 58 0 0 -
Giáo trình Lập trình mạng - ThS. Văn Thiên Hoàng
201 trang 52 0 0 -
7 trang 51 0 0
-
67 trang 46 0 0