EmSAT Computer Science Flashcards
6 cards from real EMSAT practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.
Read the first 6 EmSAT Computer Science flashcards as text
In Python, what is the output of the following code? x = [10, 20, 30, 40, 50] print(x[-2])
Answer: 40
Negative indices in Python count from the end of the list. Index -1 is the last element (50), so index -2 is the second-to-last element, which is 40.
Which data structure follows the Last-In, First-Out (LIFO) principle?
Answer: Stack
A stack operates on the LIFO principle — the last element pushed onto the stack is the first one to be popped off. A queue uses FIFO (First-In, First-Out) instead.
A UAE university's IT department assigns the network address 192.168.10.0/24 to a campus lab. How many usable host IP addresses are available on this subnet?
Answer: 254
A /24 subnet contains 2^8 = 256 addresses. Two are reserved: one for the network address (192.168.10.0) and one for the broadcast address (192.168.10.255). That leaves 256 − 2 = 254 usable host addresses.
In a relational database, which constraint ensures that a column's value uniquely identifies each row and cannot be NULL?
Answer: PRIMARY KEY
A PRIMARY KEY combines two guarantees: uniqueness (no two rows can share the same value) and NOT NULL (the value must always be present). A UNIQUE constraint allows NULLs; a FOREIGN KEY references another table's key; CHECK validates a condition.
Which layer of the OSI model is responsible for end-to-end data delivery, error detection, and flow control between two hosts?
Answer: Transport Layer (Layer 4)
The Transport Layer (Layer 4) handles end-to-end communication using protocols such as TCP (reliable, connection-oriented) and UDP (faster, connectionless). TCP provides error recovery and flow control. The Network Layer routes packets between networks; the Data Link Layer handles node-to-node delivery within the same network.
A student receives an email appearing to be from the UAE Federal Authority for Identity, Citizenship, Customs & Ports Security, asking them to click a link and re-enter their Emirates ID number. This is an example of which type of cyberattack?
Answer: Phishing
Phishing is a social engineering attack in which an attacker impersonates a trusted organisation (here, a UAE government authority) to trick the victim into revealing sensitive personal information. Brute force attacks guess passwords; SQL injection targets databases; DoS floods a service to make it unavailable.
How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy
Sources & references
Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy
- emsat.moe.gov.ae — Test delivery, eligibility, time limit, retake fee, retake policy, score release, exam format, exam information · verified Oct 2026
- mohesr.gov.ae — Eligibility · verified Oct 2026