GCE Advanced Level Practice Questions
GCE Advanced Level Practice Questions
In the motor vehicle department system, after a candidate passes the learner's examination, they are issued a learner's license with a DL_Number that expires in six months. Before expiration, the holder must pass another examination to obtain a driver's license, which changes the license type to 'driver' .
A computer might not need to query a remote DNS server if the requested domain name is already in the local DNS cache from a previous query or if the operating system has local host file entries that resolve the domain name to the necessary IP address .
To determine if sufficient coins have been inserted, a Boolean expression can be structured based on the machine's coin slots. Define variables for each slot: A for five rupee coins, B for one rupee coins, C for two rupee coins. If each coin input is 1 when a coin is inserted, the logic function Z should be true (Z=1) whenever the total inserted equals five rupees. Using Boolean algebra, Z = A or (B and C) provides the initial expression. If the price changes to six rupees, the expression is adjusted to Z = (A and B) or (C and C) or (A and C).
Two functional requirements include: (1) The system must authenticate users via smart cards to determine if the card is valid for the ride. (2) It must calculate and deduct fares automatically based on entered destinations .
A context diagram for 'Star Video Rentals' under SSADM standards includes external entities like customers and payment processors. Key data flows involve membership registration, video loans, payment transactions, and reminders for overdue videos. The customer provides membership info and payments, while the system confirms membership and charges overdue fees via credit cards .
Pseudo code: Open 'myfriends.txt'; read names; sort names alphabetically; write to 'sorted_friends.txt'. Python code: `with open('myfriends.txt', 'r') as f: names = f.readlines(); names.sort(); with open('sorted_friends.txt', 'w') as f: f.writelines(names)` .
Assumptions may include each person having a unique ID or DL_Number and that there are time constraints associated with retaking the learner's exam. It's also assumed that the system must track dates of issuance and expiration for monitoring license status .
Multiple HTTP GET requests are needed because a web page consists of various resources such as HTML documents, CSS files, JavaScript scripts, images, and multimedia. Each resource typically requires a separate request from the browser to assemble the complete webpage .
The client port number serves as a unique identifier for a connection from a client's machine, allowing multiple applications to coexist on one device and maintaining separate sessions for different connections. When a browser sends HTTP GET requests to server port 80, the client port differentiates request origins within the TCP/IP stack .
Suggestions for improving the system could include implementing real-time tracking for more accurate timings and robust security features to protect user data. Real-time tracking enhances user experience by minimizing wait times, while improved security prevents unauthorized card usage and safeguards user information .