Questions where students often pick the tempting wrong answer — make sure you know the right one:
What data type is the value 7.0?✗ Integer - 7.0 is a whole number so it must be an integer.✓ Real (float) - the decimal point makes it a real number in most languages, even though its fractional part happens to be zero.
Which item does a stack remove first?✗ The first item that was added, because items leave in arrival order.✓ The most recently added item - stacks are LIFO, with both push and pop operating at the top.
A record differs from an array because a record:✗ Must contain elements all of the same type✓ Can group fields of different data types under one identifier
What does in-order traversal of a binary search tree produce?✗ Nodes in the order they were inserted.✓ Nodes in ascending sorted order.
Practise Data Structures — free games
Test yourself with these quick revision games for this topic: