Recall & Review
beginner
What is a uint in blockchain programming?
A uint is an unsigned integer data type that stores only non-negative whole numbers (0 and above). It cannot hold negative values.
Click to reveal answer
beginner
How does an int differ from a uint?
An int is a signed integer that can hold both negative and positive whole numbers, while a uint holds only non-negative numbers.
Click to reveal answer
beginner
What values can a bool data type hold?
A bool can hold only two values:
true or false. It is used to represent yes/no or on/off states.Click to reveal answer
beginner
What is the purpose of the address data type in blockchain?
The <strong>address</strong> type stores a blockchain account's unique identifier. It is used to hold wallet or contract addresses.Click to reveal answer
beginner
What kind of data does the string type store?
The string type stores text data, like words or sentences, made up of characters.
Click to reveal answer
Which data type can store negative numbers?
✗ Incorrect
Only int can store negative numbers. uint stores only zero or positive numbers.
What values can a bool hold?
✗ Incorrect
bool holds only
true or false.Which data type is used to store a wallet or contract identifier?
✗ Incorrect
address stores blockchain account addresses.
What type of data does string hold?
✗ Incorrect
string holds text made of characters.
Which data type cannot hold negative values?
✗ Incorrect
uint is unsigned and cannot hold negative numbers.
Explain the difference between int and uint data types.
Think about whether the number can be below zero.
You got /3 concepts.
Describe the purpose of the address data type in blockchain.
It holds where money or contracts live on the blockchain.
You got /3 concepts.