⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mockcert02.txt

📁 JAVA方面的一道练习试题 很好的 很不错的
💻 TXT
📖 第 1 页 / 共 5 页
字号:
1) The code fails to compile, complaining that the line

System.out.println(s1=s2);
is illegal.
2) The code fails to compile because the equals() method is not defined for the StringBuffer class.
3) false
true
true
false
false
4) false
abcd
false
false
false
5) false
true
false
false
false


Question 92
===========================================================
What is the default layout manager for applets and panels?

Mutiple: 
1) FlowLayout
2) BorderLayout
3) GridBagLayout
4) GridLayout
5) None of these


Question 93
===========================================================
Which of the following statements will compile without an error?

Mutiple: 
1) Boolean b = new Boolean("abcd");
2) float f = 123;
3) byte b = 127;
4) int x = (int)(1.23);
5) short s = 128;


Question 94
===========================================================
True or False.


Menus can be added to containers.

Only One: 
1) True
2) False


Question 95
===========================================================
Which of the following statements are true regarding the graphical methods paint(), repaint() and update().

Mutiple: 
1) paint() schedules a call to repaint().
2) repaint() schedules a call to update().
3) update() calls paint().
4) update() schedules a call to repaint().
5) repaint() calls paint() directly.


Question 96
===========================================================
To which of the following can a menubar component be added?

Mutiple: 
1) Applet
2) Panel
3) Frame
4) Canvas


Question 97
===========================================================
With regard to HTML tags, which of the following statements are correct?

Mutiple: 
1) The CODE, WIDTH and HEIGHT tags are mandatory and the order is insignificant.
2) CODE and CODEBASE are case insensitive, and the .class extension is optional.
3) The PARAM tag is case insensitive.
4) It is possible to download multiple JAR's with the ARCHIVE tag (eg, ARCHIVE = "a.jar, b.jar").
5) The CODE tag is the only mandatory tag.


Question 98
===========================================================
Consider the following piece of code and select the correct statements.


1. Object o = new String("abcd");

2. String s = o;

3. System.out.println(s);

4. System.out.println(o);

Only One: 
1) The following is displayed:

abcd

abcd
2) The code fails to compile at line 1.
3) The code fails to compile at line 2
4) The code fails to compile at line 4.
5) he code can be made to compile by changing line 1 to the following:

String o = new String("abcd");


Question 99
===========================================================
Which of the following are legal methods for the String class?

Mutiple: 
1) length()
2) toUpper()
3) toUpperCase()
4) toString()
5) equals()


Question 300
===========================================================
What is the output from the following piece of code:


loop1:

     for(int i = 0; i < 3; i++){

         loop2:

             for(int j = 0; j < 3; j++){

                 if (i == j){

                     break loop2;

                 }

                 System.out.print("i = " + i + " j = " + j + " ");

             }

     }

Only One: 
1) i = 1
j = 0
2) i = 1
j = 0
i = 2
j = 1
3) i = 0
j = 1
i = 0
j = 2
i = 1
j = 0
i = 2
j = 0
i = 2
j = 1
4) i = 1
j = 0
i = 2
j = 0
i = 2
j = 1
5) i = 1 j = 0 i = 2 j = 0 i = 2 j = 1


                                 JTest
                 Sun Certified Programmer for Java2 Platform
                       Examination Score Report

     CANDIDATE:     JTest
     CANDIDATE ID:  JT12345678                DATE:2002-3-1(YYYY-MM-DD)
     Exam: JTest SCJP Mock Exam

Exam Results:

                   Correct Answers               Your Answers        Result
                    1  2  3  4  5                1  2  3  4  5
