网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

如果 di1 和 di2 均为 low , 如下哪个程序会被执行?() IF di1= high THEN Seal-oval; ELSEIF di2= high THEN Seal-circle; ELSE Seal-outside; ENDIF

A.Seal-oval

B.Seal-circle

C.Seal-outside

D.都不执行


参考答案和解析
A
更多 “如果 di1 和 di2 均为 low , 如下哪个程序会被执行?() IF di1= high THEN Seal-oval; ELSEIF di2= high THEN Seal-circle; ELSE Seal-outside; ENDIFA.Seal-ovalB.Seal-circleC.Seal-outsideD.都不执行” 相关考题
考题 ENUM类型的字段level定义为(LOW、MIDDLE、HIGH),ORDERBYlevelasc的顺序是() A、HIGH、LOW、MIDDLEB、LOW、MIDDLE、HIGHC、MIDDLE、LOW、HIGHD、HIGH、MIDDLE、LOW

考题 ●试题三阅读下列函数说明和C代码,将应填入(n)处的字句写在答题纸的对应栏内。【说明】函数move(int*a,int n)用于整理数组a[]的前n个元素,使其中小于0的元素移到数组的前端,大于0的元素移到数组的后端,等于0的元素留在数表中间。令a[0]~a[low-1]小于0(初始为空);a[low]~a[i-1]等于0(初始为空);a[i]~a[high]还未考察,当前考察元素为a[i]。a[high+1]~a[n-1]大于0(初始为空)。【函数】move(int*a,int n){int i,low,high,t;low=i=0;high=n-1;while( (1) )if(a[i]0){t=a[i];a[i]=a[low];a[low]=t;(2) ;i++;}else if( (3) ){t=a[i];a[i]=a[high];a[high]=t;(4) ;}else (5) ;}

考题 N个有序整数数列已放在一维数组中,给定下列程序中,函数fun()的功能是:利用折半查找算法查找整数m在数组中的位置。若找到,则返回其下标值:反之,则返回-1。折半查找的基本算法是:每次查找前先确定数组中待查的范围:low和high(low<high),然后把m与中间位置(mid)中元素的值进行比较。如果m的值大于中间位置元素中的值,则下一次的查找范围放在中间位置之后的元素中;反之,下次查找范围落在中间位置之前的元素中。直到low>high,查找结束。请改正程序中的错误,使它能得出正确的结果。注意:不要改动main函数,不得增行或删行,也不得更改程序的结构。试题程序:include <stdio.h>define N 10/*************found*********************/void fun(int a[],int m){ int low--0,high=N-l,mid;while (low<=high){ mid=(low+high)/2;if(m<a[mid])high=mid-1;/*************found*********************/else if(m>=a [mid])low=mid+1;else return(mid);}return(-1);}main (){ int i,a[N]={-3,4,7,9,13,24,67,89,100,180},k,m;printf ("a数组中的数据如下: ");for(i=0;i<N;i++) printf("%d",a[i]);printf ("Enter m: "); scanf ("%d", m);k=fun (a,m);if (k>=0) printf ("m=%d, index=%d\n",m, k);else printf("Not be found!\n");}

考题 在块结构条件语句If-Then/Endif中()。 A、须至少有一个Elseif语句B、可以有任意多个ElseIf-Then语句C、如果没有Else语句,运行时将出现错误D、给定的条件只能是关系表达式

考题 写出如图空心变压器的输入的特性方程为()。A、u1=L1(di1/dt)+M(di2/dt)B、u1=L1(di1/dt)-M(di2/dt)C、其它

考题 如图空心变压器的输出的特性方程为()。A、u2=L1(di2/dt)-M(di1/dt)B、u2=L2(di2/dt)-M(di12/dt)C、其它

考题 The desirable properties of a marine fuel oil should include .A.high flash point and high viscosityB.low flash point and high viscosityC.low heating value and high sulphur contentD.high heating value and low sulphur content

考题 Conditions for crossing a rough bar are usually best at ______.A.low water slackB.high water slackC.high water ebbD.high water flood

考题 Every vent system outlet to atmosphere from a valve shall be located as high and at the furthest distance from a source of ignition as is practicable ______.A.low and at the shortest distanceB.low and at the furthest distanceC.high and at the shortest distanceD.high and at the furthest distance

