网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
相间短路的阻抗继电器采用0°接线。例如IJ=IB-IA时,UJ=()。
- A、UB
- B、UB-UA
- C、UA-UB
- D、UA
参考答案
更多 “相间短路的阻抗继电器采用0°接线。例如IJ=IB-IA时,UJ=()。A、UBB、UB-UAC、UA-UBD、UA” 相关考题
考题
下面的程序代码实现将一个一维数组中元素向右循环移动,移位次数由文本框Text输入。例如数组各元素的值依次为0,1,2,3,4,5,6,7,8,9,10;移动三次后,各元素的值依次为8,9,10,0,1,2,3,4,5,6,7。Private Sub Moveright(x()As Integer)Dim i As IntegerDim j As IntegerDim k As Integeri=UBound(x)j=x(i)For k=i To ______ Step-1_______Next kx(LBound(x))=jEnd SubPrivate Sub Command1_Click()Dim a(10)As IntegerDim i As IntegerDim j As IntegerDim k As IntegerFor i=0 To 10a(i)=iNext ij=Val(Text1.Text)k=0Dok=k+1Call MoveRight(a)Loop Until k=jFor i=0 To 10Print a(i);Next iEnd Sub
考题
( 24 )有以下程序:Option Base 1Dim arr() As IntegerPrivate Sub Form_Click()Dim i As Integer, j As IntegerReDim arr(3, 2)For i = 1 To 3For j = 1 To 2arr(i, j) = i * 2 + jNext jNext iReDim Preserve arr(3, 4)For j = 3 To 4arr(3, j) = j + 9Next jPrint arr(3, 2); arr(3, 4)End Sub程序运行后,单击窗体,输出结果为A ) 8 13B ) 0 13C ) 7 12D ) 0 0
考题
下面是用冒泡法将5个整数按升序排列,请将程序补充完整。Sub GASR()Dim mm=Array(10, 1, 5, 6, 7)For i=0 To 3For j= 【13】If m(i) =m(j) Then【14】m(i) =m(j)m(j) =tEnd IfNext j【15】For i=0 To 4Print m(i)Next iEnd Sub
考题
阻抗继电器的接线方式中用于反映各种接地短路有哪些?()
A.相间0°接线(相间阻抗继电器的接线方式)B.有零序电流补偿的0°接线方式(接地阻抗继电器接线方式)C.+30°接线D.-30°接线
考题
在窗体上画一个名称为CoilTlilandl的命令按钮,然后编写如下事件过程: Private Sub command1 Click() Dim m As Integer, i As Integer, x(3)As Integer For i=0 To 3:x(i)=i:Next i For i = 1 To 2: Call sub1(x,i):Next i For i = 0 To 3: Print x(i);: Next i End Sub Private Sub sub1(a()As Integer,k As Integer) Dim i As Integer Do a(k)=a(k)+a(k+1) j = j + 1 Loop While j < 2 End Sub 程序运行后,单击命令按钮,则窗体上显示的内容是A.0 3 7 5B.0 1 2 3C.3 2 4 5D.0 5 8 3
考题
Private Sub Commandl Click()Dim i As Integer, j As IntegerDim a (10,10)As IntegerFor i=1 To 3For j= i To 3a(i,j)=(i-1)*3+jPrint a (i,j);Next jPrintNext iEnd Sub程序运行后,单击命令按钮,窗体上显示的是( )。
考题
阅读以下说明及Visual Basic程序代码,将应填入(n)处的字句写在对应栏内。[说明]下面的程序演示了根据随机产生的奖牌数,生成金银奖牌榜的过程。程序使用的排序法是简单排序法。以金牌得数为例,其思想是选择最大的元素,将它交换到最前面;然后对剩下的部分采用同样的方法,直到全部排序完成。程序界面中,左右两个文本框分别用于存放随机产生的奖牌数以及生成的奖牌榜,名为Text1和Text2,上下两个按钮分别名为Command1和Command2。代码中使用的量主要有:一维数组 cntries,用于存储10个国家的名称,二维数组medals,其元素medals(i,0)和medals(i,1)分别用于存放第i个(i从0开始)国家的金、银牌数目。[Visual Basic代码]Dim cntries(10) As String, medals(10,2) As Integer’随机产生奖牌数Sub newMedals()…… ’为数组cntries和medals赋值End Sub’输出奖牌榜Sub printOut(txt As (1) )Dim strResuh As String, i As IntegerstrResult=“国家” Chr(9) “金牌数” Chr(9) “银牌数” vbCrLfFor i=0 To 9strResult = strResult cntries(i) Chr(9) medals(i,0) Chr(9) medals(i,1) vbCrLfNexttxt.Text = strResultEnd Sub’交换两变量的值Sub exchange( (2) a As Variant, (2) b As Variant)Dim temp As Varianttemp = a: a = b: b = tempEnd Sub’随机产生并输出奖牌数Private Sub Command1_Click()newMedalsprintOut Text1End Sub’生成并输出奖牌榜Private Sub Command2_Click()Dim i,j, k As Integer, temp As StringFor i = 0 To 9 ’按金牌数排序j = i ’找到自第i个位置起全部数据中金牌得数最多者,记其下标为jFor k = i + 1 To 9If (3) Then j=kNextIf i < > j Then ’若i,j不等,则交换对应位置的国家名、金银牌数目exchange cntnes(i), entries(j)exchange medals(i, 0), medals(j, 0)exchange medals(i, 1), medals(j, 1)End IfNextFor i = 0 To 9 ’按银牌数进行二次排序j = iFor k = i + 1 To 9If medals(k,0) <> medals(j, 0) Then (4)If (5) Then j = kNextIf i < > j Thenexchange cntries(i), cntries(j)exchange medals(i, 1), medals(j, 1)End IfNextprintOut Text2End Sub
考题
下列程序运行后的输出结果是______。Private Sub f(k,s) s = 1 for j = 1 To k s=s*j Next jEnd SubPrivate Sub Command1_ Click () Sum = 0 for i = 1 To 3 Call f(i, s) Sum = Sum + s Next i Print Sum End SubA.0B.3C.6D.9
考题
下列程序运行后的输出结果是______。Private Sub f(k,s)s=1For j=1 To ks=s*jNextEnd SubPrivate Sub Command1_Click()Sum=0For i=1 To 3Call f(i,s)Sum=Sum+sNextPrint SumEnd Sub
考题
class Super { public int i = 0; public Super(String text) { i = 1; } } public class Sub extends Super { public Sub(String text) { i = 2; } public static void main(String args[]) { Sub sub = new Sub(“Hello”); System.out.println(sub.i); } } What is the result?() A、 0B、 1C、 2D、 Compilation fails.
考题
单选题class Super { public int i = 0; public Super(String text) { i = 1; } } public class Sub extends Super { public Sub(String text) { i = 2; } public static void main(String args[]) { Sub sub = new Sub(“Hello”); System.out.println(sub.i); } } What is the result?()A
0B
1C
2D
Compilation fails.
热门标签
最新试卷