← Full deck and preview

Free WACE Year 11 Computer Science Flashcard Review

Review 20 public cards with spaced repetition. Flip a card, then grade your recall. Cards you miss return today. Your schedule stays in this browser.

Loading your review schedule…

Browse the free cards

Why is the character '7' different from the integer 7?

The character is stored as its ASCII code, 55. The integer 7 is stored as the binary value 7. Converting with int('7') gives the number.

How many bits does one hexadecimal digit represent?

Four bits (a nibble). A byte is always exactly two hex digits, for example 01001101 = 4D.

What does 23 % 4 evaluate to?

3, because 23 = 5 × 4 + 3 and % (MOD) gives the remainder.

What is the order of precedence for NOT, AND and OR?

NOT first, then AND, then OR. Arithmetic and relational operators are evaluated before all three.

Parameter or argument: which is in the function call?

The argument is the value in the call. The parameter is the name in the function definition that receives it.

What happens when a function assigns to a name that is also a global?

Unless the function declares the name global, Python creates a new local variable with that name; the global keeps its old value after the call.

List three characteristics of a one-dimensional array.

One identifier for many elements; each element reached by an index starting at 0; elements normally of one data type and a known length.

What is a stub and why is it used?

A temporary stand-in module that returns a fixed or simple value, so the rest of a modular program can be run and tested before the module is written.

Boundary test data for the condition age >= 18?

17 (below), 18 (at) and 19 (above), each with its expected result.

Name the three types of coding error with one example each.

Syntax: missing colon. Runtime: division by zero. Logic: using > where >= was needed.

What is the purpose of an API?

To let a program request services or data from other software through a documented interface, without knowing its internal code.

What does the Copyright Act 1968 mean for code a student writes?

The code is protected automatically as a literary work; others need permission or a licence to copy it, and reused code must be acknowledged.

Name the four layers of the DoD TCP/IP model from top to bottom.

Application, transport, internet, network.

What is the purpose of the TCP/IP model?

To standardise how data is communicated across interconnected networks in defined layers, so equipment and software from different makers work together.

TCP or UDP for a live video call, and why?

UDP: it is faster with less overhead, and a lost frame is better skipped than resent late.

Name a protocol at each TCP/IP layer.

Application: HTTPS or DNS. Transport: TCP or UDP. Internet: IP or ICMP. Network: Ethernet or Wi-Fi (802.11).

What does a subnet mask tell a host?

Which bits of an address are the network part, so it can decide whether a destination is local or must be sent to the default gateway.

How many usable host addresses are in a /24 subnet?

2⁸ − 2 = 254, because the network and broadcast addresses cannot be assigned.

State three differences between IPv4 and IPv6.

32-bit vs 128-bit; dotted decimal vs colon-separated hex; IPv4 uses broadcast while IPv6 uses multicast and can configure itself automatically.

At which TCP/IP layer does a router work, and what does it read?

The internet layer; it reads the destination IP address to forward each packet.