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

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

下列语句序列执行后,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
更多 “下列语句序列执行后,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” 相关考题
考题 下面程序的输出结果是()。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

考题 如果R5=1000,R6=2999,C=1,指令ADCR0,R5,R6执行后,R0=___【7】___,R5=___【8】___。

考题 下列ARM处理器的寄存器中,有对应影子寄存器的寄存器是( ) A. R0,R1B. R0,R8C. R8,R9D. R8,R13E. R9,R3

考题 读程序: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

考题 VoLTE在3GPP()版本协议中第一次出现。 A.R8B.R9C.R10D.R7E.R6

考题 下图所示的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

考题 A.R=CH,R=HB.R=CHOH,R=HC.R=COOH,R=HD.R=CH,R=OHE.R=CH,R=OCH大黄酸的结构

考题 给定元组演算表达式 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)}

考题 如右图所示,其中R1=5Ω,R2=10Ω,R3=8Ω,R4=3Ω,R5=6Ω,求图中A、B端等效电阻R?

考题 执行ARM指令MOV R0,R1,LSL#3后,R0的值为()。A、R1的3倍B、R1+3C、R1的8倍D、R1的8分之1

考题 请读程序: #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

考题 3GPPLTE的商用版本是A、R7B、R8C、R9D、R10

考题 ATPCS定义了寄存器组中的()作为参数传递和结果返回寄存器。A、R0,R1,R2,R3B、R4,R5,R6,R7C、R8,R9,R10,R11

考题 已知R1=8,R0=9,执行指令MOV R0,R1,LSR#3后,R0的值为()。A、1B、8C、0x10D、0x80

考题 NJ2型内燃机车的柴油机发火顺序为1R-1L-3R-3L-4R-4L-7R-7L-8R-8L-6R-6L-2R-2L-5R-5L。

考题 单选题取甲公司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 错