WorksheetsProgramming & Interface Week 1B
Total questions: 15
Worksheet time: 3mins
Name
Class
Date
1.
What is the smallest unit of data in a computer system?
a)
Bit
b)
Byte
c)
Kilobyte
d)
Megabyte
e)
Gigabyte
2.
How many bits are there in a byte
a)
4
b)
8
c)
16
d)
32
e)
256
3.
Which number system uses only two digits (0 and 1)?
a)
Binary
b)
Decimal
c)
Headecimal
d)
Octal
4.
What is the decimal equivalent of the binary number 1011?
a)
8
b)
10
c)
11
d)
13
5.
What is the hexadecimal equivalent of the decimal number 25?
a)
10
b)
15
c)
19
d)
1A
e)
25
6.
What is the purpose of memory in a microcontroller?
a)
To perform calculations
b)
To control the flow of electricity
c)
To store data and instructions
d)
To display information
7.
Which type of memory is volatile (loses data when power is off)?
a)
RAM
b)
ROM
c)
Flash
d)
EEPROM
e)
EPROM
8.
What is the role of ROM (Read-Only Memory) in a microcontroller?
a)
To connect external devices
b)
To store temporary data, such as variables
c)
To perform arithmetic operations
d)
To store the program code permanently
9.
What is the advantage of flash memory over ROM?
a)
It is faster
b)
It is cheaper
c)
It can be reprogrammed
d)
It consumes less power
10.
What is the purpose of an address in memory?
a)
To store data
b)
To identify the location of a specific location in memory
c)
To perform calculations
d)
To control the flow of the program
11.
What is a memory map?
a)
A physcial map of the memory chip
b)
A diagram showing the organisation of memory
c)
A list of all the data stored in memory
d)
A program for accessing memory
12.
What is the difference between Little-Endian and Big-Endian memory organization?
a)
The order in which bytes are stored in memory
b)
The size of the memory
c)
The speed of memory
d)
The type of memory
13.
What is a data structure?
a)
A physical component of memory
b)
A way of organising data in memory
c)
A type of memory
d)
A programming language
14.
What is an array in programming?
a)
A single variables
b)
A collection of variables of the same data type
c)
A function for storing data
d)
A type of memory
15.
What is a pointer in programming?
a)
A variables that stores a value
b)
A variable that stores a memory address
c)
A function for accessing memory
d)
A type of memory
100 %
