C#Ï°Ìâ

ÓÚ£¨ A £©¡£

A. DialogResult.OK B. DialogResult.Yes C. DialogResult.No D. DialogResult.Cancel 132. C#ÖУ¬Ð½¨Ò»×Ö·û´®±äÁ¿str£¬²¢½«×Ö·û´®¡±Tom's Living Room¡±±£´æµ½´®ÖУ¬

ÔòÓ¦¸ÃʹÓÃÏÂÁÐÄÄÌõÓï¾ä£¿£¨ £©

A. string str = ¡°Tom\\'s Living Room¡±; B. string str = ¡°Tom's Living Room¡±;

C. string str(¡°Tom's Living Room¡±); D. string str(¡°Tom¡±s Living Room¡±); 133. ¹ØÓÚcatch´úÂë¿é˵·¨ÕýÈ·µÄÊÇ£¨ C£©

A. °üº¬ÓпÉÄÜÒý·¢Òì³£µÄÓï¾ä¿é¡£ B. ÉùÃ÷ÓпÉÄÜ»áÒý·¢µÄÒì³£ÀàÐÍ C. Òì³£´¦Àí³ÌÐòλÓÚcatch´úÂë¿éÖÐ D. Ò»°ã²»ÓëtryÅäºÏʹÓ㬶øÊǵ¥¶ÀʹÓà 134. C#ÓïÑÔÔÚConsoleÀàÖÐÌṩÁËÁ½ÖÖ¹«¹²·½·¨ÏòÃüÁîÌáʾ·û´°¿ÚÊä³ö×Ö·û´®£¬ÆäÖÐ

£¨ D£©ÔÚÊä³öÊý¾Ýºó£¬»¹Êä³ö»Ø³µ·ûºÍ»»Ðзû¡£

A£®Read() B£®ReadLine() C£®Write() D£®WriteLine() 135. £¨ A £©·½·¨Ö´ÐÐÖ¸¶¨ÎªCommand¶ÔÏóµÄÃüÁîÎı¾µÄSQLÓï¾ä£¬²¢·µ»ØÊÜSQLÓï

¾äÓ°Ïì»ò¼ìË÷µÄÐÐÊý¡£

A.ExecuteNonQuery B.ExecuteReader C.ExecuteQuery D.ExecuteScalar 136. ÏÂÁÐÄÄЩÓï¾äÖж¨ÒåµÄ±äÁ¿ÊôÓÚÒýÓÃÀàÐͱäÁ¿£¿£¨ A £©

A. IInformation info; // IInformation Ϊһ½Ó¿ÚÀàÐÍÃû B. MyStruct x; //MyStruct Ϊһ½á¹¹ÀàÐÍÃû C. int arr;

D. MyEnum y; //MyEnum ΪÒѶ¨ÒåµÄö¾ÙÀàÐÍÃû 137. ÏÂÃæÄĸö²»ÊôÓÚÖµÀàÐÍ£¨ D£©¡£

A£®ÕûÐÍ B£®½á¹¹ÀàÐÍ C£®Ã¶¾ÙÀàÐÍ D£®×Ö·û´®ÀàÐÍ 138. ÔÚADO.NETÖУ¬ÏÂÁÐÊôÓÚSqlDataAdapter¶ÔÏóµÄÊôÐÔµÄÊÇ£¨ D £©

A£®SelectCommand B£®DeleteCommand C£®InsertCommand D£®ÒÔÉÏÈ«ÊÇ 139. ÔÚ·½·¨ÖÐÖ´ÐÐÏÂÁдúÂëºó£¬×Ö·û´®firstNameµÄÖµÊÇ£¨ A £©¡£

string firstName=¡±Tom¡±; string secondName=firstName; seconName+=¡±Jerry¡±;

A. Tom B. Jerry C. TomJerry D. Tom+Jerry 140. Óï¾ätimer1.Enabled=true;ÖУ¬timer1£¬EnabledºÍtrue·Ö±ð´ú±í£¨ A £©¡£

A. ¶ÔÏó¡¢ÊôÐÔ¡¢Öµ B. ¶ÔÏó¡¢·½·¨¡¢Öµ C. ÊôÐÔ¡¢¶ÔÏó¡¢Öµ D. Öµ¡¢·½·¨¡¢¶ÔÏó 141. ÔÚADO.NETÖУ¬Óû§¿ÉÒÔʹÓ㨠C £©¶ÔÏó½¨Á¢Ó¦ÓóÌÐòÓëÊý¾Ý¿âÁ¬½Ó¡£

A. DataSet B. DataReader C. Connection D. Command 142. ±äÁ¿openFileDialog1ÒýÓÃÒ»¸öOpenFileDialog¶ÔÏó£¬Îª¼ì²éÓû§ÔÚÍ˳ö¶Ô»°¿ò

ʱÊÇ·ñµã»÷ÁË¡°´ò¿ª¡±°´Å¥£¬Ó¦¼ì²éopenFileDialog1.ShowDialog()µÄ·µ»ØÖµÊÇ·ñµÈÓÚ£¨ A £©¡£

A. DialogResult.OK B. DialogResult.Yes C. DialogResult.No D. DialogResult.Cancel

Èý¡¢Ìîд³ÌÐòÔËÐнá¹û£¨Ã¿Ìâ5·Ö£¬¹²10·Ö£© 1. д³öÒÔϳÌÐòÔËÐнá¹û

static void Main(string[] args) {

int i = 2000; object o = i; i = 2001;

int j = (int)o;

Console.WriteLine(\}i=2001,o=2000,j=2000. 2. д³öÒÔϳÌÐòÔËÐнá¹û

using System; class Program {

public static void Main (string[] args) {

int[] a ={2,4,6,8,10,12,14,16,18}; for (int i=0; i<9; i++) {

Console.Write(\

if ((i+1)%3==0) Console.WriteLine(); } } }2

3. д³öÒÔϳÌÐòÔËÐнá¹û

class Program {

static void Main( string[] args) {

string s1 = \ string s2 = s1;

string s3 = s1 + \ Console.WriteLine(s1); Console.WriteLine(s2);

Console.WriteLine(s3);

Console.WriteLine(\Óës2µÄ±È½Ï½á¹ûΪ£º{0}\s2));

Console.WriteLine(\Óës3µÄ±È½Ï½á¹ûΪ£º{0}\s3));

Console.WriteLine(\ÖÐÊ״γöÏÖisµÄλÖÃÊÇ£º{0}\//ÐòºÅ´Ó0¿ªÊ¼

} }

4. ÔÚC#ÖУ¬Ä³³ÌÐòÔÚÒ»¸öÀàÖбàдÁËÁ½¸öͬÃûµÄ·½·¨£¬´úÂëÈçÏ£¬ÇëÎʸôúÂëµÄÔËÐнá

¹ûÊÇ£¨£©¡£

this is a string this is a string this is a string:hello world s1Óës2µÄ±È½Ï½á¹ûΪ:0 s1Óës3µÄ±È½Ï½á¹ûΪ:-1 s1ÖÐÊ״γöÏÖisµÄλÖÃÊÇ:2

public class Musician{ public void Song() {

Console.WriteLine(¡°·ÅÁËÄãÎÒ×ö²»µ½¡±); }

public void Song(string musicName){ Console.WriteLine(musicName); }

Static void Main(){

Musician musician=new Musician(); musician.Song();

musician.Song(\Ö÷ÒªÊÇÏÖÔÚÖíÈ⻹ÊÇͦ¹óµÄ°¡?\} }

´íÎó 1 Àà¡¢½á¹¹»ò½Ó¿Ú³ÉÔ±ÉùÃ÷Öеıê¼Ç¡°void¡±ÎÞЧ C:\\Users\\Administrator\\Desktop\\ConsoleApplication1\\ConsoleApplication1\\Program.cs 18 8 ConsoleApplication1 ´íÎó 2 δÄÜÕÒµ½ÀàÐÍ»òÃüÃû¿Õ¼äÃû³Æ¡°Static¡±(ÊÇ·ñȱÉÙ using Ö¸Áî»ò³ÌÐò¼¯ÒýÓÃ?) C:\\Users\\Administrator\\Desktop\\ConsoleApplication1\\ConsoleApplication1\\Program.cs 18 1 ConsoleApplication1 5. д³öÒÔϳÌÐòÔËÐнá¹û

using System; class Demo2 {

static void Main() {

int k=1,m; while (k<=10) { m=k*k;

Console.Write(¡°{0}\\t¡±,m); k++; } } }1

6. д³öÒÔϳÌÐòÔËÐнá¹û

static void Main(string[] args) {

int i = 2000; object o = i; i = 2001;

int j = (int)o;

Console.WriteLine(\}i=2001,o=2000,j=2000. 7. д³öÒÔϳÌÐòÔËÐнá¹û

public class Test {

private string name=\ public string Name {

get{ return name; } set{

if(value.Length>3) {

Name=value; } } }

static void Main(){ Test ts=new Test(); ts.name=\ ts.Name=\

Console.WriteLine(ts.Name); }bill

8. using System;

class Demo2 {

static void Main() {

int k=1,m; while (k<=10) { m=k*k;

Console.Write(¡°{0}\\t¡±,m); k++; } } }1

9. д³öÒÔϳÌÐòÔËÐнá¹û

static void Main(string[] args) {

int[] arr1 = new int[5]; arr1[0] = 1; arr1[2] = 3; arr1[4] = 5;

for (int i = 0; i < arr1.Length; i++) {

Console.Write(\ }

Console.WriteLine(); }1,0,3,0,5

10. д³öÒÔϳÌÐòÔËÐнá¹û

static void Main(string[] args) {

int a = 12, b = 5;

ÁªÏµ¿Í·þ£º779662525#qq.com(#Ì滻Ϊ@)