C#±ÊÊÔÌâ - ¾­µä50Ì⣨º¬´ð°¸£©

ÄÚ²â/Ô¿¼

uanji

ÄÚ²â/Ô¿¼

ÀàÐÍ£º£¨±ÊÊÔ£©

ÈÕÆÚ£º

×Ü·ÖÊý£º100 ·Ö

ÐÕÃû£º

Ö¤¼þºÅÂ룺 ÀíÂÛ²¿·Ö

·¶Î§£ºÄÚ²â/Ô¿¼

ʱ³¤£º1Сʱ

×¼¿¼Ö¤ºÅ£º

×¢Ò⣺¿¼ÊÔ½áÊøÊÔ¾í±ØÐë½»»Ø£¬´ð°¸ÌîдÔÚ´ðÌ⿨ÉÏ

µÚ 1 Ò³ ¹² 24 Ò³

ÄÚ²â/Ô¿¼

1. ( )¹Ø¼ü×ÖÓÃÓÚÔÚC#ÖдÓÅÉÉúÀàÖзÃÎÊ»ùÀàµÄ³ÉÔ±¡££¨Ñ¡Ò»Ï A¡¢new B¡¢super C¡¢this D¡¢base

2. C#³ÌÐò¿ÉÒÔÒÀ¾Ý£¨ £©À´½øÐз½·¨ÖØÔØ¡££¨Ñ¡Ò»Ï A¡¢²»Í¬µÄ²ÎÊý¸öÊý B¡¢²»Í¬µÄ²ÎÊýÃû³Æ C¡¢²»Í¬µÄ·µ»ØÖµ D¡¢²»Í¬µÄ·½·¨Ãû³Æ

3. C#Öеķ½·¨ÖØдʹÓùؼü×Ö£¨Ñ¡Ò»Ï A¡¢override B¡¢overload C¡¢static D¡¢inherit

4. C#ÖйØÓÚίÍУ¬ÏÂÃæ˵·¨ÕýÈ·µÄÊÇ£¨Ñ¡Ò»Ï A¡¢Î¯ÍÐÊÇÒ»ÖÖÀàµÄ³ÉÔ± B¡¢Î¯ÍбØÐ붨ÒåÔÚÀàÖÐ

C¡¢¶¨ÒåίÍÐÐèҪʹÓÃdelegate¹Ø¼ü×Ö

µÚ 2 Ò³ ¹² 24 Ò³

ÄÚ²â/Ô¿¼

D¡¢Î¯ÍÐÊÇÒ»ÖÖÊý¾ÝÀàÐÍ

5. System.StringÀàµÄ£¨ £©·½·¨²»ÄÜɾ³ý×Ö·û´®ÖеĿոñ¡££¨Ñ¡Ò»Ï A¡¢Replace() B¡¢Trim() C¡¢Remove() D¡¢EndsWith()

6. ¹ØÓÚ³éÏóÀàÏÂÃæ˵·¨´íÎóµÄÊÇ£¨Ñ¡Ò»Ï A¡¢³éÏóÀà¿ÉÒÔ°üº¬·Ç³éÏó·½·¨ B¡¢º¬ÓгéÏó·½·¨µÄÀàÒ»¶¨ÊdzéÏóÀà C¡¢³éÏóÀ಻Äܱ»ÊµÀý»¯ D¡¢³éÏóÀà¿ÉÒÔÊÇÃÜ·âÀà

7. ¹ØÓÚ½Ó¿ÚµÄʹÓã¬Ëµ·¨´íÎóµÄÊÇ£¨Ñ¡Ò»Ï A¡¢½Ó¿Ú¿ÉÒÔ×÷Ϊ²ÎÊý½øÐд«µÝ B¡¢½Ó¿Ú¿ÉÒÔ×÷Ϊ·½·¨µÄ·µ»ØÖµ C¡¢½Ó¿Ú¿ÉÒÔʵÀý»¯

D¡¢Í¬Ê±ÊµÏÖ¶à¸ö½Ó¿ÚÊDZäÏàʵÏÖÁ˶àÖؼ̳Ð

8. ÏÂÁзºÐͼ¯ºÏÉùÃ÷ÕýÈ·µÄÊÇ£¨Ñ¡Ò»Ï

µÚ 3 Ò³ ¹² 24 Ò³

ÄÚ²â/Ô¿¼

A¡¢List f = new List() B¡¢List f = new List() C¡¢List f = new List() D¡¢List f = new List

