【单选题】【消耗次数: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.党章
②  B.刑法
③  C.民法
④  D.宪法
【单选题】 公职人员违反规定取得外国国籍或者获取境外永久居留资格、长期居留许可的,检察机关应当予以()政务处分。
①  A.记过
②  B.记大过
③  C.降级
④  D.撤职或者开除
【单选题】 截至2017年,云南省共有()民族自治县(旗)。
①  A.4个
②  B.7个
③  C.11个
④  D.29个
【单选题】 《理解民族关系的新思路――少数族群问题的“去政治化”》提出,21世纪的中国应当把新中国成立以来在族群问题上的“政治化”趋势改变为()的新方向。
①  A.“制度化”
②  B.“社会化”
③  C.“经济化”
④  D.“文化化”
【单选题】 下列选项中,不属于加强城乡基层治理制度创新和能力建设组织领导层面的具体举措的是()。
①  A.完善领导体制和工作机制
②  B.强化基层人才支撑
③  C.加大投入保障力度
④  D.健全社区网格化管理服务机制
【单选题】 坚决落实“要在治理”的重大部署中提出,阿坝州要抓好“三大治理”,其中不包括()。
①  A.卫生环境
②  B.市场环境
③  C.政治环境
④  D.治安环境
【单选题】 因过失犯罪被判处管制、拘役或者()年以下有期徒刑的,一般应当予以开除;案件情况特殊,予以撤职更为适当的,可以不予开除,但是应当报请上一级机关批准。
①  A.二
②  B.三
③  C.四
④  D.五
【单选题】 十八届四中全会提出,把()贯彻到全面依法治国全过程和各方面。
①  A.党的领导
②  B.实事求是
③  C.民主集中制
④  D.全心全意为人民服务
【单选题】 党的十九届四中全会与会的中央委员有多少人?
①  A.202人
②  B.204人
③  C.206人
④  D.208人
【判断题】 公职人员违法取得的财物和用于违法行为的本人财物,除依法应当由其他机关没收、追缴或者责令退赔的,由监察机关没收、追缴或者责令退赔;应当退还原所有人或者原持有人的,依法予以退还;属于国家财产或者不应当退还以及无法退还的,上缴国库。
①  正确
②  错误