[试题]

分析以下代码,完成填空

string strTmp = abcdefg某某某;

int i= System.Text.Encoding.Default.GetBytes(strTmp).Length;

int j= strTmp.Length;

以上代码执行完后,i= j=

参考答案与解析:

相关试题

分析以下代码,完成填空string strTmp = "abcdefg某某某";

[主观题]分析以下代码,完成填空string strTmp = "abcdefg某某某";int i= System.Text.Encoding.Default.GetBytes(strTmp).Length;int j= strTmp.Length;以上代码执行完后,i= j=

  • 查看答案
  • 分析以下代码,完成填空 string strTmp = "abcdefg某某某"

    [主观题]分析以下代码,完成填空string strTmp = "abcdefg某某某";int i= System.Text.Encoding.Default.GetBytes(strTmp).Length;int j= strTmp.Length;以上代码执行完后,i= j=

  • 查看答案
  • 执行下面代码后: String strTemp =”abcdefg 某某某”;

    [主观题]执行下面代码后:String strTemp =”abcdefg 某某某”;Int i System.Text.Encoding.Default.GetBytes(strTemp).Length;Int j = strTemp.Length;问:i=(14 ) ;j=(11 )

  • 查看答案
  • 执行下面代码后: String strTemp ="abcdefg 某某某";

    [主观题]执行下面代码后:String strTemp ="abcdefg 某某某";Int i System.Text.Encoding.Default.GetBytes(strTemp).Length;Int j = strTemp.Length;问:i=(14 ) ;j=(11 )

  • 查看答案
  • 分析以下代码。public static void test(string Co

    [主观题]分析以下代码。public static void test(string ConnectString){System.Data.OleDb.OleDbConnection conn = new System.Data.OleDb.OleDbConnection();conn.ConnectionString = ConnectString;try{conn.Open();…….}catch(Exception Ex){MessageBox.Show(Ex.ToString());}finall

  • 查看答案
  • 分析以下代码。 public static void test(string C

    [主观题]分析以下代码。public static void test(string ConnectString){System.Data.OleDb.OleDbConnection conn = new System.Data.OleDb.OleDbConnection();conn.ConnectionString = ConnectString;try{conn.Open();…….}catch(Exception Ex){MessageBox.Show(Ex.ToString());}finall

  • 查看答案
  • 假设有以下代码:String s="hello";String t="hello

    [单选题]假设有以下代码: String s="hello"; String t="hello"; char c[ ]={'h','e','l','l','o'}; 下列选项中,返回false的语句是______。A.s.equals(t);B.t.equals(c);C.s==t;D.t.equals(new String("hello"));

  • 查看答案
  • 以下代码创建几个对象()String s1=bc;String s2=bc;

    [单选题]以下代码创建几个对象()String s1='bc';String s2='bc';A . 2B . 1C . 3D . 0

  • 查看答案
  • 通信建设工程凡采用某某以内,某某以下均不含某某本身。

    [判断题] 通信建设工程凡采用某某以内,某某以下均不含某某本身。A . 正确B . 错误

  • 查看答案
  • 某学生到风景区旅游,在离开时在一柱石上写道:某某某到此一游。以示纪念,此生行为是

    [单选题]某学生到风景区旅游,在离开时在一柱石上写道:某某某到此一游。以示纪念,此生行为是()A . 可理解的B . 有失文明与风度的C . 有违公德的D . 有纪念价值的

  • 查看答案
  • 分析以下代码,完成填空 string strTmp = abcdefg某某某;