单选题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 Ⅲ

单选题
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.

相关考题:

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;

单选题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 Ⅲ

单选题a and b are positive, a is even and b is odd. Which of the following must also be odd?AabBa/bCa + 2bDbaE(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?An+5Bn+6Cn+7Dn+8En+9

单选题Set X = even integers and Set Y = odd integers. Therefore X ∩ Y = ______.Aprime numbersBintegersCempty setDcomposite numbersEwhole 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.AprovideBprovidesCprovidingDbe 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.ANoneBI onlyCII onlyDIII onlyEI, 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?Aw2+16Bw+16C4w+16D4w+4Ew+4

单选题How many positive integers less than 70 are equal to the product of a positive multiple of 5 and an even number?A4B6C9D10E11

单选题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().Ato be seaworthyBbeing seaworthyCbe seaworthyDseaworthy

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