9. ÏÂÁйØÓÚC#Ë÷ÒýÆ÷Àí½âÕýÈ·µÄÊÇ£¨Ñ¡Ò»Ï A¡¢Ë÷ÒýÆ÷µÄ²ÎÊý±ØÐëÊÇÁ½¸ö»òÁ½¸öÒÔÉÏ B¡¢Ë÷ÒýÆ÷µÄ²ÎÊýÀàÐͱØÐëÊÇÕûÊýÐÍ C¡¢Ë÷ÒýÆ÷ûÓÐÃû×Ö D¡¢ÒÔÉϽÔÊÇ

10. ÒÑÖªC#ij½Ó¿ÚÖÐÓÐÒ»¸öShow( )·½·¨£¬ÏÂÃæ¶Ô¸Ã·½·¨Ô­Ð͵Ķ¨ÒåÕýÈ·µÄÊÇ£¨Ñ¡Ò»Ï A¡¢public void Show( ) B¡¢public virtual void Show( ) C¡¢void Show( ) D¡¢virtual void Show( )

11. ÒÔϵÄC#³ÌÐò£º public class A{} public class B:A{} public class Test

µÚ 4 Ò³ ¹² 24 Ò³

ÄÚ²â/Ô¿¼

{

public static void Main() {

A myA = new A (); B myB = new B (); A myC = myB;

Console.WriteLine(myC.GetType()); }

}ÔËÐÐʱ½«Êä³ö£¨Ñ¡Ò»Ï A¡¢A B¡¢B C¡¢object

D¡¢½«±¨¸æ´íÎóÐÅÏ¢£¬ÌáʾÎÞЧµÄÀàÐÍת»»

12. ÒÔϵÄC#³ÌÐò£º public static void Main() {

int[] A = new int[5]{1,2,3,4,5}; Object[] B = new Object[5] {6,7,8,9,10}; Array.Copy(A,B,2); }

ÔËÐкóÊý×éAÖеÄÊýֵΪ£¨Ñ¡Ò»Ï

µÚ 5 Ò³ ¹² 24 Ò³

ÄÚ²â/Ô¿¼

A¡¢1¡¢2¡¢3¡¢4¡¢5 B¡¢1¡¢2¡¢8¡¢9¡¢10 C¡¢1¡¢2¡¢3¡¢9¡¢10 D¡¢6¡¢7¡¢8¡¢9¡¢10

13. ÒÔϵÄC#³ÌÐò£º using System;

