【单选题】【消耗次数: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异常
随机题目
【判断题】 关联推导和因果推导的区别在于因果推导是时间上先后的关联,先有因,后有果;关联推导是同时发生的事件之间的关联。
①  正确
②  错误
【判断题】 所谓目标信息,是指企业管理者想要得到,但还没有获得的信息。
①  正确
②  错误
【判断题】 计算机信息系统不只是技术解决方案,还是业务和组织结构的解决方案。
①  正确
②  错误
【单选题】 中国国内第一家互联网银行是( )。
①  建设银行
②  民生银行
③  微众银行
④  工商银行
【单选题】 很多电商企业为了满足不同消费者的个性化需求,纷纷出台定制化服务。这种模式可以归属于那种电商模式( )。
①  B2B
②  B2C
③  C2C
④  020
【单选题】 互联网思维中通过不断小步快速更新打造产品的是( )。
①  迭代思维
②  简约思维
③  极致思维
④  用户思维
【单选题】 国内第一家提供微博微博服务的门户网站是( )。
①  搜狐
②  新浪
③  腾讯
④  网易
【单选题】 在电子商务的定义中,网络是指( )。
①  计算机网络
②  Internet
③  以internet为主的计算机网络
④  增值网络
【单选题】 下面哪个网站属于B2B模式( )。
①  淘宝
②  阿里巴巴
③  美团
④  京东
【单选题】 近年来,武鸣成为沃柑的种植基地,武鸣也因此在全国出名,这是属于农村电子商务服务中的( )。
①  特色旅游
②  特色经济
③  农家乐
④  招商引资