早教吧作业答案频道 -->英语-->
C#选择题9ifyouwanttoopenafilethatexistsorcreateitotherwise,whichofthefollowingisright?a)FileStreamfs=newFileStream(“c:\\myfile.txt”,FileMode.Create,FileAccess.Write);b)FileStreamfs=newF
题目详情
C#选择题
9 if you want to open a file that exists or create it otherwise, which of the following is right?
a)FileStream fs=new FileStream(“c:\\myfile.txt”,FileMode.Create,FileAccess.Write);
b)FileStream fs=new FileStream(“c:\\myfile.txt”,FileMode.CreateNew,FileAccess.Write);
c)FileStream fs=new FileStream(“c:\\myfile.txt”,FileMode.Open,FileAccess.Write);
d)FileStream fs=new FileStream(“c:\\myfile.txt”,FileMode.OpenOrCreate,FileAccess.Write);
10 Identifying what is the relationship between the Television class and Speaker class
a)Inheritance b)Composition c)Utilization d)Instantiation
11 (13) An Event is
a) The result of a users action
b) result of a party
c) code to force users action
d) none of above is true
12 A delegate defines
a) a Wahsington representative
b) a class that encapsulates methods - correct answer
c) a means of passing arrays into methods
d) a substitue for an inherited method
13 (5). An instance method
a) Represents the behavior of an object
b) Represents the attribute of an object
c) Represents another class
d) a and b
14 (28). which statement about delegate is true?
a)Before you declare an event inside a class,you can optionally declare a delegate by using the delegate keyword
b)The delegate type consists of the set of arguments that it receive from the method that handles the event
c)Multiple events cannot share the same delegate
d)By using a single-cast delegate, you can invoke only one method corresponding to different events
15 What is the proper header for a class that intends to use an interface.
a) class MyClass IFace
b) class MyClass ; IFace
c) class MyClass : IFace
d) class MyCalss {IFace}
16 which of the following is true about the ‘not runnable ’state of a thread
a)a sleeping thread enters the ‘not runnable’ state when the specified time has elapsed
b)a thread is in a ‘not runnable’ state if it is dead
c)when the start() method is invoked,the thread enters the ‘not runnable’ state
d)when a thread is blocked by another thread,it enters the ‘not runnable’ state
9 if you want to open a file that exists or create it otherwise, which of the following is right?
a)FileStream fs=new FileStream(“c:\\myfile.txt”,FileMode.Create,FileAccess.Write);
b)FileStream fs=new FileStream(“c:\\myfile.txt”,FileMode.CreateNew,FileAccess.Write);
c)FileStream fs=new FileStream(“c:\\myfile.txt”,FileMode.Open,FileAccess.Write);
d)FileStream fs=new FileStream(“c:\\myfile.txt”,FileMode.OpenOrCreate,FileAccess.Write);
10 Identifying what is the relationship between the Television class and Speaker class
a)Inheritance b)Composition c)Utilization d)Instantiation
11 (13) An Event is
a) The result of a users action
b) result of a party
c) code to force users action
d) none of above is true
12 A delegate defines
a) a Wahsington representative
b) a class that encapsulates methods - correct answer
c) a means of passing arrays into methods
d) a substitue for an inherited method
13 (5). An instance method
a) Represents the behavior of an object
b) Represents the attribute of an object
c) Represents another class
d) a and b
14 (28). which statement about delegate is true?
a)Before you declare an event inside a class,you can optionally declare a delegate by using the delegate keyword
b)The delegate type consists of the set of arguments that it receive from the method that handles the event
c)Multiple events cannot share the same delegate
d)By using a single-cast delegate, you can invoke only one method corresponding to different events
15 What is the proper header for a class that intends to use an interface.
a) class MyClass IFace
b) class MyClass ; IFace
c) class MyClass : IFace
d) class MyCalss {IFace}
16 which of the following is true about the ‘not runnable ’state of a thread
a)a sleeping thread enters the ‘not runnable’ state when the specified time has elapsed
b)a thread is in a ‘not runnable’ state if it is dead
c)when the start() method is invoked,the thread enters the ‘not runnable’ state
d)when a thread is blocked by another thread,it enters the ‘not runnable’ state
▼优质解答
答案和解析
9:d
10:b
11:a
12:b
13:a
14:a
15:c
16:d
应该差不多
10:b
11:a
12:b
13:a
14:a
15:c
16:d
应该差不多
看了 C#选择题9ifyouwan...的网友还看了以下:
连字成词(英语)l u o e b s r u s r e t o s w a e s r t e 2020-05-14 …
用这些英文字母拼词这些英文字母打乱了顺序.一个题目一个词.第一题:r,c,t,a,e,s,r第二题 2020-05-16 …
英语单词辨音找出画()部分读音与其余不同的单词()1.A .kn(ee) B.n(e)ck C.r 2020-05-17 …
将字母组成单词,并译成汉语1.m,e,r,m,u,s,汉语2.u,l,t,e,c,u,r,汉语3. 2020-06-04 …
英语单词填空1.时间状语:d-r-n-2.场所:b-s-s-o-f-r--e-a-t-e-t3.教 2020-07-14 …
推断题:现有如下反应(反应条件均不给),推断物质⑴A→B+C+D⑵C+E→C+F+D⑶D+G→H⑷ 2020-07-30 …
关于冠词an是不是所有以f,h,i,m,n,s,x,a,e,l,o,开头的单词都是用an有没有例外? 2020-11-28 …
英语:下1.将下联打乱的字母组成单词,并写出汉语意思1.a,e,h,g,c,n[]2.e,i,s,t 2020-12-10 …
英文单词分类填空动物类1.O()t()p()s2.k()t()e()3.l()b()t()r4.a( 2021-02-05 …
字母a.c.e.g.o.p.q.t.u.v.y.z开头的单词求a.c.e.g.o.p.q.r.t.u 2021-02-07 …