AIT402-A PYQ (May 2024) - Module 1-3

0/14 Done
Part A: 3 marks | Part B: 8 marks
Part A - 3 Marks Each (Module 1-3)
DONE
Q1 Identify which RPA tool component is responsible for each: (i) Design & build bots (ii) Real-time monitoring (iii) Execute automation scripts CO1 3 Marks
Answer - RPA Tool Components
RPA Architecture
Bot Creator ──────► Control Room ──────► Bot Runner (Design) (Monitor/Schedule) (Execute) │ │ │ UiPath Studio Orchestrator Robot AA Bot Creator AA Control Room Bot Runner
DONE
Q2 Assertion: Control Room integrates with Active Directory for user authentication. Reason: This ensures role-based access and centralized user management.A-R CO1 3 Marks
Answer - Option (A): Both True, R explains A
DONE
Q3 Identify variable/UiPath activity for: (i) Store collection of key-value pairs (ii) Navigate to website (iii) Read structured data from spreadsheet CO2 3 Marks
Answer - UiPath Variables & Activities
TaskVariable/ActivityPackage
Key-Value StorageDictionary<String,String>System.Collections.Generic
Navigate WebsiteOpen Browser / Navigate ToUiPath.UIAutomation
Read ExcelRead RangeUiPath.Excel.Activities
DONE
Q4 Assertion: GenericValue can store any data type in UiPath. Reason: It automatically converts between types at runtime.A-R CO2 3 Marks
Answer - Option (A): Both True, R explains A
GenericValue Type Conversion
GenericValue gv = "100" gv + 50 → 150 (converts to Int32) gv + "abc" → "100abc" (treats as String) gv > 50 → True (converts to Int32) gv.ToString() → "100" (explicit String)
DONE
Q5 Design UiPath workflow using Switch activity to categorize marks: 90+ = "A", 80-89 = "B", 70-79 = "C", 60-69 = "D", below 60 = "F" CO2 3 Marks
Answer - Switch Activity Grade Calculator
Switch Workflow
[Input Dialog] → marks = 85 ↓ [Assign] gradeGroup = marks / 10 → 8 ↓ [Switch (gradeGroup)] ├── Case 10, 9 → grade = "A" ├── Case 8 → grade = "B" ← Selected ├── Case 7 → grade = "C" ├── Case 6 → grade = "D" └── Default → grade = "F" ↓ [Message Box] → "Grade: B"
DONE
Q6 Differentiate between Macros and Macro Recorder. Analyse use of VB Editor in automation development. CO1 3 Marks
Answer - Macros vs Macro Recorder + VB Editor
AspectMacro RecorderMacros (Code)
CreationRecord actionsWrite/Edit code
Skill neededNoneVBA/Programming
FlexibilityLimitedFull control
Logic supportNoYes (loops, conditions)
DONE
Q7 Differentiate Basic, Desktop, and Web Recording in UiPath. When to use each type? CO2 3 Marks
Answer - UiPath Recording Types
TypeSelectorBest ForSpeed
BasicFull selector eachCitrix, VMs, single actionsSlow
DesktopContainer + partialDesktop apps, multiple actionsFast
WebBrowser containerWeb apps, browsersFast
DONE
Q8 Assertion: Orchestrator Queues ensure FIFO processing of transactions. Reason: Queue items are processed in order they were added.A-R CO2 3 Marks
Answer - Option (A): Both True, R explains A
Queue FIFO Processing
Add Items (in order): [Item1] → [Item2] → [Item3] → [Item4] ↓ Queue: [Item1, Item2, Item3, Item4] (oldest) (newest) ↓ Get Transaction Item returns: Item1 (first in) Next call returns: Item2 ...and so on (First In, First Out)
Part B - 8 Marks Each (Module 1-3)
DONE
Q11a Explain the components of an RPA system with a neat diagram. Describe the role of each component in automating business processes. CO1 8 Marks
Answer - RPA System Components
RPA System Architecture
┌─────────────────────────────────────────────────────────────┐ │ CONTROL ROOM / ORCHESTRATOR │ │ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ │ │ │Scheduling│ │Monitoring│ │ Queues │ │Credential│ │ │ │ │ │ & Logs │ │ │ │ Vault │ │ │ └──────────┘ └──────────┘ └──────────┘ └──────────┘ │ └─────────────────────────┬───────────────────────────────────┘ │ ┌─────────────────┼─────────────────┐ ▼ ▼ ▼ ┌───────────────┐ ┌───────────────┐ ┌───────────────┐ │ BOT CREATOR │ │ BOT RUNNER │ │ BOT RUNNER │ │ (Dev Studio) │ │ (Attended) │ │ (Unattended) │ │ │ │ │ │ │ │ • Design │ │ • User desk │ │ • Server │ │ • Debug │ │ • Triggered │ │ • Scheduled │ │ • Test │ │ by user │ │ • 24/7 │ └───────────────┘ └───────────────┘ └───────────────┘ │ │ │ └─────────────────┴─────────────────┘ │ ┌─────▼─────┐ │REPOSITORY │ │• Workflows│ │• Packages │ │• Libraries│ └───────────┘
DONE
Q11b Explain UiPath licensing editions. Describe workflow types in UiPath. CO2 8 Marks
Answer - UiPath Licensing & Workflow Types
Workflow Types in UiPath
WorkflowBest ForComplexity
SequenceLinear processesSimple
FlowchartBranching logicMedium
State MachineMulti-state processesComplex
DONE
Q12a Explain different types of recorders available in UiPath with suitable examples. When to use each recorder? CO2 8 Marks
Answer - UiPath Recorder Types
Recorder Selection Guide
What are you automating? │ ┌──────┼──────┐ ▼ ▼ ▼ ┌──────┐┌──────┐┌──────┐ │ Web ││Desktop││Virtual│ │ App ││ App ││ Env │ └──┬───┘└──┬───┘└──┬────┘ ▼ ▼ ▼ [Web [Desktop [Basic or Recorder] Recorder]Citrix] Fallback: Always try Basic if others fail
DONE
Q12b Explain Queue management in Orchestrator. Describe Add Queue Item and Get Transaction Item activities. CO2 8 Marks
Answer - Orchestrator Queue Management
Queue Processing Flow (Dispatcher-Performer)
DISPATCHER ROBOT: PERFORMER ROBOT: ───────────────── ──────────────── Read Input Data Get Transaction Item │ │ ▼ ▼ ┌─────────────┐ ┌─────────────┐ │Add Queue │ ──── QUEUE ────► │Process Item │ │Item │ [■][■][■] │ │ └─────────────┘ └─────────────┘ │ │ ▼ ▼ (Loop: Add all) Set Transaction Status (Success/Failed) Queue Item Properties: • SpecificContent - Dictionary with business data • Priority - High/Normal/Low • Reference - Unique identifier • DeferDate - Start processing after this time • Deadline - Must complete by this time
DONE
Q13a Explain control flow activities in UiPath. Write a UiPath program to find factorial of a number using For Each. CO2 8 Marks
Answer - Control Flow Activities
Factorial Program using For Each
Factorial Calculation Workflow
Variables: n : Int32 (input number) result : Int64 = 1 numbers: List<Int32> Steps: 1. [Input Dialog] → Get n from user (e.g., n = 5) 2. [Assign] numbers = Enumerable.Range(1, n).ToList() → Creates list: {1, 2, 3, 4, 5} 3. [For Each] num In numbers (TypeArgument: Int32) │ └── Body: [Assign] result = result * num Iteration 1: result = 1 * 1 = 1 Iteration 2: result = 1 * 2 = 2 Iteration 3: result = 2 * 3 = 6 Iteration 4: result = 6 * 4 = 24 Iteration 5: result = 24 * 5 = 120 4. [Message Box] "Factorial of " + n.ToString + " = " + result.ToString → Output: "Factorial of 5 = 120" Alternative using While: ───────────────────────── i = 1, result = 1 While (i <= n) result = result * i i = i + 1 End While
DONE
Q13b Explain exception handling in UiPath. Describe Try-Catch, Throw, and Rethrow activities with examples. CO3 8 Marks
Answer - Exception Handling in UiPath
Try-Catch Structure
┌─────────────────────────────────────────────────┐ │ TRY CATCH │ ├─────────────────────────────────────────────────┤ │ TRY: │ │ ├── Open Browser │ │ ├── Type Into (Username) │ │ ├── Type Into (Password) │ │ └── Click (Login) │ ├─────────────────────────────────────────────────┤ │ CATCHES: │ │ ├── SelectorNotFoundException │ │ │ └── Log "Element not found: "+ │ │ │ exception.Message │ │ │ └── Take Screenshot │ │ │ │ │ ├── TimeoutException │ │ │ └── Log "Timeout occurred" │ │ │ └── Retry Application │ │ │ │ │ └── System.Exception (catch-all) │ │ └── Log "Error: "+exception.Message │ │ └── Rethrow ← sends to outer handler │ ├─────────────────────────────────────────────────┤ │ FINALLY: │ │ └── Close Browser (cleanup - always runs) │ └─────────────────────────────────────────────────┘ Throw Example: ────────────── If (transactionAmount > 10000) Throw New BusinessRuleException( "Transaction exceeds daily limit of 10000") End If