Search Header Logo
The Complete Solidity Course - Zero to Advanced for Blockchain and Smart Contracts - Review - Public Private External an

The Complete Solidity Course - Zero to Advanced for Blockchain and Smart Contracts - Review - Public Private External an

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

The video tutorial explains the structure and functionality of two smart contracts, A and B. Contract A includes state variables and functions with different visibility levels, such as public, external, and internal. Contract B inherits from Contract A and demonstrates how function visibility affects data accessibility. The tutorial covers compiling, deploying, and testing the contracts, emphasizing the importance of understanding function visibility for effective smart contract development.

Read more

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the initial data value set in Contract A?

5

20

10

15

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function in Contract A is responsible for setting the data to 25?

Function Z

Function X

Function Y

Function L

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of function L when accessed in Contract B?

10

3

7

25

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when function L is changed from public to private?

It can still be accessed externally.

It becomes inaccessible from outside the contract.

It generates no errors.

It can be accessed by any contract.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If function L is set to external, what is the limitation?

It becomes private.

It can only be accessed by derived contracts.

It cannot be used for internal calls.

It cannot be accessed externally.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?