橋隧工共性規章類練習題
A. 誰能提供JAVA 類和對象的練習題!!
Question No: 1
public class test (
2. public static void main (String args[]) {
3. int i = 0xFFFFFFF1;
4. int j = ~i;
5.
6. }
7. )
What is the decimal value of j at line 5?
A. 0
B. 1
C. 14
D. –15
E. An error at line 3 causes compilation to fail.
F. An error at line 4 causes compilation to fail.
答案: C
Question No: 2
Given:
Integer i = new Integer (42);
Long 1 = new Long (42);
Double d = new Double (42.0);
Which two expressions evaluate to True? (Choose Two)
A. (i ==1)
B. (i == d)
C. (d == 1)
D. (i.equals (d))
E. (d.equals (i))
F. (i.equals (42))
答案: D, E
Question No: 3
Exhibit :
1. public class test (
2. private static int j = 0;
3.
4. private static boolean methodB(int k) (
5. j += k;
6. return true;
6. )
7.
8. public static void methodA(int i) {
9. boolean b:
10. b = i < 10 | methodB (4);
11. b = i < 10 || methodB (8);
12. }
13.
14. public static void main (String args[] ) (
15. methodA (0);
16. system.out.printIn(j);
17. )
18. )
What is the result?
A. The program prints 「0」
B. The program prints 「4」
C. The program prints 「8」
D. The program prints 「12」
E. The code does not complete.
答案: B
Question No: 4
Given
1. Public class test (
2. Public static void main (String args[]) (
3. System.out.printIn (6 ^ 3);
4. )
5. )
What is the output?
答案: 5
Question No: 5
Given:
1. public class Foo {
2. public static void main (String [] args) {
3. StringBuffer a = new StringBuffer (「A」);
4. StringBuffer b = new StringBuffer (「B」);
5. operate (a,b);
6. system.out.printIn{a + 「,」 +b};
7. }
8. static void operate (StringBuffer x, StringBuffer y) {
9. x.append {y};
10. y = x;
11. }
12. }
What is the result?
A. The code compiles and prints 「A,B」.
B. The code compiles and prints 「A,A」.
C. The code compiles and prints 「B,B」.
D. The code compiles and prints 「AB,B」.
E. The code compiles and prints 「AB,AB」.
F. The code does not compile because 「+」 cannot be overloaded for StringBuffer.
答案: D
Question No: 6
Exhibit:
1. Public class test (
2. Public static void stringReplace (String text) (
3. Text = text.replace (『j』 , 『i』);
4. )
5.
6. public static void bufferReplace (StringBuffer text) (
7. text = text.append (「C」)
8. )
9.
10. public static void main (String args[]) (
11. String textString = new String (「java」);
12. StringBuffer text BufferString = new StringBuffer (「java」);
13.
14. stringReplace (textString);
15. BufferReplace (textBuffer);
16.
17. System.out.printIn (textString + textBuffer);
18. )
19. )
What is the output?
答案: JAVAJAVA
Question No: 7
Exhibit:
1. public class test {
2. public static void add3 (Integer i) }
3. int val = i.intValue ( );
4. val += 3;
5. i = new Integer (val);
6. )
7.
8. public static void main (String args [ ] ) {
9. Integer i = new Integer (0);
10. add3 (i);
11. system.out.printIn (i.intValue ( ) );
12. }
13. )
What is the result?
A. Compilation will fail.
B. The program prints 「0」.
C. The program prints 「3」.
D. Compilation will succeed but an exception will be thrown at line 3.
答案: B
Question No: 8
Given:
1. public class ConstOver {
2. public ConstOver (int x, int y, int z) {
3. }
4. }
Which two overload the ConstOver constructor? (Choose Two)
A. ConstOver ( ) { }
B. Protected int ConstOver ( ) { }
C. Private ConstOver (int z, int y, byte x) { }
D. Public Object ConstOver (int x, int y, int z) { }
E. Public void ConstOver (byte x, byte y, byte z) { }
答案: A, C
Question No: 9
Given:
1. public class MethodOver {
2. public void setVar (int a, int b, float c) {
3. }
4. }
Which two overload the setVar method? (Choose Two)
A. Private void setVar (int a, float c, int b) { }
B. Protected void setVar (int a, int b, float c) { }
C. Public int setVar (int a, float c, int b) (return a;)
D. Public int setVar (int a, int b, float c) (return a;)
E. Protected float setVar (int a, int b, float c) (return c;)
答案: A, C
Question No: 10
Given:
1. class BaseClass {
2. Private float x = 1.0f ;
3. protected float getVar ( ) ( return x;)
4. }
5. class Subclass extends BaseClass (
6. private float x = 2.0f;
7. //insert code here
8. )
Which two are valid examples of method overriding? (Choose Two)
A. Float getVar ( ) { return x;}
B. Public float getVar ( ) { return x;}
C. Float double getVar ( ) { return x;}
D. Public float getVar ( ) { return x;}
E. Public float getVar (float f ) { return f;}
答案: B, D
Question No: 11
Which two demonstrate an 「is a」 relationship? (Choose Two)
A. public interface Person { }
public class Employee extends Person { }
B. public interface Shape { }
public class Employee extends Shape { }
C. public interface Color { }
public class Employee extends Color { }
D. public class Species { }
public class Animal (private Species species;)
E. interface Component { }
Class Container implements Component (
Private Component[ ] children;
)
答案: D, E
Question No: 12
Which statement is true?
A. An anonymous inner class may be declared as final.
B. An anonymous inner class can be declared as private.
C. An anonymous inner class can implement multiple interfaces.
D. An anonymous inner class can access final variables in any enclosing scope.
E. Construction of an instance of a static inner class requires an instance of the enclosing outer class.
答案: D
Question No 13
Given:
1. package foo;
2.
3. public class Outer (
4. public static class Inner (
5. )
6. )
Which statement is true?
A. An instance of the Inner class can be constructed with 「new Outer.Inner ()」
B. An instance of the inner class cannot be constructed outside of package foo.
C. An instance of the inner class can only be constructed from within the outer class.
D. From within the package bar, an instance of the inner class can be constructed with 「new inner()」
答案: A
Question No 14
Exhibit:
1. public class enclosingone (
2. public class insideone{}
3. )
4. public class inertest(
5. public static void main (string[]args)(
6. enclosingone eo= new enclosingone ();
7. //insert code here
8. )
9. )
Which statement at line 7 constructs an instance of the inner class?
A. InsideOnew ei= eo.new InsideOn();
B. Eo.InsideOne ei = eo.new InsideOne();
C. InsideOne ei = EnclosingOne.new InsideOne();
D. EnclosingOne.InsideOne ei = eo.new InsideOne();
答案: D
Question No 15
Exhibit:
1. interface foo {
2. int k = 0;
3. }
4.
5. public class test implements Foo (
6. public static void main(String args[]) (
7. int i;
8. Test test = new test ();
9. i= test.k;
10.i= Test.k;
11.i= Foo.k;
12.)
13.)
14.
What is the result?
A. Compilation succeeds.
B. An error at line 2 causes compilation to fail.
C. An error at line 9 causes compilation to fail.
D. An error at line 10 causes compilation to fail.
E. An error at line 11 causes compilation to fail.
答案: A
Question No 16
Given:
1. //point X
2. public class foo (
3. public static void main (String[]args) throws Exception {
4. printWriter out = new PrintWriter (new
5. java.io.outputStreamWriter (System.out), true;
6. out.printIn(「Hello」);
7. )
8. }
Which statement at PointX on line 1 allows this code to compile and run?
A. Import java.io.PrintWriter;
B. Include java.io.PrintWriter;
C. Import java.io.OutputStreamWriter;
D. Include java.io.OutputStreamWriter;
E. No statement is needed.
答案: A
Question No 17
Which two statements are reserved words in Java? (Choose Two)
A. Run
B. Import
C. Default
D. Implement
答案: B, C
Question No 18
Which three are valid declarations of a float? (Choose Three)
A. Float foo = -1;
B. Float foo = 1.0;
C. Float foo = 42e1;
D. Float foo = 2.02f;
E. Float foo = 3.03d;
F. Float foo = 0x0123;
答案: A, D, F
Question No 19
Leading the way in IT testing and certification tools, www.testking.com
Question No 19
Given:
8. int index = 1;
9. boolean[] test = new Boolean[3];
10. boolean foo= test [index];
What is the result?
A. Foo has the value of 0.
B. Foo has the value of null.
C. Foo has the value of true.
D. Foo has the value of false.
E. An exception is thrown.
F. The code will not compile.
答案: D
Question No 20
Given:
1. public class test(
2. public static void main(string[]args){
3. string foo = args [1];
4. string foo = args [2];
5. string foo = args [3];
6. }
7. )
And command line invocation:
Java Test red green blue
What is the result?
A. Baz has the value of 「」
B. Baz has the value of null
C. Baz has the value of 「red」
D. Baz has the value of 「blue」
E. Bax has the value of 「green」
F. The code does not compile.
G. The program throws an exception.
答案: G
Question No 21
Given:
8. int index = 1;
9. int [] foo = new int [3];
10.int bar = foo [index];
11.int baz = bar + index;
What is the result?
A. Baz has the value of 0
B. Baz has the value of 1
C. Baz has the value of 2
D. An exception is thrown.
E. The code will not compile.
答案: B
Question No 22
Given:
1. public class foo {
2. public static void main (String[]args) {
3. String s;
4. system.out.printIn (「s=」 + s);
5. }
6. }
What is the result?
A. The code compiles and 「s=」 is printed.
B. The code compiles and 「s=null」 is printed.
C. The code does not compile because string s is not initialized.
D. The code does not compile because string s cannot be referenced.
E. The code compiles, but a NullPointerException is thrown when toString is called.
答案: C
Question No 23
Which will declare a method that forces a subclass to implement it?
A. Public double methoda();
B. Static void methoda (double d1) {}
C. Public native double methoda();
D. Abstract public void methoda();
E. Protected void methoda (double d1){}
答案: D
Question No 24
You want subclasses in any package to have access to members of a superclass. Which is the most
restrictive access modifier that will accomplish this objective?
A. Public
B. Private
C. Protected
D. Transient
E. No access modifier is qualified
答案: C
Question No 25
Given:
1. abstract class abstrctIt {
2. abstract float getFloat ();
3. }
4. public class AbstractTest extends AbstractIt {
5. private float f1= 1.0f;
6. private float getFloat () {return f1;}
7. }
What is the result?
A. Compilation is successful.
B. An error on line 6 causes a runtime failure.
C. An error at line 6 causes compilation to fail.
D. An error at line 2 causes compilation to fail.
答案: C
Question No 26
Exhibit:
1. public class test(
2. public int aMethod()[
3. static int i=0;
4. i++;
5. return I;
6. ]
7. public static void main (String args[]){
8. test test = new test();
9. test.aMethod();
10.int j = test.aMethod();
11.System.out.printIn(j);
12.}
13.)
What is the result?
A. Compilation will fail.
B. Compilation will succeed and the program will print 「0」
C. Compilation will succeed and the program will print 「1」
D. Compilation will succeed and the program will print 「2」
答案: D
Question No 27
Given:
1. class super {
2. public float getNum() {return 3.0f;}
3. }
4.
5. public class Sub extends Super {
6.
7. }
Which method, placed at line 6, will cause a compiler error?
A. Public float getNum() {return 4.0f; }
B. Public void getNum () { }
C. Public void getNum (double d) { }
D. Public double getNum (float d) {retrun 4.0f; }
答案: B
Question No 28
Which declaration prevents creating a subclass of an outer class?
A. Static class FooBar{}
B. Private class FooBar{}
C. Abstract public class FooBar{}
D. Final public class FooBar{}
E. Final abstract class FooBar{}
答案: D
Question No 29
Given:
1. byte [] arry1, array2[];
2. byte array3 [][];
3. byte[][] array4;
If each array has been initialized, which statement will cause a compiler error?
A. Array2 = array1;
B. Array2 = array3;
C. Array2 = array4;
D. Both A and B
E. Both A and C
F. Both B and C
答案: F
Question No 30
Exhibit:
1. class super (
2. public int I = 0;
3.
4. public super (string text) (
5. I = 1
6. )
7. )
8.
9. public class sub extends super (
10. public sub (string text) (
11. i= 2
12. )
13.
14. public static void main (straing args[]) (
15. sub sub = new sub (「Hello」);
16. system.out. PrintIn(sub.i);
17. )
18. )
What is the result?
A. Compilation will fail.
B. Compilation will succeed and the program will print 「0」
C. Compilation will succeed and the program will print 「1」
D. Compilation will succeed and the program will print 「2」
答案: A
Question No 31
Given:
1. public class returnIt (
2. returnType methodA(byte x, double y) (
3. return (short) x/y * 2;
4. )
5. )
What is the valid returnType for methodA in line 2?
A. Int
B. Byte
C. Long
D. Short
E. Float
F. Double
答案: F
Question No 32
Given the ActionEvent, which method allows you to identify the affected component?
A. GetClass.
B. GetTarget.
C. GetSource.
D. GetComponent.
E. GetTargetComponent.
答案: C
Question No 33
Which is a method of the MouseMotionListener interface?
A. Public void mouseMoved(MouseEvent)
B. Public boolean mouseMoved(MouseEvent)
C. Public void mouseMoved(MouseMotionEvent)
D. Public boolean MouseMoved(MouseMotionEvent)
E. Public boolean mouseMoved(MouseMotionEvent)
答案: A
B. 人教版初二上冊數學 每單元的經典練習題 不要太多但要經典!就是期末很有可能考到這個類型的練習,必賞!
一、 選擇題(每小題3分,共30分)
1. 以下各組數為邊長的三角形中,能組成直角三角形的是( )
A. 3、4、6 B.15、20、25 C.5、12、15 D.10、16、25
2、已知點P到x軸距離為3,到y軸的距離為2,則P點坐標一定為
A、(3,2) B、(2,3) C、(-3,-2) D、以上答案都不對.
3.下圖中幾何體的主視圖是
4.已知點P(3,-2)與點Q關於x軸對稱,則Q點的坐標為( )
A.(-3,2) B.(-3,-2) C.(3,2) D.(3,-2)
5.若正比例函數y=(1-2m)x的圖象經過點A(x1,y1)和點B(x2,y2),當x1<x2時,y1>y2,則m的取值范圍是 ( )
A. m<0 B. m>0 C. m<12 D. m>12
6. 如圖,∠1和∠2互補,∠3=130°,那麼∠4的度數是( )
A. 50° B. 60° C.70° D.80°
7.下列圖象中,表示直線y=x-1的是( )
8.下列圖形中,不能經過折疊圍成正方形的是( )
(A) (B) (C) (D)
9.等腰三角形的兩條邊長是4和5,則它的周長是( )
A. 12 B. 13 C. 14 D. 13或14
10.下列判斷正確的是 ( )
A. 頂角相等的的兩個等腰三角形全等
B. 腰相等的兩個等腰三角形全等
C. 有一邊及一銳角相等的兩個直角三角形全等
D. 頂角和底邊分別相等的兩個等腰三角形全等
二、 填空題(每小題4分,共24分)
11. 已知樣本:3,4,0,-2,6,1,那麼這個樣本的方差是_____________.
12.不等式2x-1<3的非負整數解是
13.已知某一次函數的圖象經過點(-1,2),且函數y的值隨自變數x的增大而減小,請寫出一個符合上述條件的函數關系式:____________.
14.等腰直角三角形的一條直角邊為1cm,則它的斜邊上的高線是________cm.
15.在Rt△ABC中, AB=5,BC=3,則AC=___________.
16.將點P(-3,y)向下平移3個單位,向左平移2個單位後得到點Q(x,-1),則xy=___________。
三、解答題
17.解不等式組,並把其解集在數軸上表示出來:(本題滿分6分)
18.已知如圖,BD、CE是△ABC的高線,且BD=CE,則△ABC是等腰三角形嗎?請你說明理由。(本題滿分6分)
19.王老師給初二(1)班同學分練習本,如果每人分到4本,那麼還剩24
本;如果每人分到5本,那麼只有一個同學分到的練習本不足5本。
請計算這個班的人數。(本題滿分6分)
20.(本題滿分8分)已知一次函數的圖象經過(2,5)和(-1,-1)兩點.
(1)求這個一次函數的解析式
(2)畫出這個函數的圖象.
21. (本題滿分8分)某中學開展「八榮八恥」演講比賽活動,九(1)、九(2)班根據初賽成績各選出5名選手參加復賽,兩個班各選出的5名選手的復賽成績(滿分為100分)如下圖所示。(1)根據左圖填寫下表
平均分(分) 中位數(分) 眾數(分)
九(1)班 85 85
九(2班 85 80
(2)結合兩班復賽成績的平均數和中位數,分析哪個班級的復賽成績較好?
(3)如果在每班參加復賽的選手中分別選出2人參加決賽,你認為哪個班的實力更強一些,說明理由。
如果還要就到http://wenku..com/view/96e0460b76c66137ee061912.html上看
C. 電力機車鉗工中級工及格分數線是多少
電力機車鉗工》內容分為七大部分,包括初級練習題、中級練習題、高級練習題、技師練習題、高級技師練習題、共性規章類練習題,職業道德類練習題,題後附有參考答案
D. 適合初中生,邏輯推理之類的練習書籍,不要小說,要練習題,最好是訓練邏輯推理,偵探破案之類的
哈佛鍛煉學生的300個推理游戲
E. 裝載機司機的內容簡介
《裝載機司機》根據鐵道部人才服務中心的有關要求進行編寫,內容以相應的《國家職業標准》、《鐵路技術管理規程》和鐵道部有關技術規章為依據,全書分為六大部分,有裝載機司機初級練習題660道,裝載機司機中級練習題677道,裝載機司機高級練習題645道,裝載機司機技師練習題493道,共性規章類練習題118道,職業道德類練習題40道,題後附有參考答案。
《裝載機司機》針對鑒定考核內容和形式編寫,是各單位組織鑒定前的培訓和申請鑒定人員自學的必備用書,對各類職業學校師生也有重要的參考價值。 第一部分 初級工
一、裝載機司機初級練習題
(一)選擇題
(二)判斷題
二、裝載機司機初級練習題參考答案
(一)選擇題
(二)判斷題
第二部分中級工
一、裝載機司機中級練習題-
(一)選擇題
(二)判斷題
二、裝載機司機中級練習題參考答案
(一)選擇題
(二)判斷題
第三部分 高級工
一、裝載機司機高級練習題
(一)選擇題
(二)判斷題
二、裝載機司機高級練習題參考答案
(一)選擇題
(二)判斷題
第四部分 技師
一、裝載機司機技師練習題
(一)填空題-
(二)選擇題
(三)判斷題
(四)簡答題
(五)計算題
(六)論述題
(七)繪圖題
二、裝載機司機技師練習題參考答案
(一)填空題
(二)選擇題
(三)判斷題
(四)簡答題
(五)計算題
(六)論述題
(七)繪圖題
第五部分 共性規章類(適用本工種的所有等級)
一、共性規章類練習題
(一)選擇題
(二)判斷題
二、共性規章類練習題參考答案
(一)選擇題
(二)判斷題
第六部分 職業道德類(適用本工種的所有等級)
一、職業道德類練習題
(一)選擇題
(二)判斷題
二、職業道德類練習題參考答案
(一)選擇題
(二)判斷題 根據《中華人民共和國勞動法》和國家職業技能鑒定的有關規定,結合鐵路技術裝備水平快速提升、運輸生產能力快速擴充的實際,以客觀反映現階段鐵路特有職業(工種)的水平和對從業人員的職業技能要求為目標,為鐵路職業技能鑒定提供科學、合理、規范的依據,是健全和完善鐵路技能人才評價體系的重要組成部分。
近年來,由於鐵路運輸生產技術發展較快,鐵路有關技術規章進行相應修訂,原《鐵路職業技能鑒定指導叢書》的內容已經越來越不適應形勢發展和當前工作的需要。為適應和諧鐵路建設的要求,進一步維護職業技能鑒定的嚴肅性和權威性,充分體現職業技能鑒定內容和要求的公正合理,規范職業技能鑒定行為。統一職業技能鑒定標准,保證職業技能鑒定質量,提高鐵路技術工人整體素質,我們重新組織編寫了《鐵路職業技能鑒定參考叢書》。
F. C++編程題-----類與對象練習題
.h
class Student
{
private:
double score;
static double total;
static int count;
public:
static double sum();
static double average();
int scoretotalcount(double s);
}
.cpp
static double Student::sum()
{
return total;
}
static double Student::average()
{
return total / count;
}
int Student::scoretotalcount(double s)
{
score = s;
total += s;
count++;
return count;
}
main
void main()
{
int nCount = 0;
Student stu;
for(int i = 0; i < 10; i++)
nCount = stu.scoretotalcount( i + 10.3);
cout << "sum = "<< stu.sum()<<endl;
cout<<"nCount = "<< nCount <<endl;
cout<<"average = "<< stu.average()<<endl;
}
G. 醫師實踐技能考試西醫體格檢查練習類型題誰有萬分感謝!
01、請敘述並演示下頜淋巴結的觸診。
02、請敘述並演示巴彬斯基征(Babinski征)。
03、請敘述並演示反跳痛的檢查方法以及陽性特徵。
04、請敘述並演示中等以上腹水的叩診檢查方法。
05、請敘述並演示心臟相對濁音界的叩診。
06、請敘述並演示心臟觸診。
07、請敘述並演示心臟瓣膜聽診內容。
08、請敘述並演示右下腹疼痛的病人進行壓痛和反跳痛的檢查。
09、請敘述並演示右腎觸診。
10、請敘述並演示心臟五個聽診區的體表定位。
11、請敘述並演示心臟的聽診順序。
12、請敘述並演示甲狀腺的觸診檢查方法。
13、請敘述並演示脊柱的活動度檢查。
14、請敘述並演示腦膜刺激征中頸強直的檢查方法。(布魯斯基征)
15、請敘述並演示脊柱的叩診檢查。
16、請敘述並演示脾臟的觸診與測量方法。
17、請敘述並演示奧本漢姆征(Oppenheim征)。
18、請敘述並演示頸部淋巴結的觸診與注意事項。
19、請敘述並演示鎖骨上淋巴結的觸診檢查。
20、請敘述並演示移動性濁音的叩診。
21、請敘述並演示腹部如何視診。
22、請敘述並演示腹部扣診檢查。
23、請敘述並演示腹部液波振顫的檢查方法。
24、請敘述並演示肝上界扣診。
25、請敘述並演示肝腫大患者肝臟觸診的操作。
26、請敘述並演示肝臟上界的叩診。
27、請敘述並演示肝臟的觸診檢查方法。
28、請敘述並演示肝頸靜脈迴流徵檢查方法及陽性意義。
29、請敘述並演示間接叩診的方法。
30、請敘述並演示急性膽囊炎的莫菲氏(Murphy)征檢查。
31、請敘述並演示肱二頭肌、請敘述並演示肱三頭肌反射的檢查。
32、請敘述並演示肱二頭肌肌腱反射。
33、請敘述並演示肱三頭肌反射。
34、請敘述並演示肺下界叩診的操作。
35、請敘述並演示肺下界移動度叩診。
36、請敘述並演示肺臟的聽診的操作。
37、請敘述並演示肺部間接叩診的方法。
38、請敘述並演示肺部直接扣診。
39、請敘述並演示肺部觸診語音震額的檢查方法。
40、請敘述並演示腎區叩擊痛的檢查方法。
41、請敘述並演示腎區觸診檢查。
42、請敘述並演示腎病和尿路感染壓痛點的解剖位置。
43、請敘述並演示膽囊觸診的方法。
44、請敘述並演示腹部移動性濁音的檢查方法。
45、請敘述並演示腹壁神經反射的檢查及其陽性意義。
46、請敘述並演示跟、膝、脛實驗的操作方法。
47、請敘述並演示膀胱觸診 。
48、請敘述並演示振水音的檢查。
49、請敘述並演示浮髕試驗並敘述其陽性意義。
50、請敘述並演示膝反射操作。
51、請敘述並演示霍夫曼征(Hoffmann征)檢查,並敘述陽性特徵。
52、請敘述並演示瞳孔對光反射的檢查方法。
53、請敘述並演示指鼻試驗。
H. 請教一道C++類定義的練習題
把源代碼發上來讓大家看看