1.判断a、b、c能否构成三角形的三条边长的条件是( )。 选项: a、a>0 && b>0 && c>0 b、 a+b>c || b+c>a

1.判断a、b、c能否构成三角形的三条边长的条件是( )。
选项:
a、a>0 && b>0 && c>0
b、 a+b>c || b+c>a || a+c>b
c、a+b>c && b+c>a && a+c>b
d、 a!=0 && b!=0 && c!=0
2.以下程序的输出结果是( )。#include <stdio.h> main() { int m=1,i;for(i=0;i<5;i++) m=m+i ; printf("m=%d\n",m);}
选项:
a、m=10
b、m=11
c、 m=4
d、 m=5
3.假设执行下列程序时输入:123<空格>456<空格>789<回车>,则输出结果是( )。#include <stdio.h> main() { char s[100]; int c,i; scanf("%c",&c); scanf("%d",&i); scanf("%s",s);printf("%c,%d,%s \n",c,i,s);}
选项:
a、123,456,789
b、1,456,789
c、 1,23,456,789
d、 1,23,456
4.设:char c; 则能够正确判断c为小写字母的表达式是( )。
选项:
a、a'<=c<='z'
b、(c>='a')||(c<='z')
c、(c>'a') && (c<'z')
d、(c>='a')&&(c<='z')
5.C语言中运算对象必须是整型的运算符是( )。
选项:
a、%=
b、/
c、 =
d、〈=
6.假设有以下说明语句,则下面的叙述中,( )不正确。struct ex { int x; float y; char z;}example;
选项:
a、struct结构类型的关键字
b、example是结构类型名
c、x,y,z都是结构体成员名
d、struct ex是结构体类型
7.假设有以下说明语句,则下面的叙述中,( )不正确。struct ex { int x; float y; char z;}example;
选项:
a、struct结构类型的关键字
b、example是结构类型名
c、x,y,z都是结构体成员名
d、struct ex是结构体类型
8.以下程序的输出结果是( )。#include <stdio.h> main() { int i, x[3][3]={1,2,3,4,5,6,7,8,9}; for(i=0;i<3;i++) printf("%d,",x[i][2-i]);}
选项:
a、1,5,9
b、1,4,7
c、3,5,7
d、3,6,9
9.以下程序的输出结果是( )。#include <stdio.h> main(){ int n[5]={0,0,0},i,k=2;for(i=0;i<k;i++) n[i]=n[i]+1;printf("%d\n",n[k]);}
选项:
a、不确定
b、2
c、1
d、0
10.以下while循环共执行循环体( )。int k=0;while(k=1)k++;
选项:
a、无限次
b、有语法错不能执行
c、 0次
d、1次

第1个回答  2013-06-01
c选项
因为任意两边之和要大于第三边 所以是且的关系
第2个回答  2013-06-06
1 c 2 b 3 b 4 b 5 a 6 b 7同6 10 c本回答被提问者采纳
第3个回答  2013-05-31
1 b 2 a
4 d 10 c