网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
单选题
Which method of the ChildActionExtensions class calls a child action method and renders the result inline in the parent view?()
A
RenderPartial
B
Action
C
Render
D
RenderAction
参考答案
参考解析
解析:
暂无解析
更多 “单选题Which method of the ChildActionExtensions class calls a child action method and renders the result inline in the parent view?()A RenderPartialB ActionC RenderD RenderAction” 相关考题
考题
Click the Exhibit button. Given:Which statement is true if a TestException is thrown on line 3 of class B? ()
A.Line 33 must be called within a try block.B.The exception thrown by method1 in class A is not required to be caught.C.The method declared on line 31 must be declared to throw a RuntimeException.D.On line 5 of class A, the call to method2 of class B does not need to be placed in a try/catch block.
考题
class A { protected int method1(int a, int b) { return 0; } } Which two are valid in a class that extends class A?() A、 public int method1(int a, int b) { return 0; }B、 private int method1(int a, int b) { return 0; }C、 private int method1(int a, long b) { return 0; }D、 public short method1(int a, int b) { return 0: }E、 static protected int method1(int a, int b) { return 0; }
考题
Which two statements are true about the hashCode method?()A、 The hashCode method for a given class can be used to test for object equality and object inequality for that class.B、 The hashCode method is used by the java.util.SortedSet collection class to order theelements within that set.C、 The hashCode method for a given class can be used to test for object inequality, but NOT object equality, for that class.D、 The only important characteristic of the values returned by a hashCode method is that the distribution of values must follow a Gaussian distribution.E、 The hashCode method is used by the java.util.HashSet collection class to group the elements within that set into hash buckets for swift retrieval.
考题
Which statements concerning the methods notify() and notifyAll() are true? A、Instances of class Thread have a method called notify().B、A call to the method notify() will wake the thread that currently owns the monitor of the object.C、The method notify() is synchronized.D、The method notifyAll() is defined in class Thread.E、When there is more than one thread waiting to obtain the monitor of an object, there is no way to be sure which thread will be notified by the notify() method.
考题
Under which circumstances will a thread stop?() A、The method waitforId() in class MediaTracker is called.B、The run() method that the thread is executing ends.C、The call to the start() method of the Thread object returns.D、The suspend() method is called on the Thread object.E、The wait() method is called on the Thread object.
考题
Which methods from the String and StringBuffer classes modify the object on which they are called?() A、The charAt() method of the String class.B、The toUpperCase() method of the String class.C、The replace() method of the String class.D、The reverse() method of the StringBuffer class.E、The length() method of the StringBuffer class.
考题
You want to limit access to a method of a public class to members of the same class. Which access accomplishes this objective?() A、 publicB、 privateC、 protectedD、 transientE、 default access
考题
You want to limit access to a method of a public class to members of the same class. Which access modifier accomplishes this objective?() A、 PublicB、 PrivateC、 ProtectedD、 TransientE、 No access modifier is required
考题
Which statement is true?()A、A class’s finalize() method CANNOT be invoked explicitly.B、super.finalize() is called implicitly by any overriding finalize() method.C、The finalize() method for a given object is called no more than once by the garbage collector.D、The order in which finalize() is called on two objects is based on the order in which the two objects became finalizable.
考题
You are developing a custom-collection class.You need to create a method in your class. You need to ensure that the method you create in your class returns a type that is compatible with the Foreach statement. Which criterion should the method meet?()A、The method must return a type of either IEnumerator or IEnumerable.B、The method must return a type of IComparable.C、The method must explicitly contain a collection.D、The method must be the only iterator in the class.
考题
You are developing a Windows Communication Foundation (WCF) service. You write a method named Submit that accepts messages of the type System.ServiceModel.Channels.Message. You need to process the body of the incoming messages multiple times in the method. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)()A、Use the GetBody method of the Message class to read the content of the messages.B、Use the CreateBufferedCopy method of the Message class to load the messages into memory.C、Use the WriteBodyContents method of the BodyWriter class to make a copy of the messages.D、Use the CreateMessage method of the MessageBuffer class to make a copy of the messages.
考题
Which method of the Page class searches the page naming container for a server control with a particular identifer?()A、FindFieldTemplateB、FindControlC、FindDataSourceControlD、FindDataControl
考题
你正在定义个一叫做Certkiller的类,这个类包含如下内容. Certkiller类包含一个可以再对象上执行的叫做ProcessChildren的方法。 Cerkiller类的对象可以被序列化()A、Apply the OnDeserializing attribute to the ProcessChildren method.B、Specify that Certkiller Class implements the IDeserializationCallback interface.C、Specify that Certkiller Class inherits from the ObjectManager class.D、Apply the OnSerialized attribute to the ProcessChildren method.E、Create a GetObjectData method that calls ProcessChildren.F、Create an OnDeserialization method that calls ProcessChildren.
考题
单选题You develop a service application named PollingService that periodically calls long-running procedures.These procedures are called from the DoWork method.You use the following service application code: When you attempt to start the service, you receive the following error message: Could not start the PollingService service on the local computer.Error 1053: The service did not respond to the start or control request in a timely fashion. You need to modify the service application code so that the service starts properly.What should you do?()A
Move the loop code into the constructor of the service class from the OnStart method.B
Drag a timer component onto the design surface of the service. Move the calls to the long-running procedure from the OnStart method into the Tick event procedure of the timer, set the Enabled property of the timer to True, and call the Start method of the timer in the OnStart method.C
Add a class-level System.Timers.Timer variable to the service class code. Move the call to the DoWork method into the Elapsed event procedure of the timer, set the Enabled property of the timer to True, and call the Start method of the timer in the OnStart method.D
Move the loop code from the OnStart method into the DoWork method.
考题
多选题You are defining a class named MyClass that contains several child objects. MyClass contains a method named ProcessChildren that performs actions on the child objects.MyClass objects will be serializable.You need to ensure that the ProcessChildren method is executed after the MyClass object and all its child objects are reconstructed. Which two actions should you perform?()AApply the OnDeserializing attribute to the ProcessChildren method.BSpecify that MyClass implements the IDeserializationCallback interface.CSpecify that MyClass inherits from the ObjectManager class.DApply the OnSerialized attribute to the ProcessChildren method.ECreate a GetObjectData method that calls ProcessChildren.FCreate an OnDeserialization method that calls ProcessChildren.
考题
单选题Which statement is true?()A
A class’s finalize() method CANNOT be invoked explicitly.B
super.finalize() is called implicitly by any overriding finalize() method.C
The finalize() method for a given object is called no more than once by the garbage collector.D
The order in which finalize() is called on two objects is based on the order in which the two objects became finalizable.
考题
单选题In your web application,you need to execute a block of code whenever the session object is first created. Which design will accomplish this goal?()A
Create an HttpSessionListener class and implement the sessionInitialized method with that block ofcode.B
Create an HttpSessionActivationListener class and implement the sessionCreated method with thatblock of code.C
Create a Filter class, call the getSession(false) method, and if the result was null, then execute that block of code.D
Create an HttpSessionListener class and implement the sessionCreated method with that block of code.
考题
多选题Which three statements are true?()AA final method in class X can be abstract if and only if X is abstract.BA protected method in class X can be overridden by any subclass of X.CA private static method can be called only within other static methods in class X.DA non-static public final method in class X can be overridden in any subclass of X.EA public static method in class X can be called by a subclass of X without explicitly referencing the class X.FA method with the same signature as a private final method in class X can be implemented in a subclass of X.GA protected method in class X can be overridden by a subclass of X only if the subclass is in the same package as X.
考题
单选题Which methods from the String and StringBuffer classes modify the object on which they are called?()A
The charAt() method of the String class.B
The toUpperCase() method of the String class.C
The replace() method of the String class.D
The reverse() method of the StringBuffer class.E
The length() method of the StringBuffer class.
考题
单选题You want to limit access to a method of a public class to members of the same class. Which access modifier accomplishes this objective?()A
PublicB
PrivateC
ProtectedD
TransientE
No access modifier is required
考题
多选题你正在定义个一叫做Certkiller的类,这个类包含如下内容. Certkiller类包含一个可以再对象上执行的叫做ProcessChildren的方法。 Cerkiller类的对象可以被序列化()AApply the OnDeserializing attribute to the ProcessChildren method.BSpecify that Certkiller Class implements the IDeserializationCallback interface.CSpecify that Certkiller Class inherits from the ObjectManager class.DApply the OnSerialized attribute to the ProcessChildren method.ECreate a GetObjectData method that calls ProcessChildren.FCreate an OnDeserialization method that calls ProcessChildren.
考题
多选题class A { protected int method1(int a, int b) { return 0; } } Which two are valid in a class that extends class A?()Apublic int method1(int a, int b) { return 0; }Bprivate int method1(int a, int b) { return 0; }Cprivate int method1(int a, long b) { return 0; }Dpublic short method1(int a, int b) { return 0: }Estatic protected int method1(int a, int b) { return 0; }
考题
单选题You want to limit access to a method of a public class to members of the same class. Which access accomplishes this objective?()A
publicB
privateC
protectedD
transientE
default access
考题
多选题abstract class A { abstract void al(); void a2() { } } class B extends A { void a1() { } void a2() { } } class C extends B { void c1() { } } and: A x = new B(); C y = new C(); A z = new C(); Which four are valid examples of polymorphic method calls?()Ax.a2();Bz.a2();Cz.c1();Dz.a1();Ey.c1();Fx.a1();
考题
单选题You are developing a custom-collection class.You need to create a method in your class. You need to ensure that the method you create in your class returns a type that is compatible with the Foreach statement. Which criterion should the method meet?()A
The method must return a type of either IEnumerator or IEnumerable.B
The method must return a type of IComparable.C
The method must explicitly contain a collection.D
The method must be the only iterator in the class.
考题
多选题Which two statements are true about the hashCode method?()AThe hashCode method for a given class can be used to test for object equality and object inequality for that class.BThe hashCode method is used by the java.util.SortedSet collection class to order theelements within that set.CThe hashCode method for a given class can be used to test for object inequality, but NOT object equality, for that class.DThe only important characteristic of the values returned by a hashCode method is that the distribution of values must follow a Gaussian distribution.EThe hashCode method is used by the java.util.HashSet collection class to group the elements within that set into hash buckets for swift retrieval.
考题
多选题Which statements concerning the methods notify() and notifyAll() are true?AInstances of class Thread have a method called notify().BA call to the method notify() will wake the thread that currently owns the monitor of the object.CThe method notify() is synchronized.DThe method notifyAll() is defined in class Thread.EWhen there is more than one thread waiting to obtain the monitor of an object, there is no way to be sure which thread will be notified by the notify() method.
热门标签
最新试卷