Docsity

OutSystems Reactive Web Developer Ultimate Exam, Exams of Technology

Toggle sidebar
bg1
OutSystems Reactive Web Developer Ultimate Exam
**Question 1.** Which OutSystems entity attribute type should be used to store a monetary value with
two decimal places?
A) Integer
B) Decimal
C) Text
D) Boolean
**Answer:** B
**Explanation:** The Decimal type supports fixed‑point numbers and is ideal for currency values that
require precision to two decimal places.
**Question 2.** In a One‑to‑Many relationship, which delete rule ensures that related child records are
automatically removed when the parent is deleted?
A) Protect
B) Delete
C) Ignore
D) Cascade
**Answer:** B
**Explanation:** The Delete rule (also called cascade delete) removes child records when the parent
entity is deleted, preserving referential integrity.
**Question 3.** What is the purpose of a Unique index on an entity attribute?
A) To speed up read‑only queries only
B) To enforce that no two rows have the same value for that attribute
C) To allow duplicate values but improve sorting performance
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download OutSystems Reactive Web Developer Ultimate Exam and more Exams Technology in PDF only on Docsity!

Question 1. Which OutSystems entity attribute type should be used to store a monetary value with two decimal places? A) Integer B) Decimal C) Text D) Boolean Answer: B Explanation: The Decimal type supports fixed‑point numbers and is ideal for currency values that require precision to two decimal places. Question 2. In a One‑to‑Many relationship, which delete rule ensures that related child records are automatically removed when the parent is deleted? A) Protect B) Delete C) Ignore D) Cascade Answer: B Explanation: The Delete rule (also called cascade delete) removes child records when the parent entity is deleted, preserving referential integrity. Question 3. What is the purpose of a Unique index on an entity attribute? A) To speed up read‑only queries only B) To enforce that no two rows have the same value for that attribute C) To allow duplicate values but improve sorting performance

D) To automatically generate primary keys Answer: B Explanation: A Unique index guarantees that each value in the indexed column is distinct across all rows. Question 4. Which widget should you use when you need to display a collection of records with pagination in a reactive web screen? A) Form B) List C) Table D) Container Answer: C Explanation: The Table widget provides built‑in pagination, column sorting, and selection capabilities for record collections. Question 5. How does the OutSystems UI Framework apply a CSS class defined at the Theme level to a screen? A) It overrides any screen‑level classes automatically B) It applies the class only if the screen does not define its own class with the same name C) Theme classes are never applied to screens, only to blocks D) Theme classes are always applied, regardless of screen definitions Answer: B

B) Output Parameter C) Input Parameter D) Site Property Answer: C Explanation: Input Parameters receive values from the caller and cannot be changed inside the action; they are read‑only. Question 9. What is the effect of setting a variable’s scope to “Site” (Site Property) in a reactive web app? A) The variable is shared across all users of the application B) The variable persists only for the current session C) The variable is available only on the screen where it is defined D) The variable is stored in the client’s local storage Answer: A Explanation: Site Properties are global to the application instance and are shared among all users and sessions. Question 10. Which built‑in function converts a Text value representing a date (e.g., “2023‑ 05 ‑ 01 ”) to a DateTime data type? A) ToInteger() B) DateToText() C) TextToDate() D) GetCurrentDate()

Answer: C Explanation: TextToDate parses a string into a DateTime value according to the platform’s default format. Question 11. What does the LogMessage system action do? A) Sends an email to the developer B) Writes a custom entry to the Service Center logs C) Stores a message in the database automatically D) Displays a toast notification on the screen Answer: B Explanation: LogMessage records a custom log entry that can be viewed in Service Center under the General Logs. Question 12. In an Aggregate, which option allows you to retrieve only the first 10 rows of a query? A) Set “Top” to 10 B) Add a “Limit” filter manually C) Use a “Fetch” node after the Aggregate D) Set “Page Size” to 10 Answer: A Explanation: The “Top” property of an Aggregate limits the result set to the specified number of rows. Question 13. Which Join type returns all records from the left entity even if there is no matching record in the right entity?

