【单选题】【消耗次数:1】
如何编写当 i 等于 5 时执行一些语句的条件语句?( )
if (i==5)
if i=5 then
if i=5
if i==5 then
参考答案:
复制
纠错
➡️如需代学继续教育,联系微信:yizhituziang

相关题目
【单选题】 如何编写当 i 不等于 5 时执行一些语句的条件语句?( )
①  if =! 5 then
②  if 5
③  if (i 5)
④  if (i != 5)
【单选题】 如何编写当 i 不等于 5 时执行一些语句的条件语句?( )
①  if =! 5 then
②  if < 5
③  if (i < 5)
④  if (i != 5)
【单选题】 已知int i,a;执行语句i=(a=3,a++,- -a,a+4,a+5,++a);后,变量i的值为 ( )
①  2
②  3
③  4
④  5
【单选题】 若有定义int i=1;则执行完循环while(i++〈5);以后i 的值为()
①  6
②  5
③  4
④  7
【简答题】 有如下程序段: For i=1 To 3 For j=5 To 1 Step -1 Print i*j Next j Next i 程序运行后,语句print i*j的执行次数为[填空]。
【单选题】 循环for(int i=0,x=0;!x&&i<=5;i++);的循环体执行次数是()
①  5
②  6
③  1
④  无限
【单选题】 以下程序段的结果是 c的值为( )。char * a[5]={“12378”, “1237”, “1236789”, “1237”, “123708”}; int i,c=0; for(i=0;i5:i++) if(StrCmp(a[i], “1237”)==0)c++;
①  A.2,
②  B.5
③  C.0
④  D.1237
【单选题】 执行语句for(i=1;i++后变量i的值是( )。
①  3
②  4
③  5
④  不定
【单选题】 下面程序执行后的结果是() #include stdio.h void fun( ) { int i,sum=0; int a[5]={1,2,3,4,5}; for (i=0;i { if (a[i]%2==0) { sum+=a[i]; } } printf(%d,sum); } void main( ) { fun( ); }
①  6
②  15
③  9
④  11
【单选题】 在JavaScript中,运行下面的代码,sum的值是( )。 var sum = 0; for(i = 1; i < 10; i++) { if(i%5==0) break; sum = sum + i; }
①  40
②  50
③  5
④  10
随机题目
【判断题】 XML是一种元标记语言,可以用来定义标记。
①  正确
②  错误
【单选题】 XSL文档本身也是xml文档,其后缀名为()。
①  xml
②  xsl
③  xsd
④  dtd
【单选题】 XPath路径表达式“/A/B/C[position()1]”的匹配结果为()。
①  根元素A下所有名称为B的子元素下所有名称为C的子元素节点集合中的第二个及以后的元素
②  以子路径“元素A-元素B-元素C”结尾的节点集合中的第二个及以后的元素
③  根元素A下所有名称为B的子元素下所有名称为C的子元素
④  以子路径“元素A-元素B-元素C”结尾的节点集合
【单选题】 十进制数字限制:假设Schema的名字空间前缀为“xsd”,现在需要定义名为“coursegradeType”的简单类型,要求取值为[0,100]之间的小数,且小数位数只有一位,下面正确的选项是()。
①  xsd:simpleTypename=coursegradeTypexsd:restrictionbase=xsd:decimalxsd:totalDigitsvalue=1/xsd:minInclusivevalue=0/xsd:maxInclusivevalue=100//xsd:restriction/xsd:simpleType
②  xsd:simpleTypename=coursegradeTypexsd:restrictionbase=xsd:decimalxsd:totalDigits"xsd:simpleTypename=coursegradeTypexsd:restrictionbase=xsd:decimalxsdfractionDigitsvalue=1/xsd:minInclusivevalue=0/xsd:maxInclusivevalue=100//xsd:restriction/xsd:simpleType"value=1/xsd:minInclusivevalue=0/xsd:maxInclusivevalue=100//xsd:restriction/xsd:simpleType
③  xsd:simpleTypename=coursegradeTypexsd:restrictionbase=xsd:decimalxsd:totalDigitsvalue=4/xsd:minInclusivevalue=0/xsd:maxInclusivevalue=100//xsd:restriction/xsd:simpleType
④  xsd:simpleTypename=coursegradeTypexsd:restrictionbase=xsd:decimalxsd:fractionDigitsvalue=4/xsd:minInclusivevalue=0/xsd:maxInclusivevalue=100//xsd:restriction/xsd:simpleType
【单选题】 空格及制表符会被替换为空格,开头和结尾的空格被移除,而多个连续的空格会被缩减为单一的空格,下面正确的选项是()。
①  xsd:simpleTypename="nameType"xsd:restrictionbase="xsd:string"xsd:whiteSpacevalue="collapse"//xsd:restriction/xsd:simpleType
②  xsd:simpleTypename="nameType"xsd:restrictionbase="xsd:string"xsd:whiteSpacevalue="replace"//xsd:restriction/xsd:simpleType
③  xsd:simpleTypename="nameType"xsd:restrictionbase="xsd:string"xsd:whiteSpacevalue="preserve"//xsd:restriction/xsd:simpleType
④  xsd:simpleTypename="nameType"xsd:restrictionbase="xsd:string"xsd:whiteSpacevalue="conpress"//xsd:restriction/xsd:simpleType
【单选题】 解决电子商务环境下数据冲突问题的基本思路是()。
①  开发一对一转换适配器
②  定义公共数据模式
③  定义内部数据模式
④  采用相同的数据库系统
【单选题】 XPath路径表达式“//F/ancestor::*”的匹配结果为()。
①  根元素F的父节点元素
②  根元素F的祖先节点元素
③  所有F元素的父节点元素
④  所有F元素的祖先节点元素
【单选题】 关于DTD定义元素的语法,下面哪个选项()是正确的?
①  ELEMENT元素名称元素内容的描述
②  !ELEMENT元素名称元素内容的描述
③  !DOCTYPE元素名称元素内容的描述
④  DOCTYPE元素名称元素内容的描述
【单选题】 利用CSS控制元素内容背景图像的平铺方式时,如果需要图像在两个方面均进行平铺,则background-repeat属性的取值应设置为()。
①  repeat-both
②  repeat-x
③  repeat-y
④  repeat
【单选题】 在利用CSS表现XML时,如果需要将XML文档中的publisher元素的内容以小型大写字母显示,且字号大小为父元素内容显示大小的80%,则下面正确的选项为()。
①  publisher{font-style:small-caps;font-size:80%}
②  publisher{font-transform:small-caps;font-size:80%}
③  publisher{font-variant:small-caps;font-size:80%}
④  publisher{font-variant:small-caps;font-weight:80%}