【单选题】【消耗次数: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异常
随机题目
【单选题】 按照国家制图标准规定,图纸幅面只是图纸本身的大小规格,A1图纸的图幅尺寸是()。
①  594×841
②  210×297
③  297×420
④  210×420
【单选题】 立体被平面截切所产生的表面交线称为()。
①  相贯线
②  投射线
③  侧垂线
④  截交线
【单选题】 q为()。
①  1、1、1
②  1、1、0.5
③  1、0.5、0.5
④  0.5、0.5、0.5
【单选题】 粗实线一般用途为()。
①  尺寸界线
②  主要可见轮廓线
③  不可见轮廓线
④  图例线
【单选题】 该形体中最靠前的正平面有()个。
①  1
②  2
③  3
④  4
【单选题】 该形体有()个水平面。
①  1
②  2
③  3
④  4
【单选题】 圆锥面被平面截切后产生的截交线不可能出现的形状是()。
① 
②  椭圆
③  两相交直线
④  两平行直线
【单选题】 该形体有()根铅垂线。
①  4
②  6
③  8
④  10
【单选题】 工程上常用的()有中心投影法和平行投影法。
①  投影法
②  图解法
③  技术法
④  作图法
【单选题】 左视图所在的投影面称为侧立投影面,简称()面或W面。
①  正立
②  侧立
③  水平
④  铅垂