...

/

Quiz: Solidity Smart Contract Structure and Syntax

Quiz: Solidity Smart Contract Structure and Syntax

Quiz yourself on Solidity smart contract structure and syntax

We'll cover the following...

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


1 / 5