多选题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)

题目
多选题
If x and y are both positive even integers, which of the following expressions must be even? (Select all such expressions.)
A

xy

B

(x+1)y

C

x(y+1)

参考答案和解析
正确答案: B,A
解析:
由于题目中x和y是变量,可以根据题干给出的条件给x, y设定符合条件的数值,代入各选项,看结果是否符合题干要求,即可得出答案。
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

已知x2=x+1,y2=y+1,且x≠y,则x3+y3=______。


答案:
解析:
4。解析:因为x2=x+1,y2 =y+1且x≠y,所以x,y是方程m2=m+1的两个不同的实数根,所以x+y=1,xy=-1,所以x3+y3=(x+y)(x2-xy+y2)=(x+y)[(x+y)2-3xy]=4。

第2题:

过点A(1,-1),B(-1,1)且圆心在直线x+y-2=0上的圆的方程是( )。

A.(x-3)2+(y+1)2=4
B.(x+3)2+(y-1)2=4
C.(x-1)2+(y-1)2=4
D.(x+1)2+(y+1)2=4

答案:C
解析:

第3题:

若有定义 :char *x="abcdefghi"; ,以下选项中正确运用了 strcpy 函数的是

A)char y[10]; strcpy(y,x[4]);

B)char y[10]; strcpy(++y,&x[1]);

C)char y[10],*s; strcpy(s=y+5,x);

D)char y[10],*s; strcpy(s=y+1,x+1);


正确答案:D

答案 D
解析 : 在字符拷贝函数中 strcpy( 字符数组 1 , 字符串 2) 中 , “ 字符数组 1 ” 必须写成数组名的形式,而且,数组 1 的长度要大于树组 2 的长度。因此本题 D 正确。

 

第4题:

Which of the following must occur when installing SCSI devices into the server?()

  • A、 Terminate the back end of the chain.
  • B、 Set the jumper to device ID 0.
  • C、 Terminate both ends of the chain.
  • D、 Set the jumper to cable select.

正确答案:C

第5题:

设以下变量都是int类型,则值不等于7的表达式是()。

  • A、x=y=6,x+y,x+1
  • B、x=y=6,x+y,y+1
  • C、x=6,x+1,y=6,x+y
  • D、y=6,y+1,x=y,x+1

正确答案:C

第6题:


A.(x+1)(y+1)=2,z=3
B.(x+1)(y-1)=2,z=3
C.(x+1)(y-1)=-2,z=3
D.(x+1)(y+1)=-2,z=3

答案:B
解析:

第7题:

设以下变量均为int类型,则值不等于7的表达式是( )

A.(x=y=6,x+y,x+1)
B.(x=y=6,x+y,y+1)
C.(x=6,x+1,y=6,x+y)
D.(y=6,y+1,x=y,x+1)

答案:C
解析:

第8题:

Rule 14 describes the action to be taken by vessels meeting head-on. Which of the following conditions must exist in order for this rule to apply?______.

A.Both vessels must be power-driven.

B.They must be meeting on reciprocal or nearly reciprocal courses.

C.The situation must involve risk of collision.

D.All of the above


正确答案:D
规则14描述船舶对遇局面将要采取的行动。为了使这个规则适用,以下哪个条件必须具备?两船均为机动船,他们必须相遇在相反或接近相反的航向上,局面必须有碰撞危险

第9题:

设以下变量均为int类型,则值不等于7的表达式是()。

  • A、(x=y=6,x+y,x+1)
  • B、(x=y=6,x+y,y+1)
  • C、(x=6,x+1,y=6,x+y)
  • D、(y=6,y+1,x=y,x+1)

正确答案:C

第10题:

Which statement is true regarding the COALESCE function?()

  • A、It can have a maximum of five expressions in a list 
  • B、It returns the highest NOT NULL value in the list for all rows 
  • C、It requires that all expressions in the list must be of the same data type 
  • D、It requires that at least one of the expressions in the list must have a NOT NULL value

正确答案:C

更多相关问题