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

题目内容 (请给出正确答案)
单选题
If a and b are integers and the sum of ab and b is even, which of the following could be true?Ⅰ. a and b are both odd.Ⅱ. a is even and b is odd.Ⅲ. a is odd and b is even.
A

Ⅰ only

B

Ⅱonly

C

Ⅲ only

D

Ⅰ and Ⅱ

E

Ⅰand Ⅲ


参考答案

参考解析
解析:
Plug-in. StatementⅠ:if a and b are both odd, says a=1 and b=3, then ab+b=6. Since the sum is even, statementⅠ is true. StatementⅡ:1et a=2 and b=3, then ab+b=9. Since the sum is odd, this statement is false. Statement Ⅲ:let a=3 and b=2, then ab+b=8, which is even. So both statement Ⅰand statementⅢ are true.
更多 “单选题If a and b are integers and the sum of ab and b is even, which of the following could be true?Ⅰ. a and b are both odd.Ⅱ. a is even and b is odd.Ⅲ. a is odd and b is even.A Ⅰ onlyB ⅡonlyC Ⅲ onlyD Ⅰ and ⅡE Ⅰand Ⅲ” 相关考题
考题 Excel中正确的公式有()。A.=AB3*Sheet3!A2B.=SUM(A3,B5,IX135)C.=SUM(A3,B5.C4)D.=SUM(A3,C4,D5:L9,26BX)

考题 在下列字符序列中,合法的标识符是 ( )A.P12&.aB.stud_100C.$ water.12D.88sum

考题 以下程序为输入50个学生某门课程的成绩,并求出平均成绩 DIMENSION A(50) sum=0 FOR i=1 TO 50 INPUT TO A(i) END FOR Aver=sum/50 ?“平均成绩为:”,Aver 程序空白处应填入A.sum=A(i)B.sum=sum+A(i)C.sum=sum+iD.sum=i

考题 下面程序段的输出结果是 public class Test{ public static void main(String args[]){ int n=5,sum=O; while(n>0){ sum+=n; --n; } System.out.println("sum is "+Sum); } }A.sum is 14B.sum is 15C.sum is 10D.sum is 5

考题 阅读如下程序, a = 1: b = 2: plus S, a, b: Print S:不能使其输出结果为3的plus过程为( )。 A、Sub plus(sum, a , b ): sum = a + b: End SubB、Sub plus(ByVal sum , a , b ): sum = a + b: End SubC、Sub plus(sum , ByVal a, ByVal b ): sum = a + b: End SubD、Sub plus(sum , ByRef a , ByRef b ): sum = a + b: End Sub

考题 设有函数模板templatEQSum(Qx,Qy){return(x)+(y);}则下列语句中对该函数模板错误的使用是()。A、Sum(10,2);B、Sum(5.0,6.7);C、Sum(15.2f,16.0f);D、Sum(〃AB〃,〃CD〃);

考题 include “stdio.h” void main() { int sum=0,a=11; while(a #include “stdio.h” void main() { int sum=0,a=11; while(aA. sum=0B. sum=55C. sum=10D. sum=11

考题 以下C程序的运行结果为______。main(){ int i=1,sum=0; loop:if(i<=10) { sum+=i; i++; goto loop; } printf("sum=%d\n",sum);}A.sum=10B.sum=55C.sum=100D.sum=88

考题 下列程序的执行结果是______。 public class ex3 { public static void main(String[] args) { int sum=0; for(int i=1;i<=100;i++) { sum+=i; } System.out.println("sum="+sum); }A.sum=5050B.sum=4950C.sum=100D.sum=1

考题 下列程序的输出结果是( )。 public class Test { public static void main (String[] args) { int n=5,sum=0; while (n>0) { sum+=n; --n; } System.out.println("Sum is"+sum); } }A.sum is 14B.sum is 15C.sum is 10D.sum is 5

考题 在窗体中有一个命令按钮Commandl,编写事件代码如下:Private Sub Command1_CliCk()Dim s As Integers=P(1)+P(2)+e(3)+P(4)debug.Print SEnd SUbPublic Function P(N AS Integer)Dim Sum As IntegerSum=0For i=1 To NSum=Sum+iNext iP=SumEnd Function打开窗体运行后,单击命令按钮,输出结果是A.15B.20C.25D.35

考题 使用VC6打开考生文件夹下的工程test41_1,此工程包含一个源程序文件test41_1.cpp,但该程序运行有问题,请改正函数中的错误,使该程序的输出结果为:7源程序文件test41_1.cpp清单如下:include<iostream.h>class myclass{int a, b;public:/***************** found *****************/int sum(myclass x);void set_ab(int i, int j);}:/**************** found ****************/void myclass:set_ab(int i, int j){a=i;b=j;}int sum (myclass x){/***************** found ***************/x.a+x.b;}void main ( ){myclass n;n.set_ab (3, 4);cout <<sum(n)<<endl;}

考题 下列程序的运行结果是( )。A.sum=18B.sum=10C.sum=9D.sum=25

考题 判断完数的算法,需要求因子之和,若累加器为sum,则sum应该赋初值为()A、sum=0;B、sum=i;C、sum=1;D、sum=sum;

考题 Excel中正确的公式有()。A、=AB3*Sheet3!A2B、=SUM(A3,B5,IX135)C、=SUM(A3,B5.C4)D、=SUM(A3,C4,D5:L9,26BX)

考题 累加求和中,与sum+=i;相同的是()。A、sum=sum+i;B、sum=i+sum;C、sum=i;D、i=sum;

考题 单选题a and b are positive, a is even and b is odd. Which of the following must also be odd?A abB a/bC a + 2bD baE (ab) a

考题 问答题x, 2y, and 2z-1 are consecutive integers.

考题 单选题What is the average (arithmetic mean) of 8 consecutive odd integers if the smallest of those integers is n?A n+5B n+6C n+7D n+8E n+9

考题 单选题Set X = even integers and Set Y = odd integers. Therefore X ∩ Y = ______.A prime numbersB integersC empty setD composite numbersE whole numbers

考题 多选题If x and y are both positive even integers, which of the following expressions must be even? (Select all such expressions.)AxyB(x+1)yCx(y+1)

考题 单选题Sometimes the contract()that the lump sum freight must be paid in advance and will not be returnable even if the vessel and/or her cargo are lost.A provideB providesC providingD be provided

考题 单选题If m and n are positive integers and 3m+n-1=2m+2n, which of the following must be true?I. m and n are consecutive integers.II. m is even.III. n is odd.A NoneB I onlyC II onlyD III onlyE I, II, and III

考题 单选题If the sum of 4 consecutive positive integers is w, in terms of w, which of the following represents the sum of the next 4 consecutive positive integers?A w2+16B w+16C 4w+16D 4w+4E w+4

考题 单选题How many positive integers less than 70 are equal to the product of a positive multiple of 5 and an even number?A 4B 6C 9D 10E 11

考题 单选题The carrier is entitled to limit his liability to the stated sum per package or unit even if he failedto exercise due diligence to make the vessel().A to be seaworthyB being seaworthyC be seaworthyD seaworthy

考题 填空题If a and b are distinct integers such that ab1 and b≠0, what is the greatest possible value of a/b?____