A hotel booking system handles room registrations across different blocks. Each block has a distinct code prefix, as shown in the table:
| Prefix | Block Name |
|---|---|
| EX | Executive Suite |
| DE | Deluxe Wing |
| ST | Standard Wing |
A program is used to reserve a room. The program:
VerifyPrefix()ReserveRoom() procedure01 blockCode = input("Enter block prefix: ")
02 isValid = VerifyPrefix(blockCode)
03 if isValid == true then
04 roomNum = input("Enter room number: ")
05 roomCode = blockCode + roomNum
06 ReserveRoom(roomCode)
07 endif
Give the line number where concatenation is used.
95 exam-style questions on OCR GCSE Computer Science Programming fundamentals. Each one has a worked solution and a mark scheme showing where the marks go.