Quiz: Solidity Smart Contract Structure and Syntax
Quiz yourself on Solidity smart contract structure and syntax
Let’s practice what we’ve learned so far.
1
In the following contract, what would be the initial value of the z
variable?
pragma solidity >=0.5.0 <0.9.0;
contract exampleBooleans {
bool x;
bool y = true;
bool public z = !x || !y;
}
A)
True
B)
False
C)
Naan
Question 1 of 50 attempted
Get hands-on with 1400+ tech skills courses.