Những câu hỏi về Java(Trắc Nghiệm Đại Học Lạc Hồng)
Câu 1: what are NOT the valid components of a Java source file (choose all that apply):
A: Package statement.
B: Import statements.
C: Methods and variables.
D: Java compiler and Java Runtime Environment.
Câu 2: The following numbered list of Java class components is not in any particular order. Select the INCORRECT order of their occurrence in a Java class (choose all that apply):
1. comments
2. import statement
3. package statement
4. methods
5. class declaration.
6. variables
A: 1,3,2,5,6,4
B: 3,1,2,5,4,6
C: 3,2,1,4,5,6
D: 3,2,1,5,6,4
Câu 3: Which of the following examples define the CONRRECT Java class Structure?
A: #connect java compiler;
#connect java virtual machine;
class RJavaGuru{}
B: package java compiler;
import java virtual machine;
class EJavaGuru{}
C: import javavirtualmachine.*;
package javacompiler;
class EJavaGuru
{
void method1(){
int count;
}
D: package javacompiler;
import javavirtualmachine.*;
Còn Tiếp: KrishPham
A: Package statement.
B: Import statements.
C: Methods and variables.
D: Java compiler and Java Runtime Environment.
Câu 2: The following numbered list of Java class components is not in any particular order. Select the INCORRECT order of their occurrence in a Java class (choose all that apply):
1. comments
2. import statement
3. package statement
4. methods
5. class declaration.
6. variables
A: 1,3,2,5,6,4
B: 3,1,2,5,4,6
C: 3,2,1,4,5,6
D: 3,2,1,5,6,4
Câu 3: Which of the following examples define the CONRRECT Java class Structure?
A: #connect java compiler;
#connect java virtual machine;
class RJavaGuru{}
B: package java compiler;
import java virtual machine;
class EJavaGuru{}
C: import javavirtualmachine.*;
package javacompiler;
class EJavaGuru
{
void method1(){
int count;
}
D: package javacompiler;
import javavirtualmachine.*;
Còn Tiếp: KrishPham
Nhận xét
Đăng nhận xét