• 2022-06-15 问题

    [[‘a’,’d’], [‘d’,’a’,’4’]]的类型是 A: [String.String] B: [Char, Int] C: [String] D: (String, String)

    [[‘a’,’d’], [‘d’,’a’,’4’]]的类型是 A: [String.String] B: [Char, Int] C: [String] D: (String, String)

  • 2022-06-11 问题

    设有如下定义和语句[1] char *s; s="string";[2] char s[7]; s="string";[3] char s[ ]="string";[4] char s[ ]={'s','t','r','i','n','g'};其中定义项可以作为字符串使用的是______。 A: [1]和[2] B: [1]和[3] C: [1]和[4] D: [3]和[4]

    设有如下定义和语句[1] char *s; s="string";[2] char s[7]; s="string";[3] char s[ ]="string";[4] char s[ ]={'s','t','r','i','n','g'};其中定义项可以作为字符串使用的是______。 A: [1]和[2] B: [1]和[3] C: [1]和[4] D: [3]和[4]

  • 2022-06-05 问题

    Which of the following sentence is right in G major ? A: An open inner string counts as 2, the outer string counts as 5 B: An open inner string counts as 5, the outer string counts as 2 C: An open inner string counts as 2, the outer string counts as 6 D: An open inner string counts as 6, the outer string counts as 3

    Which of the following sentence is right in G major ? A: An open inner string counts as 2, the outer string counts as 5 B: An open inner string counts as 5, the outer string counts as 2 C: An open inner string counts as 2, the outer string counts as 6 D: An open inner string counts as 6, the outer string counts as 3

  • 2022-06-08 问题

    String s=new String(“hello”); String t =new String(“hello”); char c [ ] ={‘h’,’e’,’l’,’l’,’o’}; 下列哪些表达式返回true ?

    String s=new String(“hello”); String t =new String(“hello”); char c [ ] ={‘h’,’e’,’l’,’l’,’o’}; 下列哪些表达式返回true ?

  • 2022-06-06 问题

    ‌在web.xml中预先对Servlet进行初始化设置的代码如下:‌‌[int-param]‌‌[param-name]myWord[/-name]‌‌[param-value]hello[/-value]‌‌[/-param]‌‌则以下获取初始化参数的语句中正确的是()。‌‌‌ A: String myWord=getInit(“myWorld”); B: String myWord=getInitParameter(“myWord”); C: String myWord=getInitParameter(“hello”); D: String myWord=getInit(“myWord”);

    ‌在web.xml中预先对Servlet进行初始化设置的代码如下:‌‌[int-param]‌‌[param-name]myWord[/-name]‌‌[param-value]hello[/-value]‌‌[/-param]‌‌则以下获取初始化参数的语句中正确的是()。‌‌‌ A: String myWord=getInit(“myWorld”); B: String myWord=getInitParameter(“myWord”); C: String myWord=getInitParameter(“hello”); D: String myWord=getInit(“myWord”);

  • 2022-05-26 问题

    定义名为“学号”的属性,该属性的类型为“string”,该属性在XML中必须出现,下面正确的选项是( )。 未知类型:{'options': ['[!attribute name="学号" type="string" use="required" /]', '[attribute name="学号" type="string" use="prohibited" /]', '[attribute name="学号" type="string" use="required" /]', '[attribute name="学号" type="string" use="optional" /]'], 'type': 102}

    定义名为“学号”的属性,该属性的类型为“string”,该属性在XML中必须出现,下面正确的选项是( )。 未知类型:{'options': ['[!attribute name="学号" type="string" use="required" /]', '[attribute name="学号" type="string" use="prohibited" /]', '[attribute name="学号" type="string" use="required" /]', '[attribute name="学号" type="string" use="optional" /]'], 'type': 102}

  • 2022-06-06 问题

    如果有以下关于String[][]的程序代码:String[][] strs = new String[2][5];以下描述正确的是( ) A: 产生10个String实例 B: 产生2个String实例 C: 产生0个String实例 D: 编译失败

    如果有以下关于String[][]的程序代码:String[][] strs = new String[2][5];以下描述正确的是( ) A: 产生10个String实例 B: 产生2个String实例 C: 产生0个String实例 D: 编译失败

  • 2022-06-04 问题

    下列【1】【2】【3】【4】注释标注的哪行代码有错误?import java.util.*;public class E {public static void main(String args&#91;&#93;) {Map<;String,String>; map = new HashMap<;String,String>;(); //【1】Set<;Integer>; treeSet = new TreeSet<;Integer>;();//【2】Map<;String,String>; treeMap= new TreeMap<;String,String>;(); //【3】List<;char>; list = new LinkedList<;char>;(); //【4】 A: 【1】 B: 【2】 C: 【3】 D: 【4】

    下列【1】【2】【3】【4】注释标注的哪行代码有错误?import java.util.*;public class E {public static void main(String args&#91;&#93;) {Map<;String,String>; map = new HashMap<;String,String>;(); //【1】Set<;Integer>; treeSet = new TreeSet<;Integer>;();//【2】Map<;String,String>; treeMap= new TreeMap<;String,String>;(); //【3】List<;char>; list = new LinkedList<;char>;(); //【4】 A: 【1】 B: 【2】 C: 【3】 D: 【4】

  • 2022-06-14 问题

    题示代码的功能为:循环遍历输出Map当中的每一个元素。《插入代码》处应填入的代码是( )Map map=new HashMap(); map.put(“jessica”,100); map.put(“tom”,200); map.put(“den”,300); Set《插入代码1》 set =《插入代码2》; for (《插入代码3》 per : set) { System.out.println(per.getKey() + ":" + per.getValue()); } 未知类型:{'options': ['&#91;Entry&#93; map.keySet() Entry', '&#91;Entry&#93; map.entrySet() Entry', '&#91;Map.Entry<String, Integer&#93;> map.keySet() Map.Entry&#91;String, Integer&#93;', '&#91;Map.Entry<String, Integer&#93;> map.entrySet() Map.Entry&#91;String, Integer&#93;'], 'type': 102}

    题示代码的功能为:循环遍历输出Map当中的每一个元素。《插入代码》处应填入的代码是( )Map map=new HashMap(); map.put(“jessica”,100); map.put(“tom”,200); map.put(“den”,300); Set《插入代码1》 set =《插入代码2》; for (《插入代码3》 per : set) { System.out.println(per.getKey() + ":" + per.getValue()); } 未知类型:{'options': ['&#91;Entry&#93; map.keySet() Entry', '&#91;Entry&#93; map.entrySet() Entry', '&#91;Map.Entry<String, Integer&#93;> map.keySet() Map.Entry&#91;String, Integer&#93;', '&#91;Map.Entry<String, Integer&#93;> map.entrySet() Map.Entry&#91;String, Integer&#93;'], 'type': 102}

  • 2022-05-29 问题

    以下代码共创建了几个对象?String s1=new String("hello");String s2=new String("hello");String s3=s1;String s4=s2; A: 2 B: 4 C: 1 D: 3

    以下代码共创建了几个对象?String s1=new String("hello");String s2=new String("hello");String s3=s1;String s4=s2; A: 2 B: 4 C: 1 D: 3

  • 1 2 3 4 5 6 7 8 9 10