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

ÄÚ²â/Ô¿¼

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 Ò³

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