
The Complete Solidity Course - Zero to Advanced for Blockchain and Smart Contracts - Scope and State in Solidity
Interactive Video
•
Information Technology (IT), Architecture, Social Studies
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Read more
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'public' keyword in a smart contract function allow?
It makes the function private.
It allows access to the function from outside the contract only.
It allows access to the function from both inside and outside the contract.
It restricts access to the function.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you change the data output within a function to a specific value?
By using a different data type.
By creating a new function.
By declaring the function as private.
By accessing the variable and setting it to the desired value.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What must be removed from a function if it modifies the state?
The 'view' keyword.
The 'public' keyword.
The 'private' keyword.
The 'constant' keyword.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens to the state variable when function X is executed?
It is set to 10.
It is set to 17.
It remains unchanged.
It is reset to its default value.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the initial value of the state variable before any function is executed?
15
5
20
10
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?