【单选题】【消耗次数: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异常
随机题目
【判断题】 角色游戏中教师可以自己做主为幼儿分配角色。()
①  正确
②  错误
【判断题】 结构游戏也称建筑游戏,是幼儿使用多种结构材料(如积木、沙石、泥、雪、金属材料等),通过想象和实际的创造行为,构造建筑物或建筑形象的游戏活动。()
①  正确
②  错误
【判断题】 为保证幼儿园教学活动的顺利进行,在教学活动中不允许随意上厕所。()
①  正确
②  错误
【判断题】 学前教育课程,都是根据儿童的特点进行设计的。()
①  正确
②  错误
【判断题】 “学前教育”、“幼儿教育”、“早期教育”、“幼稚教育”这几个概念是等同的。()
①  正确
②  错误
【多选题】 学前儿童教学活动中常用的活动法主要有()。
①  实验法
②  调查法
③  游戏法
④  操作练习法
【判断题】 领域课程是指两种以上学科知识,在某些主题上交叉、相互。()
①  正确
②  错误
【判断题】 教师可以自由的控制儿童的游戏时间。()
①  正确
②  错误
【判断题】 教师应该根据儿童的能力和兴趣制定教学计划。()
①  正确
②  错误
【判断题】 日常生活活动的组织应注意保教结合。()
①  正确
②  错误