下列语句序列执行后,r 的值是()。 char ch = '8'; int r = 10; switch (ch + 1) { case '7': r = r + 3; case '8': r = r + 5; case '9': r = r + 6; break; default: r = r + 8; }A.13B.15C.16D.18
下列语句序列执行后,r 的值是()。 char ch = '8'; int r = 10; switch (ch + 1) { case '7': r = r + 3; case '8': r = r + 5; case '9': r = r + 6; break; default: r = r + 8; }
A.13
B.15
C.16
D.18
参考答案和解析
11
相关考题:
下面程序的输出结果是()。include f(int b[],int n){ int i,r;r = 1;for(i=0;i 下面程序的输出结果是( )。 include <stcdio.h> f(int b[],int n) { int i,r; r = 1; for(i=0;i<=n;i++) r=r*b[i]; return r; } main() { int x,a[]={2,3,4,5,6,7,8,9}; x=f(a,3); printf("%d\n",x); }A.720B.120C.24D.6
设有如下程序: import java.util.*; public class Sun { public static void main(String args[ ]) { int score; String a; Random r=new Random(); score=r.nextInt(4)+5; switch(score) { case 0: a="E"; break; case 1: a="D"; break; case 2: a="C"; break; case 3: a="B"; break; default: a="A"; } System.out.println(A) ; } } 程序运行的结果是( )。A.a="A"B.aa"E" a="A"C.a="E"D.a="C"
以下程序的执行结果是【】。 include int f(int b[],int n) { int i,r=1; for(i=0;i 以下程序的执行结果是【 】。include<iostream.h>int f(int b[],int n){int i,r=1;for(i=0;i<n;i++)r=r*b[i];return r;}void main(){int x,a[]={2,3,4,5,6,7,8,9};x=f(a,3);cout<<x<<endl;}
Let R and S be the relation respectively: Relation R:A B C Relation S:B C D 1 2 3 2 3 4 6 7 8 2 3 5 9 7 8 7 8 1 The number of tuples that the result of the expression R ∞ S( Here is the natural join of relations R and S)is(69).A.1B.4C.7D.10
执行下列语句后,r的值是 char ch='A';int r=6; switch(ch+5) {case'A':r=r+3; case'B':r=r+5; case'C':r=r+5;break; default:r/=2; }A.19B.3C.11D.7
下列程序执行的结果是______。 public class ex6 { public static void main(String[] args) { char ch='8'; int r=10; switch(ch+l) { case '7': r=r+3; case '8': r=r+5; case '9': r=r+6; break; default: ; } System.out.print(r); } }A.14B.13C.16D.10
如果有以下的函数定义及变量声明:void fun(double a, double b, double d, char c='*'){switch (c){case '+':d=a+ b;break;case '-':d=a-b; break;case '*':d=a*b; break;case '/':d=a/b; break;}}void main(){double r;┇}则下列函数中,调用正确的是( )。A.r=fun(60,5,7);B.r=fun(9.8,3.3,r,'-');C.fun(2.2,1.5,r);D.fun(fun(2,5,r,'+'),3,r,'*');
下列程序的执行结果是( )。includeint fun(int b[],int n){ int i,r=1;for(i=0;i 下列程序的执行结果是( )。 #include<iostream.h> int fun(int b[],int n) { int i,r=1; for(i=0;i<n;i++) r=r*b[i]; return r; } void main() { int x,a[]={1,2,3,4,5,6,7,8}; x=fun(a,3); cout<<x<<end1; }A.5B.6C.7D.8
以下程序的执行结果是()。includeint fun(int b[],int n){int i,r=1;for(i=0;i 以下程序的执行结果是( )。 #include<iostream.h> int fun(int b[],int n) { int i,r=1; for(i=0;i<n;i++) r=r*b[i]; } void main() { int x,a[]={1,2,3,4,5,6,7,8}; x=fun(a,3); cout<<x<<endl; }A.5B.6C.7D.8
读程序:includef(int b[],int n){ int i,r;r=1;for(i=0;i 读程序: #include <stdio.h> f(int b[],int n) { int i,r; r=1; for(i=0;i<=n;i++) r=r*b[i]; return r; } main() { int x,a[]={2,3,4,5,6,7,8,9}; x=f(a,3); printf("%d\n",x); } 上面程序的输出结果是( )。A.720B.120C.24D.6
下图所示的OSPF网络由3个区域组成。在这些路由器中,漏于主干路由器的是( ),属于区域边界路由器(ABR)钓是( ),属于自治系统边界路由器(ASBR)的是( )。A.R1B.R2C.R5D.R8A.R3B.R5C.R7D.R8A.R2B.R3C.R6D.R8
Given the network diagram, which routers currently make up the IS - IS backbone?() A. R3,R4,R6B. R2,R3,R6,R7C. R1 through R8D. R3,R4,R5,R6E. R2,R3,R4,R6,R7
Refertotheexhibit.TherearetwositesconnectedacrossWANlinks.Allintersiteandintrasitelinksalwayshavethesameroutingmetric.ThenetworkadministratorseesonlythetoproutersandlinksbeingusedbyhostsatbothLANAandLANB.Whatwouldbetwosuggestionstoload-balancethetrafficacrossbothWANlinks?()A.MakeHSRPtrackinterfacesbetweentheedgeandcorerouters.B.ReplaceHSRPwithGLBP.C.Addcrossedintrasitelinks:R1-R4,R2-R3,R5-R8,andR6-R7.D.MakeR3andR8havelowerHSRPprioritythanR1andR7.E.ReplaceHSRPwithVRRP
给定元组演算表达式 R*={t│(Эu)(R(t)∧S(u)∧t[3] A. A.R*={(3,7,11),(5,9,13),(6,10,14)}B. R*={(3.7.11),(4.5.6),(5.9.13),(6,10,14)}C. R*={(1,2,3),(4,5,6),(7,8,9)}D. R*={(1,2,3),(4,5,6),(7,8,9),(10,11,12)}
请读程序: #include f(int b[],int n) { int i,r;r=1; for(i=0;i=n;i++)r=r*b[i]; return r; } main() { int x,a[]={2,3,4,5,6,7,8,9}; x=f(a,3); printf("%d/n",x); } 上面程序的输出结果是()A、720B、120C、24D、6
下列索书号排列顺序正确的是()。A、R47/CM2-2、R473.72/CH2/1、R423.5/CY3-3、R47/CP1B、R473.72/CH2/1、R47/CM2-2、R423.5/CY3-3、R47/CP1C、R47/CP1、R47/CM2-2、R473.72/CH2/1、R423.5/CY3-3D、R423.5/CY3-3、R47/CP1、R47/CM2-2、R473.72/CH2/1
单选题取甲公司10个交易日的收益率为r样本,样本值为r1=4.684%,r2=4.597%,r3=4.321%,r4=4.373%,r5=4.280%,r6=4.136%,r7=4.150%,r8=3.982%,r9=4.270%,r10=4.261%,此样本的均值为( )。A 4. 207%B 4.305%C 4.321%D 4.373%
判断题NJ2型内燃机车的柴油机发火顺序为1R-1L-3R-3L-4R-4L-7R-7L-8R-8L-6R-6L-2R-2L-5R-5L。A对B错