------------------------------------------------------------------------------------
Question # 01          2                            2                  0
------------------------------------------------------------------------------------
Question # 02       1     3  4  5                1     3  4  5         0
------------------------------------------------------------------------------------
Question # 03          2                            2                  0
------------------------------------------------------------------------------------
Question # 04       1                            1                     0
------------------------------------------------------------------------------------
Question # 05             3                            3               0
------------------------------------------------------------------------------------
Question # 06       1                            1                     0
------------------------------------------------------------------------------------
Question # 07             3                            3               0
------------------------------------------------------------------------------------
Question # 08          2                            2                  0
------------------------------------------------------------------------------------
Question # 09       1  2  3                      1  2  3               0
------------------------------------------------------------------------------------
Question # 10             3                            3               0
------------------------------------------------------------------------------------
Question # 11             3                            3               0
------------------------------------------------------------------------------------
Question # 12       1                            1                     0
------------------------------------------------------------------------------------
Question # 13          2                            2                  0
------------------------------------------------------------------------------------
Question # 14       1  2  3  4                   1  2  3  4            0
------------------------------------------------------------------------------------
Question # 15          2                            2                  0
------------------------------------------------------------------------------------
Question # 16       1  2  3                      1  2  3               0
------------------------------------------------------------------------------------
Question # 17          2                            2                  0
------------------------------------------------------------------------------------
Question # 18                4                            4            0
------------------------------------------------------------------------------------
Question # 19          2                            2                  0
------------------------------------------------------------------------------------
Question # 20       1                            1                     0
------------------------------------------------------------------------------------
Question # 21       1                            1                     0
------------------------------------------------------------------------------------
Question # 22                4                            4            0
------------------------------------------------------------------------------------
Question # 23             3                            3               0
------------------------------------------------------------------------------------
Question # 24          2                            2                  0
------------------------------------------------------------------------------------
Question # 25          2                            2                  0
------------------------------------------------------------------------------------
Question # 26          2                            2                  0
------------------------------------------------------------------------------------
Question # 27       1           5                1           5         0
------------------------------------------------------------------------------------
Question # 28          2                            2                  0
------------------------------------------------------------------------------------
Question # 29             3                            3               0
------------------------------------------------------------------------------------
Question # 30             3                            3               0
------------------------------------------------------------------------------------
Question # 31                   5                            5         0
------------------------------------------------------------------------------------
Question # 32       1                            1                     0
------------------------------------------------------------------------------------
Question # 33       1                            1                     0
------------------------------------------------------------------------------------
Question # 34             3                            3               0
------------------------------------------------------------------------------------
Question # 35                4                            4            0
------------------------------------------------------------------------------------
Question # 36          2     4                      2     4            0
------------------------------------------------------------------------------------
Question # 37                   5                            5         0
------------------------------------------------------------------------------------
Question # 38       1           5                1           5         0
------------------------------------------------------------------------------------
Question # 39       1                            1                     0
------------------------------------------------------------------------------------
Question # 40             3                            3               0
------------------------------------------------------------------------------------
Question # 41       1  2                         1  2                  0
------------------------------------------------------------------------------------
Question # 42                   5                            5         0
------------------------------------------------------------------------------------
Question # 43                4                            4            0
------------------------------------------------------------------------------------
Question # 44       1     3  4                   1     3  4            0
------------------------------------------------------------------------------------
Question # 45       1                            1                     0
------------------------------------------------------------------------------------
Question # 46             3                            3               0
------------------------------------------------------------------------------------
Question # 47       1        4  5                1        4  5         0
------------------------------------------------------------------------------------
Question # 48             3                            3               0
------------------------------------------------------------------------------------
Question # 49       1           5                1           5         0
------------------------------------------------------------------------------------
Question # 50          2                            2                  0
------------------------------------------------------------------------------------
Question # 51       1        4  5                1        4  5         0
------------------------------------------------------------------------------------
Question # 52       1                            1                     0
------------------------------------------------------------------------------------
Question # 53          2                            2                  0
------------------------------------------------------------------------------------
Question # 54       1                            1                     0
------------------------------------------------------------------------------------
Question # 55             3                            3               0
------------------------------------------------------------------------------------
Question # 56          2                            2                  0
------------------------------------------------------------------------------------
Question # 57       1                            1                     0
------------------------------------------------------------------------------------
Question # 58          2                            2                  0
------------------------------------------------------------------------------------
Question # 59             3                            3               0
------------------------------------------------------------------------------------
Question # 60       1  2  3                      1  2  3               0
------------------------------------------------------------------------------------
Question # 61                4                            4            0
------------------------------------------------------------------------------------
Question # 62       1                            1                     0
------------------------------------------------------------------------------------
Question # 63       1                            1                     0
------------------------------------------------------------------------------------
Question # 64       1                            1                     0
------------------------------------------------------------------------------------
Question # 65                4                            4            0
------------------------------------------------------------------------------------
Question # 66       1        4  5                1        4  5         0
------------------------------------------------------------------------------------
Question # 67             3                            3               0
------------------------------------------------------------------------------------
Question # 68          2  3  4  5                   2  3  4  5         0
------------------------------------------------------------------------------------
Question # 69       1                            1                     0
------------------------------------------------------------------------------------
Question # 70          2                            2                  0
------------------------------------------------------------------------------------
Question # 71                4                            4            0
------------------------------------------------------------------------------------
Question # 72       1                            1                     0
------------------------------------------------------------------------------------
Question # 73       1  2     4                   1  2     4            0
------------------------------------------------------------------------------------
Question # 74       1                            1                     0
------------------------------------------------------------------------------------
Question # 75          2     4                      2     4            0
------------------------------------------------------------------------------------
Question # 76          2                            2                  0
------------------------------------------------------------------------------------
Question # 77          2                            2                  0
------------------------------------------------------------------------------------
Question # 78       1  2                         1  2                  0
------------------------------------------------------------------------------------
Question # 79             3                            3               0
------------------------------------------------------------------------------------
Question # 80       1                            1                     0
------------------------------------------------------------------------------------
Question # 81          2                            2                  0
------------------------------------------------------------------------------------
Question # 82             3                            3               0
------------------------------------------------------------------------------------
Question # 83       1     3                      1     3               0
------------------------------------------------------------------------------------
Question # 84       1  2  3                      1  2  3               0
------------------------------------------------------------------------------------
Question # 85          2                            2                  0
------------------------------------------------------------------------------------
Question # 86       1  2     4  5                1  2     4  5         0
------------------------------------------------------------------------------------
Question # 87       1                            1                     0
------------------------------------------------------------------------------------
Question # 88          2                            2                  0
------------------------------------------------------------------------------------
Question # 89       1        4                   1        4            0
------------------------------------------------------------------------------------
Question # 90             3  4                         3  4            0
------------------------------------------------------------------------------------
Question # 91                4                            4            0
------------------------------------------------------------------------------------
Question # 92       1                            1                     0
------------------------------------------------------------------------------------
Question # 93       1  2  3  4  5                1  2  3  4  5         0
------------------------------------------------------------------------------------
Question # 94          2                            2                  0
------------------------------------------------------------------------------------
Question # 95          2  3                         2  3               0
------------------------------------------------------------------------------------
Question # 96             3                            3               0
------------------------------------------------------------------------------------
Question # 97       1     3  4                   1     3  4            0
------------------------------------------------------------------------------------
Question # 98             3                            3               0
------------------------------------------------------------------------------------
Question # 99       1     3  4  5                1     3  4  5         0
------------------------------------------------------------------------------------
Question # 100                   5                            5         0
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
                                                  Total Correct Answer:100
                                                         PASSING SCORE:61%
                                                            YOUR SCORE:100%
                                                           TEST STATUS:Pass

Mock Exam is only a means of measuring your knowledge and skill level
In order to help you further your growth and achievement in the Java Language,
Please visit online at 
                       http://8620.virtualave.net


                                                             Thank you
                                                                Shen Yuan

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -