【名词&注释】
表达式、关键字、文件夹(folder)、自定义(user-defined)、数据项(data item)、派生类(derived class)、列表框(list box)
[单选题]设有说明语句:inti=5;charc=“A”;doubled=3.14;;,以下结果为整型的表达式是()
A. i/2+d
B. i/2*c
C. c+d/2
D. i/2+c+d
查看答案&解析
查看所有试题
学习资料:
[单选题]使用Dirctory类的下列方法,可以获取指定文件夹中的文件的是().
A. Exists()
B. GetFiles()
C. GetDirectories()
D. CreateDirectory()
[单选题]引用ListBox(列表框(list box))当前被选中的数据项应使用()语句
A. ListBox1.Items[ListBox1.Items.Count]
B. ListBox1.Items[ListBox1.SelectedIndex]
C. ListBox1.Items[ListBox1.Items.Count-1]
D. ListBox1.Items[ListBox1.SelectedIndex-1]
[单选题]下列关于继承说法中,哪个选项是正确的()
A. 派生类(derived class)可以继承多个基类的方法和属性。
B. 派生类(derived class)必须通过base关键字调用基类的构造函数
C. 继承最主要的优点是提高代码性能
D. 继承是指派生类(derived class)可以获取其基类特征的能力。
[单选题]C#程序中,使用关键字()来声明自定义的名称空间。
A. namespace
B. new
C. import
D. try
[单选题]设有说明语句:doublex;,下列选项中正确的是()
A. scanf("%d",&x)
B. scanf("%f",&x)
C. scanf("%lf",x)
D. scanf("%lf",&x)
本文链接:https://www.51bdks.net/show/x6wyzl.html