参考答案和解析
正确答案:B
更多“若有字符串“software”,则其长度为3的子串有()个。 ”相关问题
  • 第1题:

    对于字符串"software",其长度为2的子串共有( )个。

    A.4
    B.7
    C.28
    D.56

    答案:B
    解析:
    对于字符串"software",其长度为2的子串有:"so","of","ft","tw","wa","ar","re",共7个。

  • 第2题:

    若有字符串“software”,则其长度为4的子串有( )个

    A.5
    B.6
    C.7
    D.8

    答案:A
    解析:
    本题考查字符串的基础知识。子串长度为3,则至少需要3个字符,在本题中ware是最后一个满足要求的,soft是第一满足要求的,只要第一个字符位于s与w之间则满足要求,依次类推,一共有5个故正确答案为:A

  • 第3题:

    若字符串s=“software”,则其子串个数为: If the string s = "software", then the number of its sub-string is:


    37

  • 第4题:

    若有字符串“software”,则其长度为3的子串有( )个。

    A.5
    B.6
    C.7
    D.8

    答案:B
    解析:

  • 第5题:

    设有字符串S='software',其长度为3的子串数目为( )。

    A.8
    B.7
    C.6
    D.5

    答案:C
    解析:
    共有“sof”、“oft”、“ftw”、“twa”、“war”、“are”,6个