




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































Question 1. Which component of the OpenEdge ecosystem is responsible for executing ABL code on the server side? A) OpenEdge Database B) OpenEdge Application Server C) Progress Developer Studio for OpenEdge (PDSOE) D) Advanced Business Language (ABL) Answer: B Explanation: The OpenEdge Application Server hosts and runs ABL procedures, providing the runtime environment for business logic. Question 2. In PDSOE, which view displays the hierarchical organization of source files, classes, and procedures? A) Project Explorer B) Outline View C) Console D) Debug Perspective Answer: A Explanation: The Project Explorer shows the folder and file structure of an ABL project, making it easy to navigate source code. Question 3. Which statement correctly defines a variable of type DECIMAL with a precision of 10 and scale of 2? A) DEFINE VARIABLE amt AS DECIMAL FORMAT ">>9.99".
B) DEFINE VARIABLE amt AS DECIMAL(10,2). C) DEFINE VARIABLE amt AS DECIMAL(10). D) DEFINE VARIABLE amt AS DECIMAL NO-UNDO. Answer: B Explanation: DECIMAL(p,s) specifies total digits (precision) and digits after the decimal point (scale). Question 4. What is the scope of a variable declared with the keyword SHARED? A) Visible only within the procedure where it is defined. B) Visible to all sessions of the database. C) Visible across all procedures in the same request. D) Visible to all threads of the same ABL session. Answer: D Explanation: SHARED variables are accessible by any thread within the same ABL session, enabling inter‑thread communication. Question 5. Which control‑flow statement will execute its block at least once regardless of the condition? A) IF … THEN … END. B) CASE … END. C) REPEAT … END. D) DO … END.
Question 8. Which parameter mode allows a procedure to modify the variable passed by the caller and also return a value? A) INPUT B) OUTPUT C) INPUT-OUTPUT D) RETURN Answer: C Explanation: INPUT-OUTPUT permits the procedure to read and change the caller’s variable, returning the modified value. Question 9. Which ABL statement establishes a connection to an OpenEdge database named sports located on the default server? A) CONNECT sports. B) OPEN DATABASE sports. C) CONNECT TO "sports". D) USE DATABASE sports. Answer: B Explanation: OPEN DATABASE loads the specified database for the current session. Question 10. What is the purpose of a record buffer in ABL? A) To store the entire table in memory.
B) To hold a single record for manipulation. C) To cache query results. D) To define table structure. Answer: B Explanation: A record buffer represents one row of a table, allowing field‑level access and updates. Question 11. Which statement retrieves the first customer record sorted by CustomerID without locking the record? A) FIND FIRST Customer NO-LOCK BY CustomerID. B) FIND Customer FIRST BY CustomerID NO-LOCK. C) FIND FIRST Customer BY CustomerID. D) FIND Customer NO-LOCK FIRST BY CustomerID. Answer: A Explanation: FIND FIRST … NO-LOCK BY … returns the first matching record without acquiring a lock. Question 12. How does FOR EACH differ from FIND when processing multiple rows? A) FOR EACH can only read, FIND can update. B) FOR EACH iterates automatically over a set; FIND retrieves a single record. C) FOR EACH requires an index; FIND does not. D) FOR EACH locks all rows, FIND locks none.
Question 15. Which statement creates a new record in the Order table and assigns a value to the OrderDate field? A) CREATE Order. ASSIGN OrderDate = TODAY. B) INSERT INTO Order (OrderDate) VALUES (TODAY). C) NEW Order. SET OrderDate = TODAY. D) ADD RECORD Order. SET OrderDate = TODAY. Answer: A Explanation: CREATE creates a blank buffer row; ASSIGN sets field values before the record is written. Question 16. Which ABL statement updates the Price field of the current buffer without requiring a separate FIND? A) MODIFY Price = 9.99. B) ASSIGN Price = 9.99. C) UPDATE Price = 9.99. D) SET Price = 9.99. Answer: B Explanation: ASSIGN modifies field values in the current buffer; the record is automatically written when the transaction ends. Question 17. What does the DELETE statement do when executed on a buffer that is locked EXCLUSIVE?
A) Marks the record for deletion at commit time. B) Immediately removes the record from the database. C) Moves the record to a temporary table. D) Raises a lock conflict error. Answer: B Explanation: DELETE removes the record instantly; the lock ensures no other session can access it concurrently. Question 18. Which command defines an in‑memory table named tempSales with fields Item (CHAR) and Qty (INTEGER)? A) DEFINE TEMP-TABLE tempSales FIELD Item AS CHAR FIELD Qty AS INTEGER. B) CREATE TEMP-TABLE tempSales (Item CHAR, Qty INTEGER). C) DEFINE TABLE tempSales ITEM CHAR, QTY INTEGER. D) TEMP-TABLE tempSales: DEFINE FIELD Item CHAR, Qty INTEGER. Answer: A Explanation: DEFINE TEMP‑TABLE syntax declares a temporary table and its fields. Question 19. In a ProDataSet, which component holds the master‑detail relationship definition? A) DataSource B) Buffer C) Relation
Explanation: FIND defaults to SHARE‑LOCK, allowing other sessions to read but not modify the record. Question 22. Which lock level should be used when you only need to read a record and want to avoid any blocking? A) NO‑LOCK B) SHARE‑LOCK C) EXCLUSIVE‑LOCK D) READ‑ONLY‑LOCK Answer: A Explanation: NO‑LOCK reads without acquiring any lock, preventing blocking but risking dirty reads. Question 23. When does ABL automatically release a record lock acquired with EXCLUSIVE‑LOCK? A) Immediately after the ASSIGN statement. B) At the end of the transaction block or when the buffer is cleared. C) When the user logs out. D) When the program calls RELEASE‑LOCK. Answer: B Explanation: Locks are held for the duration of the transaction or until the buffer goes out of scope.
Question 24. Which statement defines a frame named custFrame that contains the fields CustNum and Name? A) DEFINE FRAME custFrame CustNum Name. B) CREATE FRAME custFrame WITH CustNum, Name. C) FRAME custFrame: ADD FIELD CustNum, Name. D) DEFINE FRAME custFrame FIELD CustNum, FIELD Name. Answer: A Explanation: DEFINE FRAME lists the widgets (usually fill‑ins) that belong to the frame. Question 25. In CHUI, which widget is primarily used for displaying static text? A) FILL‑IN B) DISPLAY C) TEXT D) BUTTON Answer: C Explanation: TEXT widgets show read‑only strings on a frame. Question 26. Which widget allows users to edit a numeric value with built‑in validation? A) FILL‑IN B) DISPLAY
Explanation: ON CHOOSE is the standard trigger for button activation in CHUI. Question 29. What does the WAIT‑FOR statement do in a CHUI application? A) Pauses execution until a specified time elapses. B) Waits for a user event such as a button press. C) Delays the display of a frame. D) Suspends the transaction. Answer: B Explanation: WAIT‑FOR blocks program flow until the defined event occurs (e.g., a CHOOSE trigger). Question 30. Which file extension identifies an OpenEdge class definition? A) .p B) .cls C) .ado D) .obj Answer: B Explanation: .cls files contain OOABL class definitions. Question 31. How do you instantiate an object of class Customer and assign it to variable custObj?
A) custObj = NEW Customer(). B) custObj = CREATE Customer. C) custObj = Customer:NEW(). D) custObj = NEW Customer. Answer: D Explanation: The NEW keyword creates an instance of the specified class. Question 32. Which access modifier makes a property visible only to the class itself and its subclasses? A) PUBLIC B) PRIVATE C) PROTECTED D) INTERNAL Answer: C Explanation: PROTECTED members are accessible within the class and any subclass that inherits it. Question 33. Which statement correctly declares a class Order that inherits from Transaction? A) CLASS Order INHERITS Transaction. B) CLASS Order EXTENDS Transaction. C) CLASS Order SUBCLASS OF Transaction.
Question 36. How do you catch a runtime exception of type ERROR‑MESSAGE in OOABL? A) CATCH ERROR-MESSAGE e: … END. B) TRY: … CATCH e AS ERROR-MESSAGE: … END. C) ON ERROR UNDO, THROW. D) CATCH e FROM ERROR-MESSAGE: … END. Answer: B Explanation: The TRY…CATCH construct captures specific exception classes. Question 37. Which debugger feature lets you pause execution at a specific line of code? A) Watchpoint B) Breakpoint C) Tracepoint D) Logpoint Answer: B Explanation: Breakpoints stop program execution when the line is reached. Question 38. In the debugger, which view displays the current call stack? A) Variables view B) Breakpoints view
C) Call Stack view D) Output view Answer: C Explanation: The Call Stack view shows the sequence of procedure calls leading to the current point. Question 39. Which command clears all breakpoints in the current debugging session? A) CLEAR‑ALL‑BREAKPOINTS. B) DELETE BREAKPOINTS. C) REMOVE ALL BREAKPOINTS. D) CLEAR BREAKPOINTS. Answer: A Explanation: CLEAR‑ALL‑BREAKPOINTS removes every breakpoint set in the session. Question 40. Which of the following statements correctly opens a database named sports in read‑only mode? A) OPEN DATABASE sports READ‑ONLY. B) CONNECT TO sports READ‑ONLY. C) OPEN DATABASE sports AS READ‑ONLY. D) USE DATABASE sports READ‑ONLY. Answer: A
Question 43. What is the effect of the NO‑UNDO option when defining a variable? A) The variable cannot be modified after initial assignment. B) Changes to the variable are not rolled back if a transaction is undone. C) The variable is shared across all sessions. D) The variable is automatically persisted to the database. Answer: B Explanation: NO‑UNDO prevents the variable’s value from being reverted during an UNDO operation. Question 44. Which statement retrieves all Customer records where State equals “TX” using an index on State? A) FOR EACH Customer WHERE State = "TX": END. B) FIND Customer WHERE State = "TX" BY State. C) FOR EACH Customer BY State WHERE State = "TX": END. D) SELECT * FROM Customer WHERE State = "TX". Answer: C Explanation: BY State forces the optimizer to use the State index while applying the filter. Question 45. Which ABL construct allows you to execute a block of code repeatedly while a condition remains true, evaluating the condition before each iteration?
Answer: B Explanation: DO WHILE checks the condition before each loop iteration. Question 46. Which method is used to commit an explicit transaction? A) COMMIT TRANSACTION. B) END TRANSACTION. C) TRANSACTION: COMMIT. D) COMMIT. Answer: D Explanation: The COMMIT statement finalizes the changes made within the current transaction block. Question 47. Which lock mode should you use when you need to read a record and later update it within the same transaction? A) NO‑LOCK B) SHARE‑LOCK C) EXCLUSIVE‑LOCK D) READ‑ONLY‑LOCK