niusouti.com

问答题If M is a set of five numbers p, q, r, s and t, is the range of numbers in M greater than 5?  (1) The average (arithmetic mean) of p, q, r, S, and t is 5.  (2) p-r>5.

题目
问答题
If M is a set of five numbers p, q, r, s and t, is the range of numbers in M greater than 5?  (1) The average (arithmetic mean) of p, q, r, S, and t is 5.  (2) p-r>5.

相似考题
更多“问答题If M is a set of five numbers p, q, r, s and t, is the range of numbers in M greater than 5?  (1) The average (arithmetic mean) of p, q, r, S, and t is 5.  (2) p-r5.”相关问题
  • 第1题:

    有以下程序include<stdio.h>int*f(int*p,int*q);main( ){int m=1,n=2,*r=&m;r=f(r,&am

    有以下程序

    include<stdio.h>

    int*f(int*p,int*q);

    main( )

    {int m=1,n=2,*r=&m;

    r=f(r,&n);printf(”%d\n”,*r);

    }

    int-f(int*P,int*q)

    (return(*p>*q)?p:q;)

    程序运行后的输出结果是______。


    正确答案:2
    2 解析:函数f的返回值的类型是int*,作用是返回两个int*型指针所指变量中值大的那个指针的。本题中定义了一个int*型指针r并置初值&m,即指针r指向m。r=f(r,&n),由于m的值小于n值,所以f函数返回值为&n,所以输出为2,即n值。

  • 第2题:


    A.2m=n+p+q+r
    B.2m+1=n+p+q+r
    C.2m+2=n+p+q+r
    D.2m-2=n+p+q+r

    答案:C
    解析:

  • 第3题:

    以“(p∨q)→(r∧s)”为一个前提进行演绎推理,若加上前提()。

    • A、~(p∨q),能必然推出(~r∨~s)
    • B、(~r∨~s),能必然推出(p∨q)
    • C、(p∨q),能必然推出~(r∧s)
    • D、~(r∧s),能必然推出(~p∨~q)

    正确答案:D

  • 第4题:

    试例示具有下列命题形式和推理形式的命题或推理. 1.所有S都不是P。 2.要么r,要么s。 3.如果p,那么q;非q;所以非p。 4.所有M都是P,S都是M,所以S都是P。


    正确答案: 1.所有乌鸦都不是白的。
    2.定居在海外的华人要么保留中国国籍,要么取得外国国籍。
    3.如果一个国家是法制国家,那么它在制度上是人人平等的;它在制度上不是人人平等的;所以它不是法制国家。
    4.所有民主国家都是非常关注民生的,法国是民主国家,法国是非常关注民生的。

  • 第5题:

    设要将序列(q,h,c,y,p,a,m,s,r,d,f,x)中的关键码按字母升序重新排序,回答。()是以第一个元素为分界元素的快速一趟扫描的结果。

    • A、f,h,c,d,p,a,m,q,r,s,y,x
    • B、p,a,c,s,q,d,f,x,r,h,m,y
    • C、a,d,c,r,f,q,m,s,y,p,h,x
    • D、h,c,q,p,a,m,s,r,d,f,x,y
    • E、h,q,c,y,a,p,m,s,d,r,f,x

    正确答案:A

  • 第6题:

    问答题
    试判断以下各式是否为重言式。  (1)(P→Q)→(Q→P)  (2)P→(P→Q)  (3)Q→(P→Q)  (4)(P∧Q)→(P→Q)  (5)((P→Q)∨(R→Q))→((P∨R)→Q)  (6)((P→Q)∨((R→S))→((P∨R)→(Q∨S))

    正确答案:
    (1)否。
    (2)是。
    (3)是。
    (4)是。
    (5)否。
    (6)否。
    重言式(Tautology)又称为永真式,永真式的取值恒为真,所以如果式子的结果为真,则是重言式,否则不是重言式。根据真值表可以快速判断出式子是否为重言式。
    解析: 暂无解析

  • 第7题:

    多选题
    下列推理形式中,无效的有()。
    A

    ((p∨~q)∧q)→~p

    B

    ((p∧q)∧r)→(p∧r)

    C

    ((~p→q)∧q)→~p

    D

    ((p→q)∧(r∧p))→q

    E

    (p→q)∧(r→s)∧(q∨s))→(p∨r)


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

  • 第8题:

    单选题
    进行仓库布置需要考虑的内容常见的有:()。
    A

    E、I、Q、R、S、T、C

    B

    E、I、Q、R、M、T、W

    C

    E、I、M、R、S、T、W

    D

    E、I、M、R、S、T、C


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

  • 第9题:

    单选题
    设要将序列(q,h,c,y,p,a,m,s,r,d,f,x)中的关键码按字母升序重新排序,回答。()是以第一个元素为分界元素的快速一趟扫描的结果。
    A

    f,h,c,d,p,a,m,q,r,s,y,x

    B

    p,a,c,s,q,d,f,x,r,h,m,y

    C

    a,d,c,r,f,q,m,s,y,p,h,x

    D

    h,c,q,p,a,m,s,r,d,f,x,y

    E

    h,q,c,y,a,p,m,s,d,r,f,x


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

  • 第10题:

    单选题
    If the set S is composed of the following numbers {99, 100, 100, 105, 106, 116, 123}, which of the following is largest?
    A

    The average (arithmetic mean) of set S

    B

    The median of set S

    C

    The mode of set S

    D

    The range of set S

    E

    The standard deviation of set S


    正确答案: B
    解析:
    根据公式可知,A项S数集的平均数=107,B项S数集的中位数=105,C项S数集的众数=100,D项S数集的极差=24,E项S数集的标准差≈9,故本题选A项。

  • 第11题:

    单选题
    The average (arithmetic mean) of a set of seven numbers is 81. If one of the numbers is discarded, the average of the remaining numbers is 78. What is the value of the number that was discarded?
    A

    98

    B

    99

    C

    100

    D

    101

    E

    102


    正确答案: B
    解析:
    If the average (arithmetic mean) of a set of seven numbers is 81, then the sum of these seven numbers is 7 x 81 or 567. Since, if one of the numbers is discarded, the average of the six remaining numbers is 78, the sum of these six numbers is 6×78 or 468. Since 567 - 468 = 99, the value of the number that was discarded is 99.

  • 第12题:

    单选题
    有以下程序:#include int *f(int *s,int *t){ if(*s < *t)*s=*t; return s;}main(){  int i=3,j=5,*p=&i,*q=&j,*r; r=f(p,q); printf("%d,%d,%d,%d,%d",i,j,*p,*q,*r);}程序的运行结果是(  )。
    A

    5,5,5,5,5

    B

    3,5,5,5,5

    C

    5,3,3,3,5

    D

    3,5,3,5,5


    正确答案: A
    解析:
    程序执行过程为:p指向i的地址,q指向j的地址,调用函数f,比较p指向地址存储的元素值3与q指向地址存储的元素值5的大小,if语句成立时将q指向地址存储的元素值5赋给p指向地址存储的元素,即此时p指向地址存储的元素值i=5,返回值指针r指向i,最后输出5,5,5,5,5,答案选择A选项。

  • 第13题:

    设一组初始记录关键字序列为(Q,H,C,Y,P,A,M,S,R,D,F,X),则按字母升序的第一趟冒泡排序结束后的结果是()。

    A.A,D,C,R,F,Q,M,S,Y,P,H,X
    B.P,A,C,S,Q,D,F,X,R,H,M,Y
    C.F,H,C,D,P,A,M,Q,R,S,Y,X
    D.H,C,Q,P,A,M,S,R,D,F,X,Y

    答案:D
    解析:
    每一趟冒泡排序从第一个元素开始,相邻的两个元素进行比较,若是降序则进行交换,一趟排序完成后,值最大的元素被移至序列的末尾。

  • 第14题:

    在以下二难推理中,无效式是()

    • A、(((p→q)∧(r→s))∧(p∨r))→(q∨s)
    • B、(((p→q)∧(r→s))∧(∨)
    • C、((p→q)∧(p→r))∧(∨))→p
    • D、(((p→q)∧(r→q))∧(p∨r))→q

    正确答案:C

  • 第15题:

    在下列选言推理形式中,无效的有()。

    • A、(p∨q)∧p├﹁q
    • B、(pqr)∧﹁p├q∧r
    • C、(pqr)∧﹁p├qr
    • D、(p∨q∨r)∧﹁p├q∨r
    • E、(p∨q∨r∨s)∧(﹁p∧﹁q)├r∨s

    正确答案:A,B

  • 第16题:

    设要将序列(q,h,c,y,p,a,m,s,r,d,f,x)中的关键码按字母升序重新排序,回答。()是初始步长为4的shell排序一趟扫描的结果。

    • A、f,h,c,d,p,a,m,q,r,s,y,x
    • B、p,a,c,s,q,d,f,x,r,h,m,y
    • C、a,d,c,r,f,q,m,s,y,p,h,x
    • D、h,c,q,p,a,m,s,r,d,f,x,y
    • E、h,q,c,y,a,p,m,s,d,r,f,x

    正确答案:B

  • 第17题:

    下列推理形式中,无效的有()。

    • A、((p∨~q)∧q)→~p
    • B、((p∧q)∧r)→(p∧r)
    • C、((~p→q)∧q)→~p
    • D、((p→q)∧(r∧p))→q
    • E、(p→q)∧(r→s)∧(q∨s))→(p∨r)

    正确答案:A,C,E

  • 第18题:

    问答题
    试例示具有下列命题形式和推理形式的命题或推理. 1.所有S都不是P。 2.要么r,要么s。 3.如果p,那么q;非q;所以非p。 4.所有M都是P,S都是M,所以S都是P。

    正确答案: 1.所有乌鸦都不是白的。
    2.定居在海外的华人要么保留中国国籍,要么取得外国国籍。
    3.如果一个国家是法制国家,那么它在制度上是人人平等的;它在制度上不是人人平等的;所以它不是法制国家。
    4.所有民主国家都是非常关注民生的,法国是民主国家,法国是非常关注民生的。
    解析: 暂无解析

  • 第19题:

    单选题
    在以下二难推理中,无效式是()
    A

    (((p→q)∧(r→s))∧(p∨r))→(q∨s)

    B

    (((p→q)∧(r→s))∧(∨)

    C

    ((p→q)∧(p→r))∧(∨))→p

    D

    (((p→q)∧(r→q))∧(p∨r))→q


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

  • 第20题:

    单选题
    设要将序列(q,h,c,y,p,a,m,s,r,d,f,x)中的关键码按字母升序重新排序,回答。()是初始步长为4的shell排序一趟扫描的结果。
    A

    f,h,c,d,p,a,m,q,r,s,y,x

    B

    p,a,c,s,q,d,f,x,r,h,m,y

    C

    a,d,c,r,f,q,m,s,y,p,h,x

    D

    h,c,q,p,a,m,s,r,d,f,x,y

    E

    h,q,c,y,a,p,m,s,d,r,f,x


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

  • 第21题:

    单选题
    Let @ represent one of the four basic arithmetic operations such that, for any nonzero real numbers P and Q, P @ 0=P and P @ Q=Q @ P. Which arithmetic operation(S) does the symbol @ represent?
    A

    ×only

    B

    +only

    C

    -only

    D

    -and×

    E

    +and÷


    正确答案: A
    解析:
    If P @ Q=P, then symbol @ can represent either addition or subtraction, but not multiplication or division. Since it is also given that P @ Q=Q @ P, the operation @ is commutative. Since addition is commutative and subtraction is not commutative, the symbol @ represents only addition.

  • 第22题:

    单选题
    The average (arithmetic mean) of five numbers is 10. The sum of three of the numbers is 30. What is the sum of the other two numbers?
    A

    5

    B

    10

    C

    20

    D

    30

    E

    40


    正确答案: C
    解析:
    The arithmetic mean of the five numbers is 10. That means the sum of the numbers is 50. The sum of three numbers is 30. so the sum of the remaining two numbers is 50-30 = 20.

  • 第23题:

    问答题
    If p+q=400 and p  (1) p+r+s=600  (2) q+r>400

    正确答案: A
    解析:
    通过计算可知,条件1可以判断处p+q和r+s的大小;条件2无法判断,故本题选A项。