1. Trang chủ
  2. » Thể loại khác

Đề thi SW - Chuan CNTT Nhat Ban VNSW4 2004 PM2

26 49 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 26
Dung lượng 1,42 MB

Nội dung

Đề thi SW - Chuan CNTT Nhat Ban VNSW4 2004 PM2 tài liệu, giáo án, bài giảng , luận văn, luận án, đồ án, bài tập lớn về t...

MINISTRY OF SCIENCE AND TECHNOLOGY B KHOA H C VÀ CƠNG NGH HỒ L C HIGH TECH PARK MANAGEMENT BOARD BAN QU N LÝ KHU CƠNG NGH CAO HỒ L C VIETNAM IT EXAMINATION AND TRAINING SUPPORT CENTER (VITEC) TRUNG TÂM SÁT H CH CÔNG NGH THÔNG TIN VÀ H TR ÀO T O (VITEC) SOFTWARE DESIGN AND DEVELOPMENT ENGINEER EXAMINATION SÁT H CH K S THI T K VÀ PHÁT TRI N PH N M M 4th April 2004 Ngày tháng n m 2004 Afternoon, Part Bu i chi u, Ph n Do not open the exam booklet until instructed to so Không m đ thi tr phép c đ Inquiries about the exam questions will not be answered Các th c m c v câu h i thi s không đ c tr l i c 2004 VITEC Software Design and Development Engineer Examination (Afternoon, Part 2) Questions must be answered in accordance with the following: Question Nos Q1 Question Selection All Sub-Questions are compulsory Examination Time 15:30-16:30 (60 minutes) Instructions: Use an HB pencil If you need to change an answer, erase your previous answer completely and neatly Wipe away any eraser debris Mark your examinee information and test answers in accordance with the instructions below Your test will not be graded if you not mark properly Do not mark on white on the answer sheet outside of the prescribed places (1)Examinee Number Write your examinee number in the space provided, and mark the appropriate space below each digit (2)Date of Birth Write your date of birth (in numbers) exactly as it is printed on your examination admission card, and mark the appropriate space below each digit (3)Write each answer in the space specified for that question (4)Write your answers clearly and neatly Answers that are difficult to read will receive a lower score After the test, you may take this question booklet home with you Do not open the exam booklet until instructed to so Inquiries about the exam questions will not be answered Mùa xuân 2004 K thi K s Các câu h i ph i đ VITEC Thi t k Phát tri n ph n m m (Bu i chi u - Ph n 2) c tr l i tuân theo h S hi u câu h i L a ch n câu h i Th i gian làm ng d n sau: Q1 T t c câu h i đ u b t bu c 15:30 ~ 16:30 (60 phút) H ng d n: Dùng bút chì HB N u b n c n thay đ i câu tr l i, xoá s ch câu tr l i tr Ph i h t b i t y gi y c ánh d u thông tin d thi câu tr l i c a b n theo h ng d n d i Bài thi s không đ c ch m m n u không đánh d u Không đánh d u ho c vi t ngồi nh ng ch đ c qui đ nh phi u tr l i (1) S báo danh Hãy vi t s báo danh c a b n vào ch cho, đánh d u ch thích h p d i m i ch s (2) Ngày sinh Hãy vi t ngày sinh c a b n (b ng s ) xác nh đ c in phi u d thi, đánh d u ch thích h p d i m i ch s (3) Hãy vi t t ng câu tr l i vào ch đ c dành cho câu h i Câu tr l i có th vi t b ng ti ng Anh ho c ti ng Vi t (4) Hãy tr l i m t cách rõ ràng gãy g n Nh ng câu tr l i khó đ c s b m th p h n Cu i gi thi, b n có th gi l i b đ thi Không m đ thi tr c đ c phép Cán b coi thi khơng gi i thích thêm v câu h i Q1 Read the following description of a hotel reservation system and answer Sub-Questions through Travel Company A has decided to build a hotel reservation system As shown in Figure 1, this system consists of a hotel reservation server and client PCs installed at customers’ offices and hotels They are connected over a network The main task of this system is to accept reservations from the clients installed at the sites of customers who are registered as members of the system Reservations are made to the hotel room information service, (hereinafter referred to as room inventory), which has been registered by client PCs in the hotels to the hotel reservation server Hotel reservation server Network A client PC at a … A client PC at a customer site customer site A client PC at a … A client PC at a hotel site hotel site Fig Configuration of the Hotel Reservation System Tasks handled by this system are shown in the table below Table Clients Hotel site Tasks Handled by the Hotel Reservation System Tasks Description of function Register/update room inventory Room inventory for each room type is registered by specifying the hotel and available dates It is also possible to update the room inventory Output reservation list The listing of the rooms reserved, customers, and room rates, is displayed for the specified hotel and check-in date For the specified hotel, the room rates for each season and room type are set as specified The region, district, check-in date, room type and number of rooms are Search for/reserve specified and a search is made for hotels which satisfy specified conditions It is also possible to select any one of the hotels found hotel rooms and reserve a room or rooms Query/cancel Displays the details of a reservation made by a customer reservation details Reservations may also be canceled Register/update/delet Customers may register as members of this service by entering the e member required customer information It is also possible to update and information delete this customer information Register room rates Customer site The prerequisites assumed for this system are given below The system manages the number of rooms in the room inventory In other words, hotel reservations are only allowed when the number of available rooms is greater than or equal to the number of rooms being requested The number of available rooms is reduced or increased when a reservation or cancellation is made There are four room types: single, twin, triple, and suite There are three types of season: off-season, mid-season, and in-season This is determined based on the check-in date Room rates are set by hotel, by room type and by season The room rate quoted is for a single night in a room The total price is calculated by multiplying the number of rooms by the room rate Discounts are not considered Only the customers who are registered as members may make hotel reservations It is impossible to delete the membership of a customer who has a reservation Note that issues such as authentication of client operators, the duration of each task, changes in room rates, issues of coupons and settlements are outside the scope of this problem Examples of the display screens and output reports used in this business process are shown in Figures through The legend used in Fig also applies to Fig Room registration/update Hotel code: Date: M 1234 Hotel name: Hotel Wakkanai 20 D Y Regist/ District: Wakkanai 2001 Single Current Region: Hokkaido Twin Triple Suite Reserved rooms − − − − Registered rooms − − − − 120 60 Update No of rooms Return to menu Registration Registration OK Single Reserved rooms Registered rooms Twin Triple Suite 0 − 120 60 − Return to menu Legend: : Input area : Pull-down menu (selection from choices) : Display area for output depending on input , : Radio button (selection of one item) : Execution button Clicking on the button for executing a registration, search or reservation on the part of the screen above the double line the double line Fig , causes the screen below to be displayed Room Registration / Update Screen (sample) Hotel search / reservation Region: Hokkaido Check-in date: M Room type: Twin No of rooms: District: Wakkanai D 20 Y 2001 Search Hotel name Return to menu Room rate Room availability Hotel Wakkanai $ 180 Fully booked Kitano-kuni Hotel $ 150 Vacant Hotel Nosappu $ 170 Vacant Reservation Return to menu Reservation complete Reservation No.: 23456 Member No.: 3456 John Smith Check-in date: M Hotel name: Kitano-kuni Hotel Room type: Room rate: D Twin $ 20 Y 2001 No of rooms: 150 Total amount: $ 300 Return to menu Fig Hotel Search / Reservation Screen (sample) Reservation list Hotel code: 1234 Hotel name: Hotel Wakkanai Check-in date: 15 July, 2001 Reservation No Room type 45678 Single 56789 Single 67890 Twin Member No 7890 8901 9012 As of 10 July, 2001 District: Wakkanai Name Joe Smith Mary Diamond John Lee Output Reservation List (sample) Total amount $120 $240 $180 … … … … … … Fig No of rooms Region: Hokkaido Here, the hotel reservation server stores data into the relational databases which are defined by the tables reflecting the E-R diagram In order to match the E-R diagram, entity names are used for the table names and attribute names for the column names, and appropriate data types must be used for the tables Data is processed using embedded SQL within the host programming language used to code the main program to handle various task requests from clients Sub-Question Place the correct attribute names in boxes a and b in the E-R diagram shown in Fig Sub-Question In the table definitions using SQL, the deletion of memberships for customers who already have reservations is prevented by setting the following integrity c constraint Place the correct words in the following boxes f through When it comes to e for table d column in c table, f is set Sub-Question The following SQL code is the code for creating the reservation listing shown in Figure for the hotel code and check-in date that have been specified i g through Place the correct word or expression in boxes in the description below Note that “:XXX” is the host variable that stores the data on “XXX” specified by the client SELECT RESERVATION.RESERV_NO, RESERVATION.ROOM_TYPE, RESERVATION.RESERVED_ROOMS, RESERVATION.MEMBER_NO, MEMBER.NAME, g FROM RESERVATION, MEMBER, CHARGE, CALENDAR WHERE RESERVATION.HOTEL_CODE = :HOTELCODE AND RESERVATION.CHECKIN_DATE = :CHECKINDATE AND h AND RATE.HOTEL_CODE = :HOTELCODE AND RATE.ROOM_TYPE = RESERVATION.ROOM_TYPE AND CALENDAR.CHECKIN_DATE = :CHECKINDATE AND i Sub-Question In order to handle multiple nights, the travel company decided to add an input area for “number of nights” to the hotel search/reservation screen so that all reservation operations with a common combination of the hotel, room type, and number of rooms which are related to a multiple-night stay could all be handled with a single reservation number at once To this, the “Reservation” entity in the E-R diagram shown in Figure was split into two parts: “Reservation,” for single reservations, and “Reservation_details” for each night of stay, and the attributes were allocated to the two Enter the correct attribute names associated with each entity according to the legend and complete the part for the E-R diagram Note that the room rates for the season in question are applied to each night of stay and that there should be no unnecessary, redundant data (the second normal form) Sub-Question Figure shows the flow of processing for updating data when the Reservation button is pressed within the hotel reservation program after the specification changes in Sub-Question have been made With this program, the cursor coming from the room inventory table is declared as shown in Figure and processing for multiple nights is handled using cursor operations Although multiple instances of data are updated when using this program, a transaction management function is used for the relational database in order to preserve integrity when updates are requested simultaneously by multiple clients, or when a system error occurs in the middle of processing Using this function, transactions are started automatically when the program starts, and are separated when an SQL COMMIT or ROLLBACK statement is executed Data processed during that time is either confirmed or canceled Because data is not locked between the point that a hotel search is made and a hotel reservation is made, it is necessary to confirm that a room is still available at the time of reservation even if the hotel had empty rooms when it was found CLOSE processing for the cursor is automatically executed when a COMMIT or ROLLBACK statement is executed In the case of multiple-night reservations, reservations are made only if rooms are available for all the nights being requested Data related to the room inventory is not affected in any other cases 10 Start Obtain Reserv_no j k →COUNTER No Is there data? Yes Is there a vacant room? No Yes UPDATE the Room_inventory m n Reservation not possible COUNTER + → COUNTER No COUNTER = NO_OF_NIGHTS Yes COMMIT ROLLBACK Reservation complete Reservation not possible Fig Flow of Data Update Process When Reservation Button is P d 11 DECLARE ROOM_STOCK_CSR CURSOR FOR SELECT * o WHERE HOTEL_CODE = :HOTELCODE AND ROOM_TYPE = :ROOMTYPE p AND FOR UPDATE; Fig Cursor Declaration (1) Place the symbol for the correct word (appearing in the following answer j n group) in boxes through within the flowchart shown in Fig related to updating data when the Reservation button is pressed Answer group: a) COMMIT b) ROLLBACK c) FETCH with the cursor d) OPEN the cursor e) INSERT into the Room_inventory f) INSERT into the Reservation g) UPDATE the Reservation h) INSERT into the Reservation_details i) UPDATE the Reservation_details (2) Place the correct word or expression in boxes o through p in the cursor declaration shown in Fig Note, however, that the host variables “:CHECKINDATE_F” and “:LASTNIGHT_T” can be used They are of the same DATE type as “CHECK_IN_DATE” in the database They represent, respectively, the first night and last night of the continued stay (the check-in date + the number of nights − one day) as specified by the customer 12 Q1 Hãy đ c mô t sau v h đ t ch khách s n tr l i Câu h i t đ n Công ty Du l ch A quy t đ nh xây d ng m t h đ t ch khách s n Nh đ c bi u di n Hình 1, h g m m t máy ch đ t ch khách s n PC khách đ c thi t đ t t i v n phòng khách hàng khách s n Chúng đ c n i v i qua m t m ng Nhi m v ch y u c a h th ng nh n đ t ch t máy khách đ c cài đ t đ a m c a nh ng khách hàng đ c đ ng kí nh thành viên c a h th ng Vi c đ t ch đ c g i t i d ch v thơng tin phòng khách s n (sau đ c coi nh ki m kê phòng), đ c đ ng kí b i máy PC khách khách s n đ i v i máy ch đ t ch khách s n May chu dat cho Mang PC khach o cho … PC khach o cho khach hang khach hang PC khach o khach san … PC khach o khach san Hinh Cau hinh he thong dat cho khach san Các nhi m v đ B ng Máy khách c x lí b i h đ Các nhi m v đ c ch b ng d cx lí b i H th ng Nhi m v i t ch Khách s n Mô t ch c n ng Ki m kê phòng đ i v i m i ki u phòng đ c đ ng kí b ng cách xác đ nh khách s n ngày có th dùng đ c ng th i c ng có kh n ng c p nh t ki m kê phòng a danh sách đ t Danh sách c a phòng đ c đ t, khách hàng m c giá phòng khách s n đ c hi n th đ i v i m t khách s n c th ngày đ ng kí khách ch s n (check-in date) ng kí m c giá i v i m t khách s n c th , m c giá cho m i mùa m i ki u phòng đ c thi t l p nh đ nh phòng ng kí/ C p nh t ki m kê phòng Vùng, qu n, ngày đ ng ký khách s n, ki u phòng t ng s phòng Tìm ki m/đ t phòng đ c xác đ nh vi c tìm ki m đ c th c hi n đ i v i nh ng khách s n tho mãn u ki n xác đ nh C ng có kh n ng ch n b t k khách s n m t khách s n tìm đ c đ t m t hay nhi u phòng ch Hi n th chi ti t c a m t vi cđ t ch d c th c hi n b i m t khách khách Yêu c u/Hu chi ti t hàng đ t ch hàng Vi c đ t ch c ng có th b h y b ng kí/c p nh t/ Khách hàng có th đ ng kí nh thành viên c a d ch v b ng cách xố thơng tin thành vào thơng tin khách hàng đ c yêu c u C ng có kh n ng c p nh t viên xoá thông tin khách hàng i u ki n tiên quy t đ c gi thi t cho h đ c trình bày d i H qu n lí t ng s phòng ki m kê phòng Nói cách khác, vi c đ t ch khách s n ch đ c phép t ng s phòng tr ng b ng ho c l n h n t ng s phòng yêu c u T ng s phòng tr ng b gi m ho c t ng lên có vi c đ t ch ho c h y đ t ch Có b n ki u phòng: phòng đ n, phòng đơi, phòng ba phòng ti n nghi Có ba ki u mùa: mùa, gi a mùa mùa i u đ c xác đ nh d a ngày đ ng ký vào khách s n M c giá phòng đ c thi t đ t theo khách s n, theo ki u phòng theo mùa M c giá phòng đ c tính cho m t đêm phòng T ng s ti n đ c tính b ng cách nhân t ng s phòng v i m c giá phòng Vi c gi m giá không đ c xét t i Ch nh ng khách hàng đ c đ ng kí nh thành viên m i có th đ t ch khách s n Khơng th xoá t cách thành viên c a m t khách hàng có đ t ch L u ý r ng m i v n đ nh xác th c ng i thao tác máy khách, kho ng th i gian cho m i nhi m v , thay đ i m c giá phòng, ban hành phi u vé tốn n m ngồi ph m vi c a tốn Nh ng ví d v hình hi n th báo cáo đ u đ c s d ng trình ho t đ ng đ c ch Hình đ n Hình Chú gi i s d ng Hình c ng đ c áp d ng cho Hình Room registration/update – ng kí/c p nh t phòng Mã khách s n: 1234 Tên Khách s n: HotelWakkanai Vùng: Ngày: M D 20 Y ng kí/ Wakkanai 2001 Phòng Hi n th i Qu n: Hokkaido n Phòng Phòng Ba P Ti n nghi Nh ng phòng đ cđ t − − − − Nh ng phòng đ c đ/kí − − − − C p nh t T ng s phòng 120 60 Ve bang chon ng ký ng kí OK Phòng n Phòng Phòng Ba P Ti n nghi 0 − 120 60 − Nh ng phòng đ t ch Nh ng phòng đ ng kí Ve bang chon : Vùng nh p vào Chú gi i: : Th c đ n Pull-down (ch n t nhi u l a ch n) : Hi n th đ u ph thu c vào đ u vào , : Nút Radio (ch n m c) : Nút Th c hi n Khi b m vào phím đ th c hi n vi c đ ng kí, vi c tìm đ t ch ph n hình phía đ v ch kép Hình ng kép , làm hi n th ph n hình phía ng kí phòng / Màn hình c p nh t (m u) d i Tìm Khách s n / đ t ch Vùng: Hokkaido Ngày Check-in: M Ki u Qu n: Wakkanai D 20 Y 2001 phòng: Twin T ng s phòng: Tìm Tên khách s n Ve bang chon M c giá phòng Có phòng? Hotel Wakkanai $ 180 T t c đ t ch Kitano-kuni Hotel $ 150 Tr ng Hotel Nosappu $ 170 Tr ng at cho Ve bang chon t ch hoàn thành S đ t ch : 23456 S thành viên: 3456 John Smith Ngày Check-in: M Tên khách s n: Kitano-kuni Hotel Ki u phòng: M c giá phòng: D Twin $ 20 Y 2001 T ng s phòng 150 T ng s ti n: $ 300 Ve bang chon Fig Tìm khách s n/ Màn hình đ t ch (m u) Danh sách đ t ch Mã khách s n: 1234 Tên khách s n: Hotel Wakkanai Ngày Check-in: 15 July, 2001 Single 8901 67890 Twin … … T ng s phòng S hi u thành viên 7890 … Hình T ng s ti n $120 9012 … 56789 Tên Joe Smith Mary Diamond John Lee … Ki u phòng Single … S hi u đ t ch 45678 Ngày 10 thnág n m 2001 Vùng: Hokkaido Qu n: Wakkanai Danh sách đ t ch (m u) $240 $180 Hình ch bi u đ th c th -quan h đ c xác đ nh cho h Hotel District Region Hotel_code District_code Region_code Hotel_name District_name Region_name a Region_code Address Phone_no Rate Calendar Hotel_code Check-in_date Room_inventory Season Room_type Season Check-in_date Room_charge Hotel_code Room_type Reserved_rooms b Reservation Reserv_no Member_no Member Check-in_date Member_no Hotel_code Name Room_type Address Reserved_rooms Phone_no Legend: Ghi chú: : to Entity_name : to many Attribute_name : many to many Attribute_name thu c tính đnames c g represent ch chân làprimary khố UTên nderlined attribute keys Fig Bi u đ th c th -quan h đây, máy ch đ t ch khách s n l u gi d li u c s d li u quan h đ c xác đ nh b i b ng ph n ánh bi u đ th c th -quan h phù h p v i bi u đ th c th -quan h , tên th c th đ c s d ng cho tên b ng tên thu c tính cho tên c t, ki u d li u thích h p c n ph i đ c s d ng cho b ng D li u đ c x lí s d ng SQL nhúng ngơn ng l p trình máy ch (host programming language) đ c s d ng đ vi t mã ch ng trình đ x lí nh ng u c u nhi m v khác t phía máy khách Câu h i t nh ng tên thu c tính vào h p a b bi u đ th c th -quan h bi u di n Hình Câu h i Trong nh ng đ nh ngh a b ng s d ng SQL, vi c xoá t cách thành viên c a nh ng khách hàng có đ t ch đ c ng n ng a b ng cách thi t đ t s ràng bu c toàn v n sau Hãy đ t t vào h p sau, t f c đ n Khi đ n c t e cho b ng d b ng c , f đ c thi t đ t Câu h i L nh SQL sau l nh đ t o danh sách đ t ch đ c bi u di n Hình đ i v i mã khách s n (hotel code) ngày đ ng ký vào khách s n (check-in date) đ c xác đ nh Hãy đ t t hay bi u th c vào h p i g đ n mô t d i đây: L u ý r ng “:XXX” bi n máy ch l u gi d li u v “XXX” đ b i phía máy khách SELECT RESERVATION.RESERV_NO, RESERVATION.ROOM_TYPE, RESERVATION.RESERVED_ROOMS, RESERVATION.MEMBER_NO, MEMBER.NAME, g FROM RESERVATION, MEMBER, CHARGE, CALENDAR WHERE RESERVATION.HOTEL_CODE = :HOTELCODE c xác đ nh AND RESERVATION.CHECKIN_DATE = :CHECKINDATE AND h AND RATE.HOTEL_CODE = :HOTELCODE AND RATE.ROOM_TYPE = RESERVATION.ROOM_TYPE AND CALENDAR.CHECKIN_DATE = :CHECKINDATE AND i Câu h i x lí nhi u đêm, cơng ty du l ch quy t đ nh thêm m t vùng nh p s li u “t ng s đêm” đ i v i hình tìm/đ t ch khách s n cho t t c thao tác đ t ch v i m t t h p chung c a khách s n, ki u phòng t ng s phòng liên quan t i vi c l u l i nhi u đêm, có th đ c x lí t t c ch m t l n đ t ch v i m t s hi u đ t ch làm u này, th c th “Reservation” bi u đ th c th -quan h đ c bi u di n Hình đ c chia làm hai ph n: “Reservation” đ i v i vi c đ t ch “Reservation_details” đ i v i vi c l u l i m i đêm, thu c tính đ c c p phát cho c hai ph n Hãy nh p vào bi u đ th c th -quan h tên thu c tính đ c liên k t v i m i th c th phù h p v i gi i, hoàn thành ph n c a bi u đ th c th -quan h L u ý r ng m c giá phòng cho mùa xét đ c áp d ng cho m i đêm l u trú r ng khơng đ c có d li u d th a, không c n thi t (d ng chu n th hai) Câu h i Hình mơ t lu ng x lí đ c p nh t d li u nút t ch (Reservation) đ c n ch ng trình đ t ch khách s n sau nh ng thay đ i đ c t Câu h i đ c th c hi n V i ch ng trình này, tr (cursor) đ n t b ng ki m kê phòng đ c khai báo nh ch Hình vi c x lí nhi u đêm đ c ti n hành s d ng phép toán tr M c dù nhi u th nghi m d li u đ c c p nh t s d ng ch ng trình này, m t hàm qu n lí giao d ch đ c s d ng cho c s d li u quan h đ b o v tính tồn v n vi c c p nh t đ c yêu c u đ ng th i b i nhi u máy khách (client PC), ho c m t l i h th ng x y gi a ch ng x lí S d ng hàm này, giao d ch đ c b t đ u m t cách t đ ng ch ng trình kh i đ ng, đ c tách r i m t khai báo SQL COMMIT ho c ROLLBACK đ c th c hi n D li u x lí th i gian ho c đ c xác nh n ho c b h y b Do d li u khơng b khố gi a th i m tìm ki m m t khách s n th i m th c hi n đ t ch khách s n, v n c n thi t ph i xác minh r ng phòng v n có t i th i m đ t ch , c khách s n qu th c có nh ng phòng tr ng đ c tìm th y Vi c x lí CLOSE cho tr (cursor) đ c th c hi n t đ ng m t khai báo COMMIT ho c ROLLBACK đ c th c hi n Trong tr ng h p đ t ch nhi u đêm, nh ng vi c đ t ch đ c th c hi n ch có phòng cho t t c đêm yêu c u D li u liên quan t i ki m kê phòng khơng b tác đ ng b t kì nh ng tr ng h p khác 10 Bat dau Nhan Reserv_no j k →COUNTER Khong Co du lieu? Co Co cho trong? Khong Co UPDATE the Room_inventory m n Khong the dat cho COUNTER + → COUNTER Khong COUNTER = NO_OF_NIGHTS Co COMMIT ROLLBACK Hoan viec dat cho Khong the dat cho Hinh Luong tien trinh cap nhat du lieu nhan nut Dat cho 11 DECLARE ROOM_STOCK_CSR CURSOR FOR SELECT * o WHERE HOTEL_CODE = :HOTELCODE AND ROOM_TYPE = :ROOMTYPE p AND FOR UPDATE; Hinh Khai bao tro (1) Hãy đ t kí hi u cho t (xu t hi n nhóm câu tr l i sau đây) n j đ n l u đ ch Hình liên h p quan đ n vi c c p nh t d li u nút đ t ch (Reservation) đ c n Nhóm câu tr l i: a) COMMIT b) ROLLBACK c) FETCH v i cursor d) OPEN cursor e) INSERT vào ki m kê Phòng f) INSERT vào Reservation g) UPDATE Reservation h) INSERT vào Reservation_details i) UPDATE Reservation_details (2) Hãy đ t t ho c bi u th c vào h p o đ n p khai báo cursor ch Hình Gi thi t r ng, nhiên, bi n máy ch “:CHECKINDATE_F” “:LASTNIGHT_T” có th đ c s d ng Chúng có ki u DATE nh “CHECK_IN_DATE” c s d li u Chúng đ i di n cho đêm đ u tiên đêm cu i t ng ng c a vi c l u l i liên t c (ngày check-in + t ng s đêm − m t ngày) nh đ c xác đ nh b i khách hàng 12 ... gi thi, b n có th gi l i b đ thi Không m đ thi tr c đ c phép Cán b coi thi khơng gi i thích thêm v câu h i Q1 Read the following description of a hotel reservation system and answer Sub-Questions... Inquiries about the exam questions will not be answered Mùa xuân 2004 K thi K s Các câu h i ph i đ VITEC Thi t k Phát tri n ph n m m (Bu i chi u - Ph n 2) c tr l i tuân theo h S hi u câu h i L... twin, triple, and suite There are three types of season: off-season, mid-season, and in-season This is determined based on the check-in date Room rates are set by hotel, by room type and by season

Ngày đăng: 11/12/2017, 17:32

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

  • Đang cập nhật ...

TÀI LIỆU LIÊN QUAN