当前位置:首页 » 法规百科 » 桥隧工共性规章类练习题

桥隧工共性规章类练习题

发布时间: 2022-02-03 19:37:03

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++类定义的练习题

把源代码发上来让大家看看

热点内容
明星推荐产品带法律责任吗 发布:2025-06-23 09:16:23 浏览:524
社会与法栏目剧青春励志剧 发布:2025-06-23 09:14:37 浏览:207
法院王兴夫 发布:2025-06-23 09:10:37 浏览:901
婚姻法对女人不公之处 发布:2025-06-23 09:06:22 浏览:702
民法典修改了哪些 发布:2025-06-23 09:05:36 浏览:720
塔吊斜吊法律责任 发布:2025-06-23 09:03:34 浏览:739
建筑公司收购法律依据 发布:2025-06-23 08:33:11 浏览:978
长沙市民法律援助 发布:2025-06-23 08:06:34 浏览:904
不顾规章制度 发布:2025-06-23 07:58:59 浏览:649
海南劳动合同法咨询热线 发布:2025-06-23 07:47:21 浏览:9