网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
单选题
What will be the result of attempting to run the following program?() public class Qaa75 { public static void main(String args[]) { String[][][] arr = { { {}, null }, { { "1", "2" }, { "1", null, "3" } }, {}, { { "1", null } } }; System.out.println(arr.length + arr[1][2].length); } }
A
The program will terminate with an ArrayIndexOutOfBoundsException.
B
The program will terminate with a NullPointerException.
C
4 will be written to standard output.
D
6 will be written to standard output.
E
7 will be written to standard output.
参考答案
参考解析
解析:
暂无解析
更多 “单选题What will be the result of attempting to run the following program?() public class Qaa75 { public static void main(String args[]) { String[][][] arr = { { {}, null }, { { "1", "2" }, { "1", null, "3" } }, {}, { { "1", null } } }; System.out.println(arr.length + arr[1][2].length); } }A The program will terminate with an ArrayIndexOutOfBoundsException.B The program will terminate with a NullPointerException.C 4 will be written to standard output.D 6 will be written to standard output.E 7 will be written to standard output.” 相关考题
考题
The rule of seven used by quality control engineers states that if a run of seven or more samples lays on one side of the process mean, then the process is out of control. What is the probability that this condition is the result of random variations.A . 14.30%B . 3.12%C . 2.73%D . 1.56%E . 0.78%
考题
Consider the following statement on a RANGE partitioned table: ALTER TABLE orders DROP PARTITION p1, p3;What is the outcome of executing the above statement?()
A.A syntax error will result as you cannot specify more than one partition in the same statementB.All data in p1 and p3 partitions are removed and the table definition is changedC.All data in p1 and p3 partitions are removed, but the table definition remains unchangedD.Only the first partition (p1) will be dropped as only one can be dropped at any time
考题
class MyThread extends Thread { public void run() { System.out.println(“AAA”); } public void run(Runnable r) { System.out.println(“BBB”); } public static void main(String[] args) { new Thread(new MyThread()).start(); } } What is the result?() A、 AAAB、 BBBC、 Compilation fails.D、 The code runs with no output.
考题
What will be the result of attempting to run the following program?() public class Qaa75 { public static void main(String args[]) { String[][][] arr = { { {}, null }, { { "1", "2" }, { "1", null, "3" } }, {}, { { "1", null } } }; System.out.println(arr.length + arr[1][2].length); } } A、The program will terminate with an ArrayIndexOutOfBoundsException.B、The program will terminate with a NullPointerException.C、4 will be written to standard output.D、6 will be written to standard output.E、7 will be written to standard output.
考题
public class Foo { public void main( String[] args ) { System.out.println( “Hello” + args[0] ); } } What is the result if this code is executed with the command line?()A、 HelloB、 Hello FooC、 Hello worldD、 Compilation fails.E、 The code does not run.
考题
What will be the result of attempting to compile and run the following code?() public class Q6b0c { public static void main(String args[]) { int i = 4; float f = 4.3; double d = 1.8; int c = 0; if (i == f) c++; if (((int) (f + d)) == ((int) f + (int) d)) c += 2; System.out.println(c); } } A、The code will fail to compile.B、0 will be written to the standard output.C、1 will be written to the standard output.D、2 will be written to the standard output.E、3 will be written to the standard output.
考题
An administrator is attempting to recover a filesystem that fails to manually unmount. The fsck command produces the following output: The current volume is: /dev/fslv02 File system is currently mounted. Invalid file system size in the primary superblock. Invalid file system size in the secondary superblock. Primary superblock is corrupt. Secondary superblock is corrupt. fsck: 0507-018 Superblock is corrupt and cannot be repaired. Both primary and secondary copies are corrupt.Cannot continue tried to mount Which steps will resolve the problem?()A、Reboot the server into maintenance mode and run ‘fsck’ with the ‘-p’ parameter while the filesystem is mounted.B、Reboot the server into maintenance mode and run ‘fsck’ with the ‘-y’ parameter while the filesystem is unmounted.C、Force a umount of the filesystem with ‘umount -F /dev/fslv02’, and then run ‘fsck -p /dev/fslv02’ while the filesystem is unmounted.D、Force a umount of the filesystem by varying off the hosting volume group and then varyon the volume group. This will permit ‘fsck -y’ to be run against the failing filesystem.
考题
A System p administrator is attempting to restore some files from a backup tape. The restore failed. The system administrator suspects the block size of the tape drive is incorrect. Which of the following commands can be used to determine the block size of the backup tape ()A、ddB、tarC、cpioD、restore
考题
Which of the following best describes what is meant by Linux Affinity on AIX?()A、The ability to install a Linux system on an AIX systemB、The ability to install an AIX system on a Linux systemC、The ability to compile and run a Linux application on AIXD、The ability to compile and run an AIX application on Linux
考题
An administrator is attempting to recover afilesystem that fails to manually unmount. The fsck command produces the following output: The current volume is: /dev/fslv02 File system is currently mounted. Invalid file system size in the primary superblock. Invalid file system size in the secondary superblock. Primary superblock is corrupt. Secondary superblock is corrupt. fsck: Cannot continue tried to mount Which steps will resolve the problem?()A、Reboot the server into maintenance mode and run 'fsck' with the '-p' parameter while the filesystem is mountedB、Reboot the server into maintenance mode and run 'fsck' with the '-y' parameter whilethe filesystem is unmountedC、Force a umount of the filesystem with 'umount -F /dev/fslv02', and then run 'fsck p /dev/fslv02' whilethe file system is unmountedD、Force a umount of the filesystem by varying off the hosting volume group and then varyon the volume group. This will permit 'fsck -y' to be run against the failing filesystem
考题
Users complain an AIX server is running slow. Which of the following commands can be run to determine what is consuming systems resources?()A、 tprofB、 lpstatC、 ps auxD、 entstat
考题
What will be the result of attempting to compile and run the following program?() public class Q28fd { public static void main(String args[]) { int counter = 0; l1: for (int i=10; i0; i--) { l2: int j = 0; while (j 10) { if (j i) break l2; if (i == j) { counter++; continue l1; } } counter--; } System.out.println(counter); } } A、The program will fail to compile.B、The program will not terminate normally.C、The program will write 10 to the standard output.D、The program will write 0 to the standard output.E、The program will write 9 to the standard output.
考题
You have created a script in the recovery catalog called backup_database. Which of the following commands would successfully execute that script?() A、 run { open script backup_database; run script backup_database }B、 run { engage script backup_database; }C、 run { run script backup_database; }D、 Run { execute script backup_database; }E、 The name backup_database is an invalid name for an RMAN script. Trying to run it from RMAN would result in an error.
考题
What is the end result of these commands if they are successful?() RMAN show retention policy; RMAN configuration parameters for database with db_unique_name ORCL are: CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default Backup database tag=gold_copy plus archivelog tag=gold_copy delete input; Backup database tag=silver_copy plus archivelog tag=silver_copy delete input; A、 Attempting to restore silver_copy will fail.B、 Attempting to restore gold_copy will fail.C、 Both backups will be available for restore without question.D、 Attempting to restore gold_copy may or may not succeed.E、 You will not be able to restore either gold_copy or silver_copy.
考题
You executed the following code: BACKUP VALIDATE DATABASE; BLOCKRECOVER CORRUPTION LIST; What will be the result of executing the above code?() A、 The code will run a backup validation to populate the V$BACKUP_CORRUPTION view and repair corrupt blocks, if any, recorded in the view.B、 The code will run a backup validate to populate the V$COPY_CORRUPTION view and then repair any corrupt blocks recorded in the view.C、 The code will runs a backup validate to populate the V$DATABASE_BLOCK_CORRUPTION view and then repair corrupt blocks, if any, recorded in the view.D、 The code will run a backup validate to populate the RC_BACKUP_CORRUPTION view and then repair corrupt blocks, if any, recorded in the view.
考题
单选题Users complain an AIX server is running slow. Which of the following commands can be run to determine what is consuming systems resources?()A
tprofB
lpstatC
ps auxD
entstat
考题
单选题Click the Exhibit button. What is the result?()A
The code will deadlock.B
The code may run with output "2 0 6 4".C
The code may run with no output.D
The code may run with output "0 6".E
An exception is thrown at runtime.F
The code may run with output "0 2 4 6".
考题
单选题What will be the result of attempting to compile and run the following program?() public class Q28fd { public static void main(String args[]) { int counter = 0; l1: for (int i=10; i i) break l2; if (i == j) { counter++; continue l1; } } counter--; } System.out.println(counter); } }A
The program will fail to compile.B
The program will not terminate normally.C
The program will write 10 to the standard output.D
The program will write 0 to the standard output.E
The program will write 9 to the standard output.
考题
单选题MySQL is installed on a Linux server and has the following configuration: What is the purpose of changing ownership of datadir to the ‘mysql’ user?()A
MySQL requires correct file ownership while remaining secureB
MySQL needs to be run as the root user, but file cannot be owned by itC
MySQL cannot be run as the root user
考题
单选题You executed the following code: BACKUP VALIDATE DATABASE; BLOCKRECOVER CORRUPTION LIST; What will be the result of executing the above code?()A
The code will run a backup validation to populate the V$BACKUP_CORRUPTION view and repair corrupt blocks, if any, recorded in the view.B
The code will run a backup validate to populate the V$COPY_CORRUPTION view and then repair any corrupt blocks recorded in the view.C
The code will runs a backup validate to populate the V$DATABASE_BLOCK_CORRUPTION view and then repair corrupt blocks, if any, recorded in the view.D
The code will run a backup validate to populate the RC_BACKUP_CORRUPTION view and then repair corrupt blocks, if any, recorded in the view.
考题
单选题What will be the result of attempting to run the following program?() public class Qaa75 { public static void main(String args[]) { String[][][] arr = { { {}, null }, { { "1", "2" }, { "1", null, "3" } }, {}, { { "1", null } } }; System.out.println(arr.length + arr[1][2].length); } }A
The program will terminate with an ArrayIndexOutOfBoundsException.B
The program will terminate with a NullPointerException.C
4 will be written to standard output.D
6 will be written to standard output.E
7 will be written to standard output.
考题
单选题Which of the following best describes what is meant by Linux Affinity on AIX?()A
The ability to install a Linux system on an AIX systemB
The ability to install an AIX system on a Linux systemC
The ability to compile and run a Linux application on AIXD
The ability to compile and run an AIX application on Linux
考题
单选题Consider the following statement on a RANGE partitioned table: ALTER TABLE orders DROP PARTITION p1, p3; What is the outcome of executing the above statement?()A
A syntax error will result as you cannot specify more than one partition in the same statementB
All data in p1 and p3 partitions are removed and the table definition is changedC
All data in p1 and p3 partitions are removed, but the table definition remains unchangedD
Only the first partition (p1) will be dropped as only one can be dropped at any time
考题
单选题Runnable r = new Runnable() { public void run() { System.out.print(”Cat”); } }; Threadt=new Thread(r) { public void run() { System.out.print(”Dog”); } }; t.start(); What is the result?()A
CatB
DogC
Compilation fails.D
The code runs with no output.E
An exception is thrown at runtime.
考题
单选题class Computation extends Thread { private int num; private boolean isComplete; private int result; public Computation(int num) { this.num = num; } public synchronized void run() { result = num * 2; isComplete = true; notify(); } public synchronized int getResult() { while (!isComplete) { try { wait(); } catch (InterruptedException e) { } } return result; } public static void main(String[] args) { Computation[] computations = new Computation [4]; for (int i = 0; i computations.length; i++) { computations[i] = new Computation(i); computations[i] .start(); } for (Computation c : computations) System.out.print(c.getResult() +“ “); } } What is the result?()A
The code will deadlock.B
The code may run with no output.C
An exception is thrown at runtime.D
The code may run with output “0 6”.E
The code may run with output “2 0 6 4‟.F
The code may ruin with output “0 2 4 6”.
考题
单选题You have created a script in the recovery catalog called backup_database. Which of the following commands would successfully execute that script?()A
run { open script backup_database; run script backup_database }B
run { engage script backup_database; }C
run { run script backup_database; }D
Run { execute script backup_database; }E
The name backup_database is an invalid name for an RMAN script. Trying to run it from RMAN would result in an error.
考题
单选题class MyThread extends Thread { public void run() { System.out.println(“AAA”); } public void run(Runnable r) { System.out.println(“BBB”); } public static void main(String[] args) { new Thread(new MyThread()).start(); } } What is the result?()A
AAAB
BBBC
Compilation fails.D
The code runs with no output.
热门标签
最新试卷