考题 A barometer showing falling pressure indicates the approach of a ______.A.high pressure systemB.low pressure systemC.high dew pointD.low dew point

考题 给定包含n个正整数的数组A和正整数x,要判断数组A中是否存在两个元素之和等于x,先用插入排序算法对数组A进行排序,再用以下过程P来判断是否存在两个元素之和等于x。low=1;high=n;while(high>low)if A[low]+A[high]=x return true;else if A[low]+A[high]>x low++;else high--;return false;则过程P的时间复杂度为( ),整个算法的时间复杂度为(请作答此空)。A.O(n) B.O(nlgn) C.O(n2) D.O(n2lgn)

考题 数据结构与算法里,折半查找中,low指向低端的记录,high指向高端的记录,每次计算中间位置mid的公式是()。A、(lowhigh)/2B、(low+high)/2C、(low-high)/2D、low/2+high/2

考题 IF-ELSE-ENDIF-模块用于二选一:如果表达式值为TRUE,也就是说条件被满足,这样后面的程序模块被执行。如果条件不满足,ELSE分支被执行。

考题 数字口可以输出(),可以输入()。A、0(LOW)或1(HIGH);0-1023B、0(LOW)或1(HIGH);0.1023C、0(LOW)或1(HIGH);0或1D、0(LOW)或1(HIGH);0

考题 The population decreased from the 1840s until about 1970,largely because of().A、a low birth rateB、a high death rateC、a low employment rateD、a high emigration rate

考题 Foxbase中,关于条件分支语句说法正确的是()。A、最多只能有2重嵌套B、如果条件为真,则执行ELSE与ENDIF之间的语句C、如果条件为假,则执行IF与ELSE之间的语句D、如果条件为假,则执行ELSE与ENDIF之间的语句

考题 完成下列折半插入排序算法。 Void binasort(struct node r[MAXSIZE],int n) {for(i=2;i=n;i++){ r[0]=r[i];low=1;high=i-1; while(low=high){ mid=(low+high)/2; if(r[0].key else low=mid+1 ; } for(j=i-1;j=low;j- -)r[j+1]=r[j] ; r[low]=() ; } }

考题 Shell语言中,条件判断语句的形式为()A、ifexprthen…else…fiB、ifexpr{…}else{…}C、ifexprthen…elseif…endifD、ifexpr…else…endif

考题 井场RTU的DI2端子接启动开关信号。()

考题 在块结构条件语句If-Then/Endif中。()A、必须至少有一个Elseif语句B、可以有任意多个ElseIf-Then语句C、如果没有Else语句,运行时将出现错误D、给定的条件只能是关系表达式或逻辑表达式

考题 单选题数据结构与算法里,折半查找中,low指向低端的记录,high指向高端的记录,每次计算中间位置mid的公式是()。A (lowhigh)/2B (low+high)/2C (low-high)/2D low/2+high/2

考题 单选题Foxbase中,关于条件分支语句说法正确的是()。A 最多只能有2重嵌套B 如果条件为真,则执行ELSE与ENDIF之间的语句C 如果条件为假,则执行IF与ELSE之间的语句D 如果条件为假,则执行ELSE与ENDIF之间的语句

考题 单选题The direction of the surface wind is().A directly from high pressure toward low pressureB directly from low pressure toward high pressureC from high pressure toward low pressure deflected by the earth's rotationD from low pressure toward high pressure deflected by the earth's rotation

考题 单选题Either a low injection pressure or a leakage of piston rings is able to lead ().A a high exhaust temperatureB a high smoky exhaustC a high outputD a high compression

考题 单选题The soundings on the chart are based on the depth of water available at ().A mean low waterB mean lower low waterC mean high waterD mean high water springs

考题 单选题A tide is called diurnal when().A only one high and one low water occur during a lunar dayB the high tide is higher and the low tide is lower than usualC the high tide and low tide are exactly six hours apartD two high tides occur during a lunar day

考题 单选题Operational amplifiers, used primarily in analog circuits, are characterized by()A high input impedance, high gain and low output impedanceB high input impedance, high gain and high output impedanceC low input impedance, low gain and high output impedanceD low input impedance, high gain and low output impedance

考题 单选题鉴别乙醇和丁醇可以用下列哪个试剂()A Fehling试剂B Lucas试剂C Tollen试剂D I2/NaOH溶液