using System£®Cillections; public class SamplesHashtable {

public static void Main() {

Hashtable myHT = new Hashtable(); myHT£®Add(\ myHT£®Add(\ myHT£®Add(\

Console£®WriteLine(myHT£®Count); myHT£®Remove(\

Console£®WriteLine(myHT£®Count); }

}ÔËÐÐÊä³öΪ£¨Ñ¡Ò»Ï A¡¢33

µÚ 6 Ò³ ¹² 24 Ò³

ÄÚ²â/Ô¿¼

B¡¢32 C¡¢22

D¡¢ÔËÐÐʱ´íÎó£¬ÌáʾÎÞЧµÄ¼üÖµ

14. ÒÔϵÄC#´úÂë¶Î£º public struct Person { string Name£» int Age£» }

public static void Main() { Hasbtable A£» Person B£» }

ÒÔÏÂ˵·¨ÕýÈ·µÄÊÇ£¨Ñ¡Ò»Ï

A¡¢AΪÒýÓÃÀàÐ͵ıäÁ¿£¬BΪֵÀàÐ͵ıäÁ¿ B¡¢AΪֵÀàÐ͵ıäÁ¿£¬BΪÒýÓÃÀàÐ͵ıäÁ¿ C¡¢AºÍB¶¼ÊÇÖµÀàÐ͵ıäÁ¿ D¡¢AºÍ B¶¼ÊÇÒýÓÃÀàÐ͵ıäÁ¿

15. ÒÔ϶¨Òå¹ÍÔ±ÀàµÄ´úÂ룺

µÚ 7 Ò³ ¹² 24 Ò³

ÄÚ²â/Ô¿¼

class Employee {

private string id; public string Id {

_________//ÇëÌîдÕýÈ·µÄ´úÂëÐÐ { return id; } set {

if(id£®Length>2) id = value; } }

}Ó¦ÌîдµÄÕýÈ·µÄ´úÂëΪ£¨Ñ¡Ò»Ï A¡¢let B¡¢set C¡¢get D¡¢put

16. ÒÔϹØÓÚC#Öз½·¨ÖØÔصÄ˵·¨ÕýÈ·µÄÊÇ£¨Ñ¡Á½Ï

A¡¢ÈçÁ½¸ö·½·¨Ãû×Ö²»Í¬£¬¶ø²ÎÊýµÄÊýÁ¿²»Í¬£¬ÄÇôËüÃÇ¿ÉÒÔ¹¹³É·½·¨ÖØÔØ

µÚ 8 Ò³ ¹² 24 Ò³

ÄÚ²â/Ô¿¼

B¡¢ÈçÁ½¸ö·½·¨Ãû×ÖÏàͬ£¬¶ø·µ»ØÖµµÄÊý¾ÝÀàÐͲ»Í¬£¬ÄÇôËüÃÇ¿ÉÒÔ¹¹³É·½·¨ÖØÔØ

C¡¢ÈçÁ½¸ö·½·¨Ãû×ÖÏàͬ£¬¶ø²ÎÊýµÄÊý¾ÝÀàÐͲ»Í¬£¬ÄÇôËüÃÇ¿ÉÒÔ¹¹³É·½·¨ÖØÔØ

D¡¢ÈçÁ½¸ö·½·¨Ãû×ÖÏàͬ£¬¶ø²ÎÊýµÄÊýÁ¿²»Í¬£¬ÄÇôËüÃÇ¿ÉÒÔ¹¹³É·½·¨ÖØÔØ

17. ÔĶÁÒÔϵÄC#´úÂ룺 class A { public A( ) {

Console.WriteLine(\ } } class B:A { public B() {

Console.WriteLine(\ } }

class Program {

public static void Main() { B b = new B(); Console.ReadLine();

µÚ 9 Ò³ ¹² 24 Ò³

ÄÚ²â/Ô¿¼

} }

ÉÏÊö´úÂëÔËÐк󣬽«ÔÚ¿ØÖÆ̨´°¿ÚÊä³ö£¨Ñ¡Ò»Ï A¡¢A B¡¢B C¡¢A B D¡¢B A

18. ÔÚ£®NET¿ò¼ÜÀà¿âÖУ¬ËùÓÐÓë¶àÏ̻߳úÖÆÓ¦ÓÃÏà¹ØµÄÀ඼·ÅÔÚ( ÃüÃû¿Õ¼äÖС££¨Ñ¡Ò»Ï A¡¢System.SysThread B¡¢System.Thread C¡¢System.Threading D¡¢NetException

19. ÔÚ.NetÖУ¬ArrayList¶ÔÏóλÓÚ£¨£©ÃüÃû¿Õ¼äÄÚ¡££¨Ñ¡Ò»Ï A¡¢System.Array B¡¢System.IO C¡¢System.Collections D¡¢System.RunTime

20. ÔÚ.NETÖУ¬HashtableÀàËùÔÚµÄÃüÃû¿Õ¼äÊÇ£¨Ñ¡Ò»Ï

µÚ 10 Ò³ ¹² 24 Ò³

) ÄÚ²â/Ô¿¼

A¡¢System.Threadint B¡¢System.IO C¡¢System.Collections D¡¢System

21. ÔÚ.NETÖÐ,ILÊÇÖ¸£¨Ñ¡Ò»Ï A¡¢½Ó¿ÚÏÞÖÆ B¡¢ÖмäÓïÑÔ C¡¢ºËÐÄ´úÂë D¡¢½Ó¿ÚÀà¿â

22. ÔÚ.NETÖУ¬´ÓÊôÐԵĶÁдÌØÐÔÉÏÀ´½øÐзÖÀ࣬¿ÉÒÔ»®·ÖΪÒÔÏÂÈýÖÖ£¬³ýÁË£¨Ñ¡Ò»Ï A¡¢Ö»¶ÁÊôÐÔ B¡¢Ö»Ð´ÊôÐÔ C¡¢¶ÁдÊôÐÔ

D¡¢²»¿É¶Á²»¿ÉдµÄÊôÐÔ

23. ÔÚ.NetÖУ¬¹ØÓÚCLRºÍIL£¬ÒÔ´¦ÃèÊöÕýÈ·µÄÊÇ£¨Ñ¡Ò»Ï A¡¢Ó¦ÓóÌÐòÔÚCLR»·¾³±»±àÒë³ÉIL,IL½«Äܹ»±»ÈκμÆËã»úÖ¸Á³É

B¡¢Ó¦ÓóÌÐò±»±àÒëÁ½´Î£¬µÚÒ»´ÎÉú³ÉIL,ILÔÚÔËÐÐʱºò±»CLR

µÚ 11 Ò³ ¹² 24 Ò³

ÄÚ²â/Ô¿¼

¿ìËÙ±àÒë

C¡¢Ó¦ÓóÌÐò±»±àÒëÁ½´Î,µ«Êǵڶþ´ÎCLR±à¼­±ÈµÚÒ»´ÎÂý D¡¢½èÈ¡CLR,IL±»±àÒë³É»úÆ÷´úÂë²¢ÇÒÄܹ»ÔÚ²»Í¬µÄ¼ÆËã»úÖ¸Áϱ»Ö´ÐÐ

24. ÔÚ.NETÖУ¬ÏÂÁйØÓÚʼþ´¦Àí³ÌÐò˵·¨´íÎóµÄÊÇ£¨Ñ¡Ò»Ï A¡¢Ê¼þ´¦ÀíµÄ˳ÐòÊǶ¨Òåʼþ¡¢¶©ÔÄʼþ¡¢Òý·¢Ê¼þ B¡¢¶¨ÒåʼþʹÓÃevnet¹Ø¼ü×Ö C¡¢C#ÖеÄʼþ½èÖúÓÚίÍÐÀ´ÊµÏÖ D¡¢¶¨ÒåʼþʹÓÃdelegate¹Ø¼ü×Ö

25. ÔÚ.NETÖУ¬Ò»Ð©Êý¾ÝÀàÐÍΪÒýÓÃÀàÐÍ£¬µ±ÒýÓÃÀàÐ͵ÄֵΪ( )ʱ£¬±íÃ÷ûÓÐÒýÓÃÈκζÔÏó¡££¨Ñ¡Ò»Ï A¡¢Empty B¡¢null C¡¢Nothing D¡¢0

26. ÔÚC#Óï·¨ÖУ¬ÔÚÅÉÉúÀàÖжԻùÀàµÄÐ麯Êý½øÐÐÖØд£¬ÒªÇóÔÚÉùÃ÷ÖÐʹÓùؼü×Ö£¨Ñ¡Ò»Ï A¡¢override B¡¢new

µÚ 12 Ò³ ¹² 24 Ò³

ÄÚ²â/Ô¿¼

C¡¢static D¡¢virtual

27. ÔÚC#ÓïÑÔÖУ¬ÏÂÁйØÓÚÊôÐÔµÄÃèÊöÕýÈ·µÄÊÇ£¨Ñ¡Ò»Ï A¡¢ÊôÐÔϵÊÇÒÔpublic¹Ø¼ü×ÖÐÞÊεÄ×ֶΣ¬ÒÔpublic¹Ø¼ü×ÖÐÞÊεÄ×Ö¶ÎÒ²¿É³ÆΪÊôÐÔ

B¡¢ÊôÐÔÊÇ·ÃÎÊ×Ö¶ÎÖµµÄÒ»ÖÖÁé»î»úÖÆ£¬ÊôÐÔ¸üºÃµØʵÏÖÁËÊý¾ÝµÄ·â×°ºÍÒþ²Ø

C¡¢Òª¶¨ÒåÖ»¶ÁÊôÐÔÖ»ÐèÔÚÊôÐÔÃûÇ°¼ÓÉÏreadonly¹Ø¼ü×Ö£¨false£© D¡¢ÔÚC#µÄÀàÖв»ÄÜ×Ô¶¨ÒåÊôÐÔ

28. ÔÚC#ÖУ¬( )·ÃÎÊÐÞÊηûÐÞÊεıäÁ¿Ö»ÄÜÓɵ±Ç°³ÌÐò¼¯·ÃÎÊ¡££¨Ñ¡Ò»Ï A¡¢public B¡¢protected C¡¢internal D¡¢private

29. ÔÚC#ÖУ¬¹ØÓÚArrayºÍArrayListµÄάÊý£¬ÒÔÏÂ˵·¨ÕýÈ·µÄÊÇ£¨Ñ¡Ò»Ï

A¡¢Array¿ÉÒÔÓжàά£¬¶øArrayListÖ»ÄÜÊÇһά B¡¢ArrayÖ»ÄÜÊÇһά£¬¶ø ArrayList¿ÉÒÔÓжàά

µÚ 13 Ò³ ¹² 24 Ò³

ÄÚ²â/Ô¿¼

C¡¢ArrayºÍ ArrayList ¶¼Ö»ÄÜÊÇһά D¡¢ArrayºÍArrayList¶¼¿ÉÒÔÊǶàά

30. ÔÚC#ÖУ¬¹ØÓڼ̳кͽӿڣ¬ÒÔÏÂ˵·¨ÕýÈ·µÄÊÇ£¨Ñ¡Ò»Ï A¡¢C#ÔÊÐí¶à½Ó¿ÚʵÏÖ£¬Ò²ÔÊÐí¶àÖؼ̳РB¡¢C#ÔÊÐí¶à½Ó¿ÚʵÏÖ£¬µ«²»ÔÊÐí¶àÖؼ̳РC¡¢C#²»ÔÊÐí¶à½Ó¿ÚʵÏÖ£¬µ«ÔÊÐí¶àÖؼ̳РD¡¢C#²»ÔÊÐí¶à½Ó¿ÚʵÏÖ£¬Ò²²»ÔÊÐí¶àÖؼ̳Ð

31. ÔÚC#ÖУ¬¹ØÓÚÒÔÏÂC#´úÂëµÄ˵·¨ÕýÈ·µÄÊÇ£¨Ñ¡Ò»Ï namespace Microsoft {

class Student {

string type=\ÃÀ¹ú¹è¹ÈѧԱ\ internal string name=\ÀîÃ÷\ }

public class Test {

static viod Main() {

Student stu = new Student(); //1

µÚ 14 Ò³ ¹² 24 Ò³

ÄÚ²â/Ô¿¼

Console.WriteLine(stu.type); //2 Console.WriteLine(stu.name); //3 } } }

A¡¢´úÂë1´íÎó B¡¢´úÂë2´íÎó C¡¢´úÂë3´íÎó D¡¢´úÂ붼´íÎó

32. ÔÚC#ÖУ¬¹ØÓÚÊôÐÔµÄ˵»°´íÎóµÄÊÇ£¨Ñ¡Ò»Ï A¡¢ÊôÐÔ¿ÉÒÔÊÇÖ»¶ÁµÄ B¡¢ÊôÐÔ¿ÉÒÔÊÇֻдµÄ C¡¢ÊôÐÔ¿ÉÒÔÊǿɶÁ¿ÉдµÄ D¡¢ÊôÐÔ²»ÄÜÖ»ÊÇ¿ÉдµÄ

33. ÔÚC#ÖУ¬½Ó¿ÚÓë³éÏó»ùÀàµÄÇø±ðÔÚÓÚ£¨Ñ¡Ò»Ï

A¡¢³éÏó»ùÀà¿ÉÒÔ°üº¬·Ç³éÏó·½·¨£¬¶ø½Ó¿ÚÖ»ÄÜ°üº¬³éÏó·½·¨ B¡¢³éÏó»ùÀà¿ÉÒÔ±»ÊµÀý»¯£¬¶ø½Ó¿Ú²»Äܱ»ÊµÀý»¯ C¡¢³éÏó»ùÀ಻Äܱ»ÊµÀý»¯£¬¶ø½Ó¿Ú¿ÉÒÔ±»ÊµÀý»¯ D¡¢³éÏó»ùÀàÄܹ»±»¼Ì³Ð£¬¶ø½Ó¿Ú²»Äܱ»¼Ì³Ð

µÚ 15 Ò³ ¹² 24 Ò³

ÄÚ²â/Ô¿¼

34. ÔÚC#ÖÐ,Èç¹ûÒª½«Êý×é×öΪһ¸ö·½·¨µÄ²ÎÊý,Ôò´«µÝµÄÊÇ£¨Ñ¡Ò»Ï A¡¢Êý×éÖеÄËùÓÐÔªËØ B¡¢Êý×éµÄµÚÒ»¸öÔªËØ C¡¢¶ÔÏóµÄÒýÓà D¡¢ÒÔÉϽԷÇ

35. ÔÚC#ÖУ¬Èç¹ûÒªÔÚÎļþfile1.txtÖÐдÈë×Öĸd£¨ÆäASCIIÂëΪ100£©,ÔòºáÏß´¦¿ÉÒÔÌîдµÄ´úÂëÊÇ£¨Ñ¡Ò»Ï class Class1{

static void Main(string[] args){ string path = @\ FileStream fs=new

FileStream(path,FileMode.Create,FileAccess.Write); ________ÔÚ´Ë´¦ÌîÖ®´úÂë fs.Close(); } }

A¡¢fs.WriteLine(\

B¡¢fs.Write(new byte[]{50,10,150},1,1); C¡¢fs.WriteByte(100); D¡¢fs.Write('d');

µÚ 16 Ò³ ¹² 24 Ò³

ÄÚ²â/Ô¿¼

36. ÔÚC#ÖУ¬Í¨¹ýµ÷ÓÃThread ÀàµÄSleep(int x)·½·¨À´ÊµÏÖ½ûÖ¹Ïß³ÌÔËÐУ¬ÆäÖÐx´ú±í£¨Ñ¡Ò»Ï A¡¢½ûÖ¹Ïß³ÌÔËÐеÄ΢ÃëÊý B¡¢½ûÖ¹Ïß³ÌÔËÐеĺÁÃëÊý C¡¢½ûÖ¹Ïß³ÌÔËÐеÄÃëÊý

D¡¢½ûÖ¹Ïß³ÌÒÔÄÚÐÔµÄCPUʱ¼äÊý

37. ÔÚC#ÖУ¬ÏÂÁдúÂëµÄÔËÐнá¹ûÊÇ£¨Ñ¡Ò»Ï Hashtable hsStu = new Hashtable(); hsStu.Add(3,\hsStu.Add(2,\hsStu.Add(1,\hsStu.Remove(1);

Console.WriteLine(hsStu[2]) A¡¢2 B¡¢B C¡¢1 D¡¢C

38. ÔÚC#ÖУ¬ÏÂÁдúÂëµÄÔËÐнá¹ûÊÇ£¨Ñ¡Ò»Ï int []num = new int[]{3,4,5,3,8}; int index = Array.IndexOf(num,3);

µÚ 17 Ò³ ¹² 24 Ò³

ÄÚ²â/Ô¿¼

Console.WriteLine(index); A¡¢-1 B¡¢0 C¡¢1 D¡¢3

39. ÔÚC#ÖУ¬ÏÂÁдúÂëµÄÔËÐнá¹ûÊÇ£¨Ñ¡Ò»Ï int[] age = new int[]{16,18,14,22}; foreach(int i in age){ if(i>18) continue;

Console.Write(i.ToString()+\}

A¡¢16 18 20 14 22 B¡¢16 18 14 22 C¡¢16 18 14 D¡¢16 18

40. ÔÚC#ÖУ¬ÏÂÁдúÂëµÄÔËÐнá¹ûÊÇ£¨Ñ¡Ò»Ï int[] num = new int[]{1,3,5}; ArrayList arr = new ArrayList(); for(int i=0;i

µÚ 18 Ò³ ¹² 24 Ò³

ÄÚ²â/Ô¿¼

arr.Add(num[i]); }

arr.Insert(1,4); console.Write(arr[2]); A¡¢1 B¡¢3 C¡¢4 D¡¢5

41. ÔÚC#ÖУ¬ÏÂÁдúÂëµÄÔËÐнá¹ûÊÇ£¨Ñ¡Ò»Ï int[] num = new int[5]{1,3,2,0,0}; Array.Reverse(num); foreach(int i in num) {

Console.Write(i); } A¡¢00123 B¡¢12300 C¡¢00132 D¡¢00231

42. ÔÚC#ÖУ¬ÏÂÁдúÂëµÄÔËÐнá¹ûÊÇ£¨Ñ¡Ò»Ï

µÚ 19 Ò³ ¹² 24 Ò³

ÄÚ²â/Ô¿¼

static void main() {

int[] num1 = new int[]{1,2,3,4,5}; int[] num2 = new int[5]{6,7,8,9,10}; Array.Copy(num1,num2,1); foreach(int i in num2) {

Console.Write(i); } } A¡¢62345 B¡¢678910 C¡¢12346 D¡¢178910

43. ÔÚC#ÖУ¬ÏÂÁдúÂëµÄÔËÐнá¹ûÊÇ£¨Ñ¡Ò»Ï struct Student {

public int age; public string name;

public Student(int age,string name) {

µÚ 20 Ò³ ¹² 24 Ò³

ÄÚ²â/Ô¿¼

this.sge = sge; this.name = name; } }

public class Test {

static void Main() {

Student stu1 = new Student(18,\С·¼\ Student stu2 = new Student(24,\С¸Õ\ stu2 = stu1; stu1.age = 30; stu1.name = \СÑà\ Console.WriteLine(stu2.age); Console.WriteLine(stu2.name); } }

A¡¢18С·¼ B¡¢18СÑà C¡¢30СÑà D¡¢30С·¼

µÚ 21 Ò³ ¹² 24 Ò³

ÄÚ²â/Ô¿¼

44. ÔÚC#ÖУ¬ÏÂÁдúÂëÔËÐнá¹ûÊÇ£¨Ñ¡Ò»Ï Hashtable hsStu = new Hashtable(); hsStu.Add(3,\¼×\hsStu.Add(2,\ÒÒ\hsStu.Add(1,\±û\

Console.WriteLine(hsStu[3]); A¡¢3 B¡¢¼× C¡¢1 D¡¢±û

45. ÔÚC#ÖУ¬Ò»¸öÀࣨѡһÏ A¡¢¿ÉÒԼ̳жà¸öÀà B¡¢¿ÉÒÔʵÏÖ¶à¸ö½Ó¿Ú

C¡¢ÔÚÒ»¸ö³ÌÐòÖÐÖ»ÄÜÓÐÒ»¸ö×ÓÀà D¡¢Ö»ÄÜʵÏÖÒ»¸ö½Ó¿Ú

46. ÔÚC#ÖÐʵÏÖÏß³Ìͬ²½µÄ¹Ø¼ü×ÖÊÇ£¨Ñ¡Ò»Ï A¡¢synchronize B¡¢lock C¡¢Monitor D¡¢delay

µÚ 22 Ò³ ¹² 24 Ò³

ÄÚ²â/Ô¿¼

47.ÏÂÃæ¶Ô³£Á¿µÄÃèÊöÕýÈ·µÄÊÇ£¨£©¡£ A¡¢¶¨Òå³£Á¿ÒªÊ¹ÓÃconsole¹Ø¼ü×Ö B¡¢³£Á¿¶¨ÒåµÄͬʱ±ØÐ븳³õÖµ C¡¢³£Á¿¿ÉÒÔ±»·´¸´¸³Öµ D¡¢³£Á¿Ò²¿ÉÒÔ¶¨ÒåÖ®ºóÔÙ¸³Öµ

48.ÀàÓÃÀ´ÃèÊö¾ßÓÐÏàͬÌØÕ÷ºÍÐÐΪµÄ¶ÔÏó£¬Ëü°üº¬£¨£©£¨¶àÑ¡£©¡£ A¡¢±äÁ¿ B¡¢·½·¨ C¡¢¹¹Ôì·½·¨ D¡¢ÐÐΪ

49.ÏÂÃæ¶Ô¹¹Ôì·½·¨µÄ³ÂÊö£¬ÕýÈ·µÄÊÇ£¨£©¡£

A¡¢ÌṩÁËÓвι¹Ôì·½·¨£¬±àÒëÆ÷Ò²»á×Ô¶¯ÌṩÎ޲ι¹Ôì·½·¨ B¡¢¹¹Ôì·½·¨ÓëÀàÃûÏàͬ

C¡¢¹¹Ôì·½·¨Ã»Óзµ»ØÖµ£¬ËùÒÔ¶¨ÒåʱҪÓÃvoid¹Ø¼ü×Ö D¡¢¹¹Ôì·½·¨µÄµ÷Ó÷½·¨ºÍÆäËû·½·¨Ïàͬ¡£ 50.¹ØÓÚref¹Ø¼ü×Ö˵·¨ÕýÈ·µÄÊÇ£¨£©¡£ A¡¢ref¹Ø¼ü×ÖÔÚ·½·¨¶¨Òåʱ²»ÓÃÏÔʾʹÓÃ

B¡¢´«µÝ¸øref²ÎÊýµÄ²ÎÊý±ØÐëÔÚµ÷Ó÷½·¨Ç°³õʼ»¯ C¡¢ref¹Ø¼ü×Ö²»ÄÜʹ²ÎÊýµÄÐ޸Ľá¹û·µ»Ø¸øµ÷Ó÷½·¨ D¡¢ÒÔÉÏ˵·¨¶¼ÊÇ´íÎóµÄ

µÚ 23 Ò³ ¹² 24 Ò³

ÄÚ²â/Ô¿¼

µÚ 24 Ò³ ¹² 24 Ò³

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