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

None

B

I only

C

II only

D

III only

E

I, II, and III


相似考题
更多“If m and n are positive integers and 3m+n-1=2m+2n, which of”相关问题
  • 第1题:

    下列程序的功能是:将大于整数m且紧靠m的k个素数存入数组xx中。请编写函数num(int m, int k, int xx[])实现程序的要求,最后调用函数readwriteDAT() 把结果输出到文件out.dat中。例如:若输入“17, 5”,则应输出“19, 23, 29, 31, 37”。注意:部分源程序已给出。请勿改动主函数main()和函数readwriteDAT()的内容。#include <conio.h>#include <stdio.h>void readwriteDat();void num(int m, int k, int xx[]){ }main(){ int m, n, xx[1000]; printf("\nPlease enter two integers:"); scanf("%d%d", &m, &n); num(m, n, xx); for (m=0; m<n; m++) printf("%d ", xx[m]); printf("\n"); readwriteDat();}void readwriteDat(){ int m, n, xx[1000], i; FILE *rf, *wf; rf = fopen("in.dat", "r"); wf = fopen("out.dat", "w"); for (i=0; i<10; i++) { fscanf(rf, "%d %d", &m, &n); num(m, n, xx); for (m=0; m<n; m++) fprintf(wf, "%d ", xx[m]); fprintf(wf, "\n"); } fclose(rf); fclose(wf);}


    正确答案:参考试题解析
    【解析及答案】
    该程序属于按条件查找类型的题目,考核的知识点主要为:判断一个数字是否为素数及统计素数的个数。
    本题的解题思路为:从整数m+1开始逐个判断一个整数是否为素数。若是素数,则将其存入数组xx中,直至找到连续的k个素数为止。判断一个整数是否为素数,可以通过将该整数分别除以2到该整数的1/2之间的所有整数来进行。例如,要判断17是否为素数,则将其分别除以2、3、4、5、6、7、8,若都不能整除,该整数就一定是素数。要寻找连续的k个素数,可以设置一个记录个数的变量,每找到1个素数时,该记录的值就增加1。
    程序的流程为:首先从键盘输入2个十进制整数,以第1个整数作为基础开始寻找素数,将第2个整数作为需要寻找素数的个数,然后通过函数readwriteDat() 从文件in.dat中读入10组数据,通过函数num() 的计算,把结果写入文件out.dat中。在函数num() 中使用一个while循环查找k个素数,每次查找成功后,n的值将增加1。因为不能确定循环执行的具体次数,所以设定while循环的条件恒为真(条件为“1”),并加入跳出循环的控制语句,即当nk时循环结束。进入while循环体后,首先使用for循环确定当前数字是否为素数,即判断当前整数data是否能被2到它的1/2之间的任意整数整除。如果能被整除,则说明该整数不是素数,程序通过break语句跳出for循环(此时i≤half);否则,当循环执行到i>half时,程序正常退出for循环体,说明当前整数data是素数。这里的i值既是for循环的计数器,又是当前数字是否为素数的标志。if语句将根据此时i值的大小判断整数data是否为素数,如果是素数,则将整数data存入数组xx中,同时记录素数个数的变量n的值将增加1。接着判断变量n的值是否达到了要求的个数,如果达到,则跳出while循环,函数num() 结束;否则,整数data加1后重新进入while循环体,直到找到满足题意的个数的素数,函数num() 结束。
    void num(int m,int k,int xx[])
    {int data=m+1;
    int half,n=0,I;
    while(1)
    {
    half=data/2;
    for(I=2;I<=half;I++)
    if(data%I==0)
    break;
    if(I>half)
    {
    xx[n]=data;
    n++;
    }
    if(n>=k)
    break;
    data++;
    }
    }

  • 第2题:

    A good advertisement often uses words__________people attach positive meanings.

    A.that
    B.which
    C.with which
    D.to which

    答案:D
    解析:
    “一people attach positive meanings”可理解为“people attach positive meanings to which”。attach…to意为“把……附在.……上”。故本题正确答案选D。

  • 第3题:

    单选题
    x, y, and z are positive integers. Which of the following lists all the possible ways for x + y + z to be an odd number?I. One of the numbers is odd.II. Two of the numbers are odd.III. Three of the numbers are odd.
    A

    I

    B

    I and II

    C

    I and III

    D

    II and III


    正确答案: C
    解析:
    I. One of the numbers is odd. Let x be odd. Let y and z be even. y + z is even. An even plus an odd is odd, so x + y + z is odd.

  • 第4题:

    单选题
    What is the average (arithmetic mean) of 8 consecutive odd integers if the smallest of those integers is n?
    A

    n+5

    B

    n+6

    C

    n+7

    D

    n+8

    E

    n+9


    正确答案: E
    解析:
    最小的整数为n。它们是连续的奇数。这组整数为:n,n+ 2, n+4, n+6, n+8, n+10, n+12, n+14。计算这些整数的平均数即为将它们想加除于8。得出(8n+56)/8=n+7

  • 第5题:

    单选题
    If n/6, n/8 and n/9 are all integers, then n must be divisible by ______.
    A

    54

    B

    64

    C

    65

    D

    68

    E

    72


    正确答案: E
    解析:
    因为n/6, n/8和n/9都是整数,那么n一定是6,8,9的倍数。这三个数的最小公倍数为72。n 可以是比72大的整数,但是n一定是72的倍数,如144,216。

  • 第6题:

    多选题
    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设定符合条件的数值,代入各选项,看结果是否符合题干要求,即可得出答案。

  • 第7题:

    单选题
    Which of the following constraint types can be used to ensure the value of an INTEGER column references only positive values?()
    A

    Unique

    B

    Check

    C

    Referential

    D

    Informational


    正确答案: B
    解析: 暂无解析

  • 第8题:

    单选题
    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+16

    B

    w+16

    C

    4w+16

    D

    4w+4

    E

    w+4


    正确答案: D
    解析:
    Let x, x+1, x+2, x+3, represent the 4 consecutive integers. Then, x+x+1+x+2+x+3=w or 4x+6=w. The next 4 consecutive positive integers will be:x+4, x+5, x+6, x+7. Their sum will be:4x+22=4x+6+16=w+16.

  • 第9题:

    单选题
    Which of the listed pumps is NOT a positive displacement pump?()
    A

    Centrifugal

    B

    Reciprocating

    C

    Gear

    D

    Rotary


    正确答案: A
    解析: 暂无解析

  • 第10题:

    单选题
    al, a2, a3, a4, as, …., anIn the sequence of positive integers above, al = a2 = 1, a3 = 2, a4 = 3, and as = 5. If each term after the second is obtained by adding the two terms that come before it and if an = 55, what is the value of n?
    A

    12

    B

    10

    C

    9

    D

    8

    E

    5


    正确答案: A
    解析:
    Following the given rule for obtaining terms, write the terms of the sequence up to and including 55: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55 Since 10 numbers are listed, n = 10.

  • 第11题:

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

    4

    B

    6

    C

    9

    D

    10

    E

    11


    正确答案: D
    解析:
    All even multiples of 5 must be multiples of 10. So the multiples of 10 between 0 and 70 are 10, 20, 30, 40, 50 and 60. That’s 6 altogether.

  • 第12题:

    问答题
    Any decimal that has a finite number of nonzero digits is a terminating decimal. For example, 16, 12.43, and 0.26 are all terminating decimals. If a and b are positive integers and the ratio a/b is expressed as a decimal, is a/b a terminating decimal?  (1) b=5  (2) 70

    正确答案: A
    解析:
    条件2无法得出结论;由条件1可知,a/b是有尽小数,故本题选A项。

  • 第13题:

    Which of the following constraint types can be used to ensure the value of an INTEGER column references only positive values?()

    A.Unique

    B.Check

    C.Referential

    D.Informational


    参考答案:B

  • 第14题:

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


    正确答案: C
    解析:
    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.

  • 第15题:

    单选题
    Which of the following is true?
    A

    All nicknames have a positive meaning.

    B

    All negatives have a negative meaning.

    C

    Nicknames are endearing.

    D

    All nicknames can be either positive or negative.


    正确答案: A
    解析:
    倒数第二段提及Not every nickname, however, is a complement and some can be downright rude and insulting“并非所有的昵称都表示赞赏,有些昵称甚至十分粗鲁或带有污辱性”,表明应该以辩证的态度看待昵称,选项D符合。

  • 第16题:

    单选题
    How many positive 3-digit integers contain only odd digits?
    A

    15

    B

    75

    C

    125

    D

    225

    E

    500


    正确答案: C
    解析:
    根据题干可知三位数可以从1,3,5,7,9中选出。因为3位数字可以独立的选择,所以三位数字可为5×5×5=125,故选C。

  • 第17题:

    单选题
    Set X = even integers and Set Y = odd integers. Therefore X ∩ Y = ______.
    A

    prime numbers

    B

    integers

    C

    empty set

    D

    composite numbers

    E

    whole numbers


    正确答案: A
    解析:
    When two sets have nothing in common, we refer to their intersection as the empty set. There are two appropriate ways to denote the empty set: X∩Y={ } or X∩Y=φ.

  • 第18题:

    多选题
    If 4 more than twice n is a negative number and 6 more than n is a positive number, which of the following numbers could be the value of n? (Select all such numbers.)
    A

    -5

    B

    4

    C

    -3


    正确答案: B,A
    解析:
    根据题目中的已知条件可得,4+2n<0,6+n>0,把各个选项分别代入两个不等式中检验,同时符合两个不等式可得到n可以等于-5,-4,-3,故正确答案为AC。

  • 第19题:

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

    None

    B

    I only

    C

    II only

    D

    III only

    E

    I, II, and III


    正确答案: D
    解析:
    Since m=n+1, where m and n are given as positive integers, Roman numeral choice I is true. Since, m=n+1, m can be either odd or even, hence choice II is false. Roman numeral choice III is also false since n can be either even or odd.

  • 第20题:

    单选题
    For all positive integers a and b, let (a|b)=(a-b)/(a+b) If m is a positive integer, what is (m|2m) ?
    A

    -1/2

    B

    -1/3

    C

    1/3

    D

    1/2

    E

    2


    正确答案: D
    解析:
    (m|2m)=(m-2m)/(m+2m)=-1/3。

  • 第21题:

    单选题
    Let Ω p be defined as p2/3-p for all positive integers, p. If Ωn = s, and s is a positive integer, which of the following is a possible value for s?
    A

    1

    B

    3

    C

    5

    D

    6

    E

    8


    正确答案: D
    解析:
    根据题干Ωn =n2 /3-n=s. n为正整数,且s为正整数;根据函数可知只有当n是3的倍数时,s才能为整数,否则如果n2 /3不是整数,s也不是整数。现在可以从符合条件的n的最小值3代入到函数中。当n=3时,n2 /3-n =32 /3-3 = 3-3 = 0 = s;当n=6时,n2 /3-n = 62 /3-6 = 12-6 = 6 = s。所以故选D。

  • 第22题:

    单选题
    How many different positive integers are factors of 342?
    A

    9

    B

    11

    C

    12

    D

    20

    E

    22


    正确答案: C
    解析:
    342=1×342=2×171=3×114=6×57=9×38=18×19,故本题选C项。

  • 第23题:

    单选题
    Which of the following integers is divisible by 4 and 6, but is not divisible by 8?
    A

    12

    B

    24

    C

    48

    D

    64

    E

    72


    正确答案: B
    解析:
    第一个数字能被4和12整除,但不能被8整除。因此正确选项为A。24,48,64,72,都能被4,6,8,整除。

  • 第24题:

    单选题
    If a and b are positive integers such that (a-4)(b-5) = 0, what is the least possible value of a + b?
    A

    5

    B

    6

    C

    8

    D

    10

    E

    11


    正确答案: E
    解析:
    如果(a-4)(b-5) = 0,所以(a-4) = 0或(b-5) =0,或两者都等于0,a = 4 或b = 5.,如果要使a + b的值最小,我们应该假设a=4,那么b可以为任何值,又因为b的值为正整数,所以b的最小值为1,所以a + b最小的可能值为4+1=5。