[单选题]

下面代码运行后,s的值是()。

A . 20

B . 12

C . 10

D . 6

参考答案与解析:

相关试题

下面程序运行后,S的值是( )Privatesubform_click()for

[单选题]下面程序运行后,S的值是( )Privatesubform_click()forj=1to10x=j*2-1ifx/3=int(x/3)orx/5=int(x/5)thens=s+xnextjPrint"s=";sendsubA.27B.30C.32D.37

  • 查看答案
  • 运行下面程序代码后,变量J的值为______。 Private Sub Fun

    [单选题]运行下面程序代码后,变量J的值为______。 Private Sub Fun () Dim J as Integer J=10 DO J=J+3 Loop While J<19 End SubA.10B.13C.19D.21

  • 查看答案
  • 运行下面程序代码后,变量J的值为______。Private Sub Full

    [单选题]运行下面程序代码后,变量J的值为______。Private Sub Full () Dim j as Integer J=10 DO J=J+3 Loop While J<19 End SubA.10B.13C.19D.21

  • 查看答案
  • 运行下面程序代码后,变量J的值为______。Private Sub Fun()

    [单选题]运行下面程序代码后,变量J的值为______。 Private Sub Fun() Dim J as Integer J=10 Do J=J+3 Loop While J<19 End SubA.10B.13C.19D.21

  • 查看答案
  • What’s the final result?(下面这段代码的最终运行结果是什

    [主观题]What’s the final result?(下面这段代码的最终运行结果是什么)double expectedValue = 1/2;if(expectedValue > 0){expectedValue = expectedValue + 0.5;}C.onsole.WriteLine(expectedValue);

  • 查看答案
  • 编译和运行下面代码后显示的结果是()。

    [单选题]编译和运行下面代码后显示的结果是()。A . 编译报错误B . 2C . 1D . 0

  • 查看答案
  • c£«£«,运行下面代码出错

    [主观题]c£«£«,运行下面代码出错#include <iostream>using namespace std;struct student_info{string name;int chinese;int math;int english;};student_info student[5];void inputinfo(){int i = 0;char a[20];for(i = 0;i < 5;i++){cout<<"enter the "<<i+1&

  • 查看答案
  • 下面的程序段运行后,变量S的值变为“65666768”,则程序中“表达式”为(

    [单选题]下面的程序段运行后,变量S的值变为“65666768”,则程序中“表达式”为( )。 i+1Do While 表达式 S=S & ASC(Chr¥(i+64)) i=i+1 LoopA.i>5B.NOT(i<>5)C.i<5D.i=5

  • 查看答案
  • 请判断下面程序运行完毕后a的值()

    [单选题]请判断下面程序运行完毕后a的值()A .0B .3C .5D .8

  • 查看答案
  • 下面代码的运行结果是( )。public class ConcatTest {

    [单选题]下面代码的运行结果是( )。 public class ConcatTest { public static void main (String[ ] args) { String str1 = "abc"; String str2 = "ABC"; String str3 = str1. coneat(str2); System. out. println(str3); } }A.abcB.ABCC.abcABCD.ABCabc

  • 查看答案