【单选题】【消耗次数: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异常
随机题目
【判断题】 用于答复下级机关的请示事项的公文是批复,它是专门用于答复请示的一种下行文。
①  正确
②  错误
【判断题】 述职报告双标题的写法是:《尽职尽责 尽心尽力--我的述职报告》
①  正确
②  错误
【判断题】 公告和通告行文时,都要写上主送机关。
①  正确
②  错误
【判断题】 批复是被动行文,下级有请示,上级才能作批复。
①  正确
②  错误
【判断题】 事故通报中,若事故原因未查明,可以不提。
①  正确
②  错误
【判断题】 经济活动分析报告的主体部分通常对基本情况部分中提出的问题或经济指标的完成情况运用资料和数据所作的评估和分析。
①  正确
②  错误
【判断题】 政府机关在工作中产生的所有公文,都应通过多种载体公开。
①  正确
②  错误
【多选题】 在“请示”的行文中应当做到()。
①  一文一事
②  一般只写一个主送机关
③  应直接送达上级机关的领导人
④  不得在报告中夹带请示事项E.可同时抄送给下级机关
【多选题】 根据内容及用途来分,函的主要种类有( )。
①  商洽函
②  询答函
③  请批函
④  告知函
【多选题】 下列关于行政公文的说法,正确的有(?)。
①  行政公文是行政机关在行政管理过程中形成的
②  行政公文具有规范体式
③  行政公文是公务活动的唯一工具
④  行政公文具有法定效力