apple pear
banana pear
apple apple
apple banana
banana banana
第1题:
在窗体上先后画两个图片框,名称分别为Picture1和banana,banana中添加了香蕉图片(见图1),且将bananA、DragMode属性设置为1。要求程序运行时,可以用鼠标把banana拖曳到Picttne1中(见图2)。能实现此功能的事件过程是______。
A.Private Sub Form_DlagDrop(Source As Control,X As Single,Y As Single) bananA、Move Picture1.Left+X,Picture1.Top+Y End Sub
B.Private Sub banana_DragDrop(Source As Control,X As Single,Y As Single) SourcE.Move Picture1.Lefi+X,Picture1.Top+Y End Sub
C.Private Sub Picture1_DmgDrop(Source As Contro1,X As Single,Y AS Single) SourcE.Move Picture1.Left+X,Picture1.Top+Y End Sub
D.Private Sub Picture1_DragDrop(Source As Control,X As Single,Y As Single) bananA、Move bananA、Let+X,banan.Top+Y End Sub
第2题:
A.one, the other
B.one, another
C.an apple, another apple
D.an apple, one apple
第3题:
在窗体E先后画2个图片框,名称分别为Picture1和banana,banana中添加了香蕉图片,如图1所示,且将banana.DragMode属性设置为1。要求程序运行时,可以用鼠标把banana拖拽到Picture1中,如图2所示。能实现此功能的事件过程是( )。
A.Private 3ub Form—DragDrop(Source As Control,X As Single,Y As Single) banana.Move Picture1.Left+X,Picture1.Top+Y End Sub
B.Private Sub banana_DragDrop(Source As Control,X As Single,Y As Single) Source.Move Picture1.Left+X,Picture 1.Top+Y End Sub
C.Private Sub Picturei_DragDrop(Source As Control,X As Single,Y As Single) Source.Move Picture1.Left+X,Picture1.Top+Y End Sub
D.Private Sub Picture1_DragDrop(Source As Control,X As Single,Y As Single) banana.Move banana.Left+X,banana.Top +Y End Sub
第4题:
第5题:
在MAC系统中,AdobePhotoshop软件[自由变形]的快捷键是()。
第6题:
import java.util.*; class Banana3 { public static void main(String [] args) { int x = 2; Banana3 b = new Banana3(); b.go(x); } static { x += x; } void go(int x) { ++x; System.out.println(x); } } 结果为:()
第7题:
Assuming that the serializeBanana2() and the deserializeBanana2() methods will correctly use Java serialization and given: import java.io.*; class Food {Food() { System.out.print(”1”); } } class Fruit extends Food implements Serializable { Fruit() { System.out.print(”2”); } } public class Banana2 extends Fruit { int size = 42; public static void main(String [] args) { Banana2 b = new Banana2(); b.serializeBanana2(b); // assume correct serialization b = b.deserializeBanana2(b); // assume correct System.out.println(” restored “+ b.size + “ “); } // more Banana2 methods } What is the result?()
第8题:
Assuming that the serializeBanana() and the deserializeBanana() methods will correctly use Java serialization and given: import java.io.*; class Food implemertts Serializable {int good = 3;} class Fruit externds Food {int juice = 5;} public class Banana extends Fruit { int yellow = 4; public static void main(String [] args) { Banana b = new Banana(); Banana b2 = new Banana(); b.serializeBanana(b); // assume correct serialization b2 = b.deserializeBanana(); // assume correct System.out.println(”restore “+b2.yellow+ b2.juice+b2.good); } // more Banana methods go here } What is the result?()
第9题:
try more apples to see if the natural law has changed
eat the rest of the apple at once
reject the law stating that hard and green apples are usually sour
conduct further investigations and make adjustments to the law of apples as necessary
第10题:
第11题:
第12题:
2
3
5
编译失败
第13题:
第14题:
importjava.util.*;publicclassPQ{publicstaticvoidmain(String[]args){PriorityQueuepq=newPriorityQueue();pq.add(”carrot”);pq.add(”apple”);pq.add(”banana”);System.out.println(pq.poll()+”:”+pq.peek());}}Whatistheresult?()
A.apple:apple
B.carrot:apple
C.apple:banana
D.banana:apple
E.carrot:carrot
F.carrot:banana
第15题:
A.l = [1, 2, 3, 4, 5]; del l[2:4]; 则运算之后l为[1,2, 3]。
B.basket = ['apple', 'banana', 'apple', 'orange'] ;fruit = set(basket);fruit2 = set(['apple', 'melo']); len(fruit |fruit2) 的结果是5。
C.basket = ['apple', 'banana', 'apple', 'orange'] ;fruit = set(basket); len(fruit) 的运算结果是4。
D.l = [2, 1, 3, 5, 4]; l.remove(3); l.sort(); 则运算之后l为[1, 2, 4, 5]
第16题:
Do you like an apple or a banana?()
AThank you
BYou are so nice
CI want oranges
DEither will do
第17题:
Do you like an apple or a banana?()
第18题:
import java.util.*; public class PQ { public static void main(String[] args) { PriorityQueue
第19题:
表达式’apple.peach,banana,pear’.find(’ppp’)的值为()。
第20题:
apple:apple
carrot:apple
apple:banana
banana:apple
carrot:carrot
carrot:banana
第21题:
Compilation fails.
1 restored 42
12 restored 42
121 restored 42
1212 restored 42
An exception is thrown at runtime.
第22题:
Thank you
You are so nice
I want oranges
Either will do
第23题:
restore 400
restore 403
restore 453
Compilation fails.
An exception is thrown at runtime.
第24题:
apple pear
banana pear
apple apple
apple banana
banana banana