算法的空间复杂度是指A.算法程序的长度B.算法程序中的指令条数C.算法程序所占的存储空间D.算法执
算法的空间复杂度是指
A.算法程序的长度
B.算法程序中的指令条数
C.算法程序所占的存储空间
D.算法执行过程中所需要的存储空间
算法的空间复杂度是指
A.算法程序的长度
B.算法程序中的指令条数
C.算法程序所占的存储空间
D.算法执行过程中所需要的存储空间
第1题
You have recently written the code shown below:Hashtable emailAddresses = new Hashtable ();emailAddresses.Add ("Mia", "mia@ Certkiller .com");emailAddresses.Add ("Andy", "andy@ Certkiller .com");emailAddresses.Add ("Kara", "kara@ Certkiller .com");FileStream stream = new FileStream ("Email.dat", FileMode.Create);BinaryFormatter formatter = new BinaryFormatter ();formatter.Serialize (stream, emailAddresses);You need to ensure that you are able to load the emailAddresses object from the Email.dat file into your application.What should you do?()
A.
B.
C.
D.
第2题
you have recently written the code shown below:Hashtable emailAddresses = new Hashtable ();emailAddresses.Add ("Mia", "mia@ Certkiller .com");emailAddresses.Add ("Andy", "andy@ Certkiller .com");emailAddresses.Add ("Kara", "kara@ Certkiller .com");You need to ensure that these e-mail addresses are stored in the Email.dat file so that you can load them againwhen the user restarts the application.What should you do?()
A.
B.
C.
D.
第3题
最近,您创建了一个应用程序,包括如下所示的代码。public delegate string GetFileContentsDel ();public string GetFileContents () {//Process file and return results}现在,您需要以异步方式调用 GetFileContents 方法。您必须确保您用来调用 GetFileContents 方法的代码将继续处理其他用户的说明,并显示结果,尽快完成的 GetFileContents 方法的处理。你应该做什么?()
A.
B.
C.
D.
第4题
选择下列代码的运行结果 class A { public Hashtable studentlist = new Hashtable(); public int this[string name] { get { return (int)studentlist[name]; } set { studentlist[name] = value; } } static void Main(string[] args) { A a = new A(); a[10] = "张三"; Console.WriteLine(a[10]); } }
A、10
B、张三
C、0
D、无法运行
第5题
A、JOptionPane.messageDialog(this, "您输入了非法字符", "警告对话框", JOptionPane.WARNING_MESSAGE);
B、new JOptionPane.messageDialog(this, "您输入了非法字符", "警告对话框", JOptionPane.WARNING_MESSAGE);
C、JOptionPane.showMessageDialog(this, "您输入了非法字符", "警告对话框", JOptionPane.WARNING_MESSAGE);
D、new JOptionPane.showMessageDialog(this, "您输入了非法字符", "警告对话框", JOptionPane.WARNING_MESSAGE);
第6题
A.
B.
C.
D.
第7题
A.
B.
C.
D.
第8题
编写代码使用JOptionPane类的showConfirmDialog方法生成确认对话框,如下图所示。在代码中获取用户的操作信息,运行代码时,当单击确认对话框中的“是”、“否”或“取消”按钮后,通过消息对话框分别显示"您单击了“是”按钮"、"您单击了“否”按钮"或者"您单击了“取消”按钮"。提交实现的程序代码,无需提交代码运行的截图。
第9题
A.HashMap不能转换成Hashtable类型
B.以上代码不能运行
C.HashMap中没有add方法
D.输出结果输出:张三
第10题
A.fStream.Seek (0,SeekOrigin.End)
B.fStream.Position = fStream.Length
C.fStream.Seek (0,SeekOrigin.Current)
D.fStream.Seek (0,SeekOrigin.Begin)
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!