LANGUAGES | POWER BUILDER | POWER BUILDER INTERVIEW QUESTION AND ANSWERS - 19

Power Builder Interview Question and Answers:

97.     When do you need to use .PBD?
      We use .PBD when the number and size of the objects in our application would otherwise make a very large .EXE (1.2 to 1.5 megabytes). we need to share components among several applications. distribute application components selectively, for example, to upgrade an application or fix a bug.

98.     How many .PBDs can you have for one application?
      As many as we need and depending on available memory.

99.     How many .PBRs can you have for one application?
      One

100.     What is .PBR file?
      PBR file is an ASCII File in which we list resource names or DW object names that were referenced dynamically in the script.

101.     What types of Menus available in Power Builder?
     

    Drop Down
    Cascading
    Pop-up

102.     What is Regenerate option in the Library painter? When is it most useful?
      It compiles all codes of an object(s). Regeneration is important during the development of our PB application. Regeneration is useful :

    when we have an error message with no reason for it;
    When we upgrade to a new version of PB, the new version should regenerate all its source code to update it;
    When we make a change to an ancestor window that has many descendants, the changes can be immediately rippled throughout all child window through regeneration. Regenerating could be called “recompiling”. When you regenerate an entry, Power Builder recompiles the source form stored in the library and replaces the existing compiled form with the recompiled form.


103.     When do you need to use a .PBR?
      We create .PBR if we have any dynamically assigned objects, bitmaps or icons and to reduce the number of files we need to distribute with the .EXE. We typically use a .PBR when we have scripts in our application in which we dynamically assign resources to attributes of objects or controls in the application. If we do not use a .PBR, we must distribute various .BMP, .RLE, .ICO files with the application. We must place in .PBD’s any objects that we reference dynamically in scripts in the application.

104.     Why do we create PBR, PBD files?
      We create .PBR if we have any dynamically assigned objects, bitmaps or icons to reduce the number of files we need to distribute with the .EXE. We have to create .PBD if we have more than one PBL. It allows us to break the application into smaller units that are easier to manage and makes the executable file smaller, and at execution time we can load any objects that are not contained in the application’s executable file. It makes sense to use PBD when our application is really large.

No comments:

Post a Comment