【单选题】【消耗次数:1】
C#中使用SerialPort类时需引入那个命名空间?
System.IO.Ports
System.IO
System.Ports
System
参考答案:
复制
纠错
相关题目
【简答题】 要在一个类中包含System.Data命名空间的语句是[填空1]。
【单选题】 以下程序的运行结果是:( ) public class Increment{ public static void main(String args[]){ int c; c = 2; System.out.println(@@; System.out.println(c++); System.out.println(@@; } }
①  2 2 2
②  2 3 3
③  2 2 3
④  3 4 4
【单选题】 getCustomerInfo()方法如下,try中可以捕获三种类型的异常,如果在该方法运行中产生了一个IOException,将会输出什么结果( ) public void getCustomerInfo() { try { // do something that may cause an Exception } catch (java.io.FileNotFoundException ex){ System.out.print(FileNotFoundException!); } catch (java.io.IOException ex){ System.out.print(IOException!); } catch (java.lang.Exception ex){ System.out.print(Exception!); } }
①  IOException!
②  IOException!Exception!
③  FileNotFoundException!IOException!
④  FileNotFoundException!IOException!Exception!
【单选题】 The thieves _____ the possibility of the alarm system sounding
①  overtook
②  overcame
③  overlooked
④  overworked
【判断题】 4.Java系统的标准输入对象是System.in,标准输出对象有两个,分别是标准输出System.out和标准错误输出System.err。( )
①  正确
②  错误
【单选题】 Java系统标准输出对象System.out使用的输出流是( )。
①  PrintStream
②  PrintWriter
③  DataOutputStream
④  FileReader
【单选题】 _____the center of our planetary system was considered as heresy by the church in the Middle Ages.
①  It is the sun and not the earth
②  That the sun and not the earth is
③  Being the sun and not the earth
④  The sun and not the earth
【判断题】 System类中的println()方法分行显示信息,而print()方法不分行显示信息。
①  正确
②  错误
【单选题】 By using a system approach to health care, early ( )practitioners discovered acupuncture points.
①  Western
②  Southern
③  Northern
④  oriental
【单选题】 阅读以下代码: import java.io.*; import java.util.*; public class foo{ public static void main (String[] args){ String s; System.out.println(s= + s); } } 输出结果应该是:( )
①  代码得到编译,并输出“s=”
②  代码得到编译,并输出“s=null”
③  由于String s没有初始化,代码不能编译通过
④  代码得到编译,但捕获到 NullPointException异常
随机题目
【单选题】 A: Thanks to John, weve lost our most important client. B: Ive told you hes not proper for the position. A: [填空].
①  I should have listened to you
②  I dont really agree with you
③  It doesnt matter. I trust him
④  Thank you for being so helpful
【单选题】 A: How long does it take to get to your house by bus? B: [填空]. I think the tube is your best choice. A: Many thanks.
①  I dont know yet
②  It depends on the traffic
③  Let me see
④  Youll consider the distance
【单选题】 A: Hi. My name is David Manning. Im from Britain. B: Im Bill Clinton. Glad to meet you. What year are you? A: [填空].
①  Im a first-year student
②  I was born in 1990
③  Ive been here for years
④  Im 19 years old
【单选题】 下列不属于我国公民基本权利的有()。
①  迁徙自由权
②  受教育权
③  人身自由权
④  选举权和被选举权
【单选题】 ( )是调节个人与祖国之间关系的道德要求、政治原则和法律规范。
①  爱国思想
②  爱国行为
③  爱国主义
④  爱国情感
【单选题】 为人民服务低层次的要求是( )
①  人人为我,我为人人
②  全心全意为人民服务
③  毫不利己、专门利人
④  人人为自己上帝为大家
【判断题】 法律权利和法律义务密不可分,且具有顺序性。
①  正确
②  错误
【单选题】 有序的公共生活对进社会健康发展具有重要意义。由一定规则维系的人们公共生活的有序化状态,称为()。
①  公共秩序
②  公共领域
③  公共道德
④  公共场所
【单选题】 立法程序中最重要和最有决定意义的阶段是( )。
①  法律案的提出
②  法律案的审议
③  法律案的表决
④  法律的公布
【判断题】 迟来的正义等于非正义。表明了执法效率对于实现公平正义的重要性。
①  正确
②  错误