• 2021-04-14 问题

    【单选题】设图中B点即变压器二次侧计算负荷为 P 30(2) 、 Q 30(2) ,则A点即变压器一次侧计算负荷 P 30(1) 、 Q 30(1) 为()。 A. P 30(1) = P 30(2) + ΔP T , Q 30(1) = Q 30(2) + ΔQ T B. P 30(1) = P 30(2) - ΔP T , Q 30(1) = Q 30(2) - ΔQ T C. P 30(1) = P 30(2) + ΔQ T , Q 30(1) = Q 30(2) + ΔP T D. P 30(1) = P 30(2) - ΔQ T , Q 30(1) = Q 30(2) - ΔP T

    【单选题】设图中B点即变压器二次侧计算负荷为 P 30(2) 、 Q 30(2) ,则A点即变压器一次侧计算负荷 P 30(1) 、 Q 30(1) 为()。 A. P 30(1) = P 30(2) + ΔP T , Q 30(1) = Q 30(2) + ΔQ T B. P 30(1) = P 30(2) - ΔP T , Q 30(1) = Q 30(2) - ΔQ T C. P 30(1) = P 30(2) + ΔQ T , Q 30(1) = Q 30(2) + ΔP T D. P 30(1) = P 30(2) - ΔQ T , Q 30(1) = Q 30(2) - ΔP T

  • 2022-05-27 问题

    以下程序的运行结果是( )。#include[stdio.h] int main() { int k=1, j=2, *p, *q, *t; p = &k; q = &j; t = p; p = q; q = t; printf("%d %d", *p, *q); } A: 2 1 B: 2 2 C: 1 1 D: 1 2

    以下程序的运行结果是( )。#include[stdio.h] int main() { int k=1, j=2, *p, *q, *t; p = &k; q = &j; t = p; p = q; q = t; printf("%d %d", *p, *q); } A: 2 1 B: 2 2 C: 1 1 D: 1 2

  • 2022-05-30 问题

    利用反证法证明:R∨S,R→¬Q,S→¬Q,P→Q=>¬P请将下面推理论证的过程补充完整。(说明:输入答案时,不要输入多余的空格)证明过程如下:(1)( ) 假设前提 (2)P→Q P(3) Q T(1)(2) I(4)S→¬Q P(5)( ) T(3)(4) I(6)R∨S P(7)R T(5)(6) I(8)R→¬Q P(9)¬Q T(7)(8) I(10)( )矛盾 T(3)(9) I

    利用反证法证明:R∨S,R→¬Q,S→¬Q,P→Q=>¬P请将下面推理论证的过程补充完整。(说明:输入答案时,不要输入多余的空格)证明过程如下:(1)( ) 假设前提 (2)P→Q P(3) Q T(1)(2) I(4)S→¬Q P(5)( ) T(3)(4) I(6)R∨S P(7)R T(5)(6) I(8)R→¬Q P(9)¬Q T(7)(8) I(10)( )矛盾 T(3)(9) I

  • 2022-06-14 问题

    假设 t 是整型变量,下面( )选项可以交换指针 p 和 q 所指的 int 型变量的值。 A: t = p; *p = *q; q = t; B: t = &p; *p = *q; q = *t; C: t = *p; *p = *q; *q = t; D: t = p; p = q; q = t;

    假设 t 是整型变量,下面( )选项可以交换指针 p 和 q 所指的 int 型变量的值。 A: t = p; *p = *q; q = t; B: t = &p; *p = *q; q = *t; C: t = *p; *p = *q; *q = t; D: t = p; p = q; q = t;

  • 2021-04-14 问题

    t=p;p=q;q=t

    t=p;p=q;q=t

  • 2022-06-15 问题

    以下程序段中能够正确实现p和q中两个字符串互换的是: A: char p[10]="hello", q[10]= "world", *t;strcpy(t,p); strcpy(p,q); strcpy(q,t); B: char p[10]= "hello", q[10]= "world", *t;t=p; p=q; q=t; C: char p[10]= "hello", q[10]= "world", t[10];strcpy(t,p); strcpy(p,q); strcpy(q,t); D: char p[10]= "hello", q[10]= "world", t[10];t=p; p=q; q=t;

    以下程序段中能够正确实现p和q中两个字符串互换的是: A: char p[10]="hello", q[10]= "world", *t;strcpy(t,p); strcpy(p,q); strcpy(q,t); B: char p[10]= "hello", q[10]= "world", *t;t=p; p=q; q=t; C: char p[10]= "hello", q[10]= "world", t[10];strcpy(t,p); strcpy(p,q); strcpy(q,t); D: char p[10]= "hello", q[10]= "world", t[10];t=p; p=q; q=t;

  • 2021-04-14 问题

    有以下程序 void f(int *x,int *y) { int t; t=*x;*x=*y;*y=t; } main() { int a[8]={1,2,3,4,5,6,7,8},i,*p,*q; p=a;q=&a[7]; while(*p!=*q){f(p,q);p++;q--;} for(i=0;i<8;i++) printf("%d,",a[i]); } 程序运行后的输出结果是______。

    有以下程序 void f(int *x,int *y) { int t; t=*x;*x=*y;*y=t; } main() { int a[8]={1,2,3,4,5,6,7,8},i,*p,*q; p=a;q=&a[7]; while(*p!=*q){f(p,q);p++;q--;} for(i=0;i<8;i++) printf("%d,",a[i]); } 程序运行后的输出结果是______。

  • 2022-06-14 问题

    若有定义int a, b;则用( )定义的函数,执行语句swap(&a, &b);后,变量a与b的值没有交换。 A: swap(int *p, int *q) { int *t; t=(int*)malloc(sizeof(int)); //分配4个字节的存储空间给t *t=*p;*p=*q;*q=*t; } B: swap(int*p, int*q) { int t; t=*p;*p=*q;*q=t; } C: swap(int *p, int *q) { int *t; t=p; p=q; q=t; } D: swap(int *p, int *q) { int a, *t=&a; *t=*p; *p=*q; *q=*t; }

    若有定义int a, b;则用( )定义的函数,执行语句swap(&a, &b);后,变量a与b的值没有交换。 A: swap(int *p, int *q) { int *t; t=(int*)malloc(sizeof(int)); //分配4个字节的存储空间给t *t=*p;*p=*q;*q=*t; } B: swap(int*p, int*q) { int t; t=*p;*p=*q;*q=t; } C: swap(int *p, int *q) { int *t; t=p; p=q; q=t; } D: swap(int *p, int *q) { int a, *t=&a; *t=*p; *p=*q; *q=*t; }

  • 2022-06-15 问题

    以下程序段中能够正确实现p和q中两个字符串互换的是: A: char p[10]=&quot;hello&quot;, q[10]= &quot;world&quot;, *t;strcpy(t,p); strcpy(p,q); strcpy(q,t); B: char p[10]= &quot;hello&quot;, q[10]= &quot;world&quot;, *t;t=p; p=q; q=t; C: char p[10]= &quot;hello&quot;, q[10]= &quot;world&quot;, t[10];strcpy(t,p); strcpy(p,q); strcpy(q,t); D: char p[10]= &quot;hello&quot;, q[10]= &quot;world&quot;, t[10];t=p; p=q; q=t;

    以下程序段中能够正确实现p和q中两个字符串互换的是: A: char p[10]=&quot;hello&quot;, q[10]= &quot;world&quot;, *t;strcpy(t,p); strcpy(p,q); strcpy(q,t); B: char p[10]= &quot;hello&quot;, q[10]= &quot;world&quot;, *t;t=p; p=q; q=t; C: char p[10]= &quot;hello&quot;, q[10]= &quot;world&quot;, t[10];strcpy(t,p); strcpy(p,q); strcpy(q,t); D: char p[10]= &quot;hello&quot;, q[10]= &quot;world&quot;, t[10];t=p; p=q; q=t;

  • 2022-06-14 问题

    证明以下蕴涵关系成立:﹁Q∧(P→Q) ⇒﹁P 的正确步骤顺序是: 1、即证明:﹁Q∧(P→Q)→﹁P 永真 2、⟺﹁Q∧(﹁P∨Q)→﹁P[br][/br] 3、⟺﹁Q∧(﹁P∧Q)→﹁P[br][/br] 4、⟺﹁﹁Q∧(﹁P∧Q)∧﹁P[br][/br] 5、⟺﹁(﹁Q∧(﹁P∨Q))∨﹁P[br][/br] 6、⟺ Q∨﹁(﹁P∨Q))∨﹁P[br][/br] 7、⟺ Q ∨ P ∨ ﹁Q ∨﹁P[br][/br] 8、⟺ Q ∨ (P ∧ ﹁Q) ∨﹁P[br][/br] 9、⟺ (Q∨﹁P) ∨ (P ∧ ﹁Q)[br][/br] 10、⟺﹁ ( P ∧ ﹁Q) ∨ ( P ∧ ﹁Q)[br][/br] 11、⟺T A: 1-2-4-7-11 B: 1-2-5-6-8-9-10-11 C: 1-3-4-7-11 D: 1-2-4-7-8-9-10-11

    证明以下蕴涵关系成立:﹁Q∧(P→Q) ⇒﹁P 的正确步骤顺序是: 1、即证明:﹁Q∧(P→Q)→﹁P 永真 2、⟺﹁Q∧(﹁P∨Q)→﹁P[br][/br] 3、⟺﹁Q∧(﹁P∧Q)→﹁P[br][/br] 4、⟺﹁﹁Q∧(﹁P∧Q)∧﹁P[br][/br] 5、⟺﹁(﹁Q∧(﹁P∨Q))∨﹁P[br][/br] 6、⟺ Q∨﹁(﹁P∨Q))∨﹁P[br][/br] 7、⟺ Q ∨ P ∨ ﹁Q ∨﹁P[br][/br] 8、⟺ Q ∨ (P ∧ ﹁Q) ∨﹁P[br][/br] 9、⟺ (Q∨﹁P) ∨ (P ∧ ﹁Q)[br][/br] 10、⟺﹁ ( P ∧ ﹁Q) ∨ ( P ∧ ﹁Q)[br][/br] 11、⟺T A: 1-2-4-7-11 B: 1-2-5-6-8-9-10-11 C: 1-3-4-7-11 D: 1-2-4-7-8-9-10-11

  • 1 2 3 4 5 6 7 8 9 10