(1) which of the following statements about HTML are true? (Multiple options)
A) HTML is a communication protocol between Web customers and web servers.
B) HTML is a markup language.
C) Windows text editor (Notepad) can parse HTML files
D) the browser can parse HTML files
(2) which of the following are HTML tags? (Multiple options)
A) <HTML> B) <body> C) <Table> d) <Java>
(3) which of the following statements about HTTP are true? (Multiple options)
A) HTTP is a communication protocol between Web customers and web servers.
B) HTTP is a markup language.
C) the HTTP protocol is based on the TCP/IP protocol.
D) the browser can parse HTTP files
(4) in JDKProgramWhat is the command for compiling as a class file? (Single choice)
A) Java B) javac c) jar d) Compile
(5) For the following proceduresCode:
Int A = 9;
Int B = 0;
If (A> 9)
B = 1;
Else
B =-1;
After executing the above program code, what is the value of variable B? (Single choice)
A) 0 B) 0 C) 1 d)-1
(6) How many Java objects have the following programs created? (Single choice)
Integer O1 = new INTEGER (10 );
Integer O2 = new INTEGER (10 );
Integer O3 = O1;
A) 0 B) 1 c) 2 D) 3
(7) When will the lifecycle of the integer object created in the first line end? (Single choice)
Integer O1 = new INTEGER (10); // line1
Integer O2 = O1; // line2
O1 = NULL; // line3
O2 = new INTEGER (10); // line4
O2 = NULL; // line5
A) line2 B) line3 c) line4 d) line5
(8) What is the pyramid pattern output by the following program? (Single choice)
*
***
*****
*******
For (INT I = 1; I <= 4; I ++ ){
For (Int J = 1; j <= 4-I; j ++) system. Out. Print (/"/");
For (Int J = 1; j <= _______; j ++) system. Out. Print (/"*/");
System. Out. Print (/"
/");
}
What should I enter in the underline? (Single choice)
A) I B) 2 * I-1 C) 2 * I + 1 d) I + 2
(9) Can the following code be compiled? If it can be compiled, what print results will be obtained during the runtime? (Single choice)
Object o = new string (/"ABCD /");
String S = O;
System. Out. println (s );
System. Out. println (O );
A) cannot be compiled through B) can be compiled and run properly, print two "ABCD"
C) the code is compiled, but classcastexception is thrown during runtime.
(10) For the following code:
Public class qdd1f {
Public long sum (long a, long B) {return a + B ;}
// Insert a row here
}
Which of the following statements can be compiled to insert rows above? (Multiple options)
A) Public int sum (int A, int B) {return a + B ;}
B) Public int sum (long a, long B) {return 0 ;}
C) Abstract int sum ();
D) Private long sum (long a, long B) {return a + B ;}
E) Public long sum (long a, int B) {return a + B ;}
Answer:
(1) B, d (2) a, B, c (3) a, c (4) B (5) D (6) C (7) C (8) B (9) A (10) A, E