我生日时写下的东西成5。22
2007-05-22 23:46
357 查看
1、public static void Main(string[] args)
{
int i = 2000;
object o = i;
i = 2001;
int j =(int) o;
Console.WriteLine("i={0},o={1}, j={2}",i,o,j);
}a
A、 i=2001,o=2000,j=2000 B、 i=2001,o=2001,,j=2001
C、 i=2000,o=2001,,j=2000 D、 i=2001,o=2000,j=2001
2、
class Class1
{
public static int Count = 0;
static Class1()
{
Count++;
}
public Class1()
{
Count++;
}
}
Class1 o1 = new Class1();
Class1 o2 = new Class1();
请问,Class1.Count的值是多少?( )
A、 1 B、 2 C、 3 D、4
3、Which of these string definitions will prevent escaping on backslashes in C# ?
A、 string s = #”n Test string”; B、string s = “’n Test string”;
C、 string s = @”n Test string”; D、 string s = “n Test string”;
4、Which of the following operations can you NOT perform on an ADO.NET DataSet?
A、 A DataSet can be synchronised with a RecordSet.
B、 A DataSet can be synchronised with the database.
C、 A DataSet can be converted to XML.
D、 You can infer the schema from a DataSet
5、三种常用的字符串判空串方法:
1: bool isEmpty = (str.Length == 0);
2: bool isEmpty = (str == String.Empty);
3: bool isEmpty = (str == "");
哪种方法最快?
A、 1 B、 2 C、3
6、分别用for语句、while语句、do-while语句实现输出1到5的平方值。请填写完整下面的程序。
using System;
using System.Collections.Generic;
using System.Text;
namespace outputSquareValue
{
class Program
{
static void Main()
{
//用for语句实现
//用while语句实现
//用do-while语句实现
Console.ReadLine();
}
}
}
7、DataReader和GridView的异同?
8、在c#中using和new这两个关键字有什么意义,请写出你所知道的意义?
9、简述 private、protected、public、internal修饰符的访问权限。
10、.net的错误处理机制是什么?
11、C#中接口和类的异同?
3、Which of these string definitions will prevent escaping on backslashes in C# ?
A、 string s = #”n Test string”; B、string s = “’n Test string”;
C、 string s = @”n Test string”; D、 string s = “n Test string”;
4、Which of the following operations can you NOT perform on an ADO.NET DataSet?
A、 A DataSet can be synchronised with a RecordSet.
B、 A DataSet can be synchronised with the database.
C、 A DataSet can be converted to XML.
D、 You can infer the schema from a DataSet
{
int i = 2000;
object o = i;
i = 2001;
int j =(int) o;
Console.WriteLine("i={0},o={1}, j={2}",i,o,j);
}a
A、 i=2001,o=2000,j=2000 B、 i=2001,o=2001,,j=2001
C、 i=2000,o=2001,,j=2000 D、 i=2001,o=2000,j=2001
2、
class Class1
{
public static int Count = 0;
static Class1()
{
Count++;
}
public Class1()
{
Count++;
}
}
Class1 o1 = new Class1();
Class1 o2 = new Class1();
请问,Class1.Count的值是多少?( )
A、 1 B、 2 C、 3 D、4
3、Which of these string definitions will prevent escaping on backslashes in C# ?
A、 string s = #”n Test string”; B、string s = “’n Test string”;
C、 string s = @”n Test string”; D、 string s = “n Test string”;
4、Which of the following operations can you NOT perform on an ADO.NET DataSet?
A、 A DataSet can be synchronised with a RecordSet.
B、 A DataSet can be synchronised with the database.
C、 A DataSet can be converted to XML.
D、 You can infer the schema from a DataSet
5、三种常用的字符串判空串方法:
1: bool isEmpty = (str.Length == 0);
2: bool isEmpty = (str == String.Empty);
3: bool isEmpty = (str == "");
哪种方法最快?
A、 1 B、 2 C、3
6、分别用for语句、while语句、do-while语句实现输出1到5的平方值。请填写完整下面的程序。
using System;
using System.Collections.Generic;
using System.Text;
namespace outputSquareValue
{
class Program
{
static void Main()
{
//用for语句实现
//用while语句实现
//用do-while语句实现
Console.ReadLine();
}
}
}
7、DataReader和GridView的异同?
8、在c#中using和new这两个关键字有什么意义,请写出你所知道的意义?
9、简述 private、protected、public、internal修饰符的访问权限。
10、.net的错误处理机制是什么?
11、C#中接口和类的异同?
3、Which of these string definitions will prevent escaping on backslashes in C# ?
A、 string s = #”n Test string”; B、string s = “’n Test string”;
C、 string s = @”n Test string”; D、 string s = “n Test string”;
4、Which of the following operations can you NOT perform on an ADO.NET DataSet?
A、 A DataSet can be synchronised with a RecordSet.
B、 A DataSet can be synchronised with the database.
C、 A DataSet can be converted to XML.
D、 You can infer the schema from a DataSet
相关文章推荐
- 习题22 到现在你学到了哪些东西
- 处事22计、心态决定你的人生(每天必读)、伤心时要读的50句话和人的基本礼仪(保证你能学到不少东西)
- (转)一位获全额奖学金到北美留学的学长花四天写下的东西(2)
- 笨方法学习Python-习题22:到现在你学到了哪些东西?
- 笨方法学Python 习题 22: 到现在你学到了哪些东西?
- 现在特别想写下这些东西。 趁我热情还在。
- 第一次在weblog上写下一点东西
- 生日写下自己的第一篇博文
- (转)一位获全额奖学金到北美留学的学长花四天写下的东西(1)
- 总是忘记把做过的东西写下
- 写下这篇东西,给我未来的爱人。【沫是女王】
- 25岁生日写下第一篇
- 一位获全额奖学金到北美留学的学长花四天写下的东西 ~~~此文涉及人生、考研、出国,值得一看
- 一位获全额奖学金到北美留学的学长花四天写下的东西 ~~~此文涉及人生、考研、出国
- 如何把手机客户端的安全问题做好? 写下我所做过的那些东西
- 今天我生日
- 剑指Offer面试题:22.二叉搜索树的后序遍历序列
- Computing the Relative Path from One Directory to Another(Python cookbook 2-22)
- HDU 1201 18岁生日(水~)
- 【心情】最近实在是太忙了,没有心情写东西!