Answer: A Explanation: “At Start” triggers the fetch when the screen is initialized, while “Only on Demand” waits for a Refresh Data node or similar trigger. Question 16. Which node explicitly forces a data source to re‑execute its query on a reactive screen? A) Fetch Data B) Refresh Data C) Reload Data D) Requery Answer: B Explanation: The Refresh Data node re‑executes the associated data source, updating the UI with fresh results. Question 17. In the screen lifecycle, which event occurs after the screen’s UI has been rendered but before any client‑side scripts run? A) OnInitialize B) OnReady C) OnRender D) OnAfterFetch Answer: C Explanation: OnRender fires after the DOM is built but before the client‑side ready event, allowing final UI adjustments.

Question 18. How can a Block notify its parent screen that a user performed an action? A) By calling a Server Action directly from the Block B) By exposing an Output Parameter and setting it C) By defining an Event in the Block and handling it on the parent screen D) By using a global variable Answer: C Explanation: Blocks raise custom Events that parent screens can handle, enabling decoupled communication. Question 19. Which lifecycle event is triggered when a Block’s input parameters change after the Block is already rendered? A) OnInitialize B) OnParametersChanged C) OnReady D) OnAfterFetch Answer: B Explanation: OnParametersChanged fires whenever the Block receives new input values, allowing it to react to the change. Question 20. Which module type is intended primarily for reusable UI components without any server‑side logic? A) Reactive Web App B) Service Module C) UI Framework Module (Library)

Question 23. Which OutSystems built‑in role‑checking function returns true only if the current user belongs to a specific role? A) IsInRole() B) CheckRole() C) HasRole() D) UserHasRole() Answer: B Explanation: CheckRole evaluates the current session’s roles and returns a Boolean indicating membership. Question 24. What is the primary purpose of Entity Security in OutSystems? A) To hide entities from the Service Center UI B) To prevent unauthorized server‑side access to data at the entity level C) To encrypt entity tables in the database automatically D) To enable client‑side validation of entity fields Answer: B Explanation: Entity Security defines which users/roles can read, write, or delete records, enforcing data protection on the server. Question 25. Which platform feature helps protect against Cross‑Site Scripting (XSS) automatically? A) Input Validation Widgets only B) Automatic HTML encoding of Text variables when rendered C) Manual sanitization required for every Text field

D) Disabling JavaScript on the page Answer: B Explanation: OutSystems automatically encodes Text values when they are inserted into HTML, mitigating XSS risks. Question 26. When consuming a REST API that requires a custom header “X‑API‑Key”, how do you add this header in OutSystems? A) Edit the generated C# code manually B) Use the “Add Header” property of the REST Method in Integration Studio C) Set the header in a Client Action before calling the REST method D) It cannot be done; OutSystems does not support custom headers Answer: B Explanation: The REST Method editor lets you define static or dynamic custom headers, including “X‑API‑Key”. Question 27. Which of the following is NOT a valid way to expose data from an OutSystems application as a SOAP service? A) Publishing an Entity as a Web Service B) Creating a Service Action and marking it as SOAP C) Using the “Expose as SOAP” toggle on a REST Method D) Defining a SOAP Structure and a Service Action manually Answer: C

B) Integration Studio → Performance Tab C) OutSystems IDE → Debug → Metrics D) The browser’s developer console only Answer: A Explanation: Service Center’s Monitoring section provides detailed runtime performance data for each request. Question 31. Which OutSystems element is used to handle errors globally across an application? A) Try‑Catch block inside every action B) Global Exception Handler in the Application module C? (Incorrect placeholder) Answer: B Explanation: The Global Exception Handler captures unhandled exceptions and can log or redirect users consistently. Question 32. In a reactive web screen, which property determines whether a List widget will load its data lazily as the user scrolls? A) Lazy Loading = True B) Infinite Scrolling = Enabled C) Load On Demand = Yes D) Client Side Rendering = True Answer: B

