Facebook   Instagram   YouTube   Email

HKDSE ICT (Compulsory) Online Practice

(Do not type any space in your answers.)
(The data in the questions are randomly generated.)


Question 1 (Modified from 2012 ICT Paper 1A Q2)

What are the 8-bit one's complement and 8-bit two's complement of the binary number 101102 ?

One's complement: 2 Correct!

Two's complement: 2 Correct!


Question 1 (Modified from 2016 ICT Paper 1A Q8)

11111111 is an 8-bit number using two's complement representation. What is its decimal value?

Answer: Correct!


Question 1 (Modified from 2018 ICT Paper 1A Q9)

What is the 8-bit two's complement representation of the decimal value -8?

Answer: Correct!


Question 1

Consider a(an) 8-bit number using two's complement representation.

The greatest binary value: Correct!

The greatest decimal value: Correct!

The least binary value: Correct!

The least decimal value: Correct!


Question 1 (Modified from 2013 ICT Paper 1A Q6)

A combination lock consists of 5 separate switches. Each switch can be set either the 'ON' or 'OFF" state. The lock can only be unlocked when all 5 switches are set to the correct switch states. How many different combinations of switch states does this lock have?

Answer: Correct!


Question 1 (Modified from 2014 ICT Paper 1A Q4)

In a computer system, 10 bits are reserved for user identity codes and 54 bits are reserved for alias names. What is the maximum number of user accounts in the system?

Answer: Correct!


Question 1 (Modified from 2015 ICT Paper 1A Q5)

10000 runners participate in a marathon competition. Each runner has a unique identity code stored in a RFID (radio-frequency identification) tag on one of his or her shoes. What is the minimum storage size (in bits) required in each tag?

Answer: Correct!


Question 1 (Modified from 2016 ICT Paper 1A Q2)

In a device, 8 bits and 16 bits are used to store a character and an integer respectively. How many bytes are required to store the string 'HKDSE5'?

Answer: Correct!


Question 1 (Modified from 2017 ICT Paper 1A Q9)

A black-and-white display board uses 8×8 pixels to illustrate a pattern. The upper left 4 pixels must be black at any time. If the display board can illustrate 2N different patterns, find the value of N.

Answer: Correct!


Question 1 (Modified from 2018 ICT Paper 1A Q7)

A company designs a mobile application to process staff records. In each record, 10 bits are used to store staff numbers and 12 bytes are used to store Chinese names. If the mobile application can support 2N staff records, find the value of N.

Answer: Correct!


Question 1 (Modified from 2018 ICT Paper 1A Q11)

A text file contains a character string '*IT*'. Peter uses a program to view the ASCII codes of the character string in the hexadecimal number system, as shown below:

2A 49 54 2A

How many bits are required to store the character string?

Answer: Correct!