Test4
![]() |
![]() |
![]() |
Title of test:![]() Test4 Description: bc401-objects |




New Comment |
---|
NO RECORDS |
Data and functions are kept separete in the procedural programming model. true. false. What does multiple instantiation mean?. Creating and managing runtime instances. Implementing relationships between classes. Creating instances of different classes. Sending messages directly to specific objects by triggering events. You can group all characteristics and behaviors of similar objects into one central class. true. false. Which of the following is a simplification of complex relationships in the real world?. Inheritance. Abstraction. Encapsulation. Event control. Which kind of UML diagram pays particular attention to the sequence in which objects relate to each other?. class. behavior. component. object. The CLASS statement can be nested, that is, you can define a class within a class. true. false. Which one of the following syntax elements is used to define static attributes?. CLASS-DATA. DATA. LIKE. Which of the following options is used to create an object?. CREATE OBJECT ref_name. APPEND ref_name. CLASS ref_name. Determine whether this statement is true or false. You must create and address objects using reference variables. TRUE. FALSE. Determine whether this statement is true or false. During program runtime, you create discrete objects (instances) in memory for an existing class. This process is called instantiation. true. false. Determine whether this statement is true or false. When calling a static method from within the class, you can omit the class name. TRUE. FALSE. Choose the correct answer(s). In which of the following expressions can functional methods be called directly?. IF. COMPUTE. MOVE. WHILE. Determine whether this statement is true or false. You have to define RETURNING parameters using the VALUE addition, that is they must be pass by value. true. false. Choose the correct answer. You can describe methods that have a _________ parameter as functional methods. EXPORTING. CHANGING. RETURNING. Choose the correct answer. The _____________ is a special instance method in a class. Constructor. Function. Attribute. Determine whether this statement is true or false. The instance constructor is automatically called at runtime with the CREATE OBJECT statement. true. false. extra: Static constructors cannot have parameters or exceptions. true. false. Choose the correct answer. Which of the following points are true about the static constructor?. Each class has not more than one static constructor. The static constructor must be defined in the private area. The static constructor’s signature can have importing parameters or exceptions. The static constructor must be called explicitly from the class. Determine whether this statement is true or false. The instance constructor’s signature can have importing parameters or exceptions. true. false. Choose the correct answer(s). Which of the following are the characteristics of inheritance?. Common components only exist once in the superclass. Components in the subclasses are available in all superclasses. Subclasses contain extensions or changes. Subclasses are not dependent on superclasses. Extra: You can use REDEFINITION in methods of private section area. true. false. Extra: Select all that apply. Constructor of subclass must call superclass constructor. Each class can have its own constructor. Signature of constructor may change in subclass. Static methods cannot be redefined. The static constructor of a superclass is executed when the superclass or one of its subclasses is accessed for the first time. A subclass can always have a static constructor, irrespective of the superclass. Determine whether this statement is true or false. A superclass is a generalization of its subclasses. true. false. Extra: If a subclass and its superclass both have a static constructor, then both constructors are executed when we access the subclass for the first time. If access to the superclass and subclass static constructor occurs at the same time, the superclass static constructor will execute first, immediately followed by the subclass static constructor. true. false. Choose the correct answer(s). Suppose that you have a class X that inherits from class Y. After an up-cast a reference variable that is statically typed TYPE REF TO Y points to an instance of class X. What components of class X can you access with this reference variable?. Components defined in class X. Components inherited from class Y. Components redefined in class X. Components defined in class X and redefined in its subclasses. Choose the correct answer. When objects from different classes react differently to the same method calls, this is known as __________. objects. events. polymorphism. inheritance. Choose the correct answer. A typical use for ________ assignments is to prepare for generic access. events. upcast. methods. downcast. Choose the correct answer. Which of the following is used to assign a superclass reference to a subclass reference?. Widening Cast (Upcast). Narrowing Cast (Downcast). Redefinition. Choose the correct answer. Which of the following is the downcast assignment operator?. =. <>. ?=. =?. Choose the correct answer(s). Suppose that you have the same class X that inherits from class Y. After a down-cast, a reference variable that is statically typed TYPE REF TO X points to an instance of class X. Which of the following components of class X can you access with this reference variable?. Components defined in class X. Components inherited from class Y. Components redefined in class X. Components defined in class X and redefined in its subclasses. Choose the correct answer(s). What are the advantages of correctly using class hierarchies?. Centralized maintenance. Safe and generic method of access. Semantics preserved. Intended use of inherited components. Determine whether this statement is true or false. You can access interface components only by using an object reference. true. false. Choose the correct answer. Which of the following is the main strength of interfaces?. Events. Inheritance. Polymorphism. Determine whether this statement is true or false. ?= is the down-cast assignment operator. true. false. Choose the correct answer(s). Suppose a reference variable that is typed to an interface contains an instance reference of a class that implements this interface and you copy this to a reference variable that is typed to the class (down-cast). Which of the following components can you access with this reference variable?. The components of the interface. The components from the class that are not defined on the interface. All components of the class. The components of the interface for which alias names have been defined. Choose the correct answer. Which of the following strongly resembles inheritance?. Interface. Class. Method. Determine whether this statement is true or false. Interfaces can include other interfaces. True. False. Determine whether this statement is true or false. You can trigger static events only in static methods. true. false. Choose the correct answer. Which of the following statements is used to trigger events?. CLASS-EVENTS. RAISE EVENT. EVENTS. FOR EVENTS. Choose the correct answer. Which of the following is specified by the definition of the handler method?. Which method will react to which event of which class. Which instances will perform the reaction. Choose the correct answer. Which of the following cannot be defined as interface components?. Attributes. Methods. Events. Classes. Determine whether this statement is true or false. Handler methods are registered using the SET HANDLER statement. Registration is only active at program runtime. true. false. Choose the correct answer. Which visibility section would an event need to be defined in, to ensure that it can only be handled in the class itself and its subclasses?. Public. Protected. Private. Determine whether this statement is true or false. You can only use local classes or interfaces within the same program in which they are defined and implemented. True. False. Determine whether this statement is true or false. The naming convention for SAP Standard Global Interfaces is ZIF_ or YIF_. True. False. Choose the correct answer. Which of the following buttons in Class Builder is used to override an inherited method?. CONSTRUCTOR. Redefine. Implementation. Determine whether this statement is true or false. Local types of the global class are encapsulated and cannot be accessed from outside. TRUE. FALSE. Determine whether this statement is true or false. The ABAP List Viewer (ALV) Grid Control is a tool that you can use to display nonhierarchical lists in a standardized form. True. False. Determine whether this statement is true or false. Container controls provide the technical connection between the screen and the application control. True. False. Choose the correct answer. To create a handler object for an event, we must first define a ____________. class. structure. screen. attribute. Determine whether this statement is true or false. A handler method can be either a class method (static method) or an instance method of an object. True. False. Determine whether this statement is true or false. With a Business Add-In (BAdI), an SAP application program provides the enhancement option through an interface method. True. False. Determine whether this statement is true or false. An object of the BAdI adapter class is instantiated by the call of the static method GET_INSTANCE of the class CL_EXITHANDLER. True. False. Determine whether this statement is true or false. To implement a Business Add-In (BAdI), the BADI definition name must be determined. True. False. Choose the correct answer. The code of a BAdI implementation is stored in a __________ of an automatically generated customer class. method. structure. object. Determine whether this statement is true or false. When you work with ADT, you log on to the ABAP back-end system and remain logged on for your entire session. True. False. Choose the correct answer(s). ADT contains native Eclipse editors for which kinds of repository objects?. ABAP Programs. Data elements. ABAP classes. Packages. Text elements. Choose the correct answer(s). You are creating an ABAP class in ADT and have just written the definition of a method in the public section of the class definition. You press CTRL + 1 to see the available quick fixes. Which fixes are available?. Add the implementation of the method. Move the method definition to the protected or private section. Delete the method. |