Explanation: Enabling Infinite Scrolling makes the List fetch additional pages automatically when the user reaches the bottom. Question 33. Which of the following is the correct way to enforce a mandatory field on a form input without writing custom JavaScript? A) Set the “Mandatory” property to “Yes” on the Input widget B) Add a server‑side validation in the form’s Submit action only C) Use a CSS class “required” on the widget D) Place a Label with an asterisk Answer: A Explanation: The “Mandatory” property triggers built‑in client‑side validation for the input field. Question 34. When defining a Many‑to‑Many relationship, which OutSystems artifact is automatically created? A) A composite attribute B) A junction (link) entity C) A static entity D) A view Answer: B Explanation: OutSystems generates a link entity that holds the foreign keys of the two related entities. Question 35. Which lifecycle event fires before any data is fetched for a screen? A) OnInitialize

Explanation: UnixTimestamp returns the number of seconds elapsed since the Unix epoch for a given DateTime. Question 38. How can you prevent a REST service method from being invoked by anonymous users? A) Set the method’s “Public” flag to false B) Add a “CheckRole” action at the beginning of the method C) Define the method as “Authenticated” in the REST API definition D) It is not possible; all REST methods are public by default Answer: C Explanation: Marking the method as “Authenticated” requires a valid session token, blocking anonymous access. Question 39. In Service Center, which log type contains stack traces for unhandled exceptions? A) General Log B) Error Log C) Audit Log D) Performance Log Answer: B Explanation: The Error Log records exception details, including stack traces and request context. Question 40. Which of the following statements about Site Properties is true? A) They can be edited by end‑users at runtime B) Their values are stored in the database and can be changed via Service Center

C) They are compiled into the application binary and cannot be changed after deployment D) They are only accessible from Client Actions Answer: B Explanation: Site Properties are persisted in the database, editable through Service Center, and affect all users. Question 41. When you need to display a list of records that updates in real time as other users modify data, which feature should you enable? A) Cache Duration = 0 B) Enable “Realtime” on the data source C) Use a Timer to poll the database every minute D) Set the screen to “Refresh on Load” Answer: B Explanation: Enabling “Realtime” on a data source makes the platform push updates to all connected clients automatically. Question 42. Which of the following is the correct order of execution for a Server Action that contains a Try‑Catch block? A) Catch → Try → Finally B) Try → Catch → Finally C) Try → Finally → Catch D) Finally → Try → Catch Answer: B

B) The variable persists only for the current screen C) The variable’s value is maintained across the user’s session but not across different users D) The variable becomes read‑only Answer: C Explanation: Session variables survive across multiple screens for the same user session, resetting when the session ends. Question 46. Which OutSystems feature allows you to execute a piece of code automatically every night at 02:00? A) Timer B) Scheduled Action C) Cron Job D) Async Process Answer: A Explanation: Timers are server‑side processes that can be scheduled to run at specific times or intervals. Question 47. When you need to pass a complex data structure from a client action to a server action, which parameter type should you use? A) Text B) Record (Structure) C) Integer D) Boolean

Answer: B Explanation: Structures (Records) can hold multiple fields, making them suitable for complex data transfer between client and server. Question 48. Which of the following statements about static entities is correct? A) They are stored in a separate database schema B) Their data can be edited at runtime by end users C) They are compiled into the application and cannot be changed without redeployment D) They support relationships with regular entities Answer: C Explanation: Static entities are immutable at runtime; changes require a new deployment. Question 49. In OutSystems, what is the purpose of the “OnException” flow in a Server Action? A) To log the exception and continue execution B) To define alternative logic that runs when an exception occurs C) To rethrow the exception automatically D) To suppress the exception silently Answer: B Explanation: The OnException branch allows you to handle errors gracefully, such as logging or providing fallback behavior. Question 50. Which OutSystems component enables you to monitor the number of active sessions in real time? A) Service Center → Users → Sessions