stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Solidity Review Flashcards | StudBud
Explore
/
Solidity Review
Solidity Review
14 terms
·
StudBud Administration
·
23 plays
Imported from external platform
Flashcards
14 cards
F
Practice quiz
P
Host live
L
Questions
14
Answers
1
What is the main purpose of the modifier keyword in Solidity?
To create new data types.
To create a backdoor
To define reusable pieces of code for functions.
To inherit from other contracts.
2
What's a view function?
A function that modifies the state without returning data.
A function that returns data without modifying the state.
A function that modifies the state and returns data.
A function that returns data in a human-readable format.
3
Which keyword is used to prevent a function from modifying the state?
changeable
public
constant
view
4
What is Solidity primarily used for?
Mobile app development
Web development
Smart contract development on the Ethereum blockchain
Machine learning
5
State variables are often declared within the class but outside any method.
False
True
6
What does the special function msg.sender return?
Address of the caller
Address of the contract
Your home address
The null address
7
What does an object being immutable mean?
It is not capable of or susceptible to change.
It defines it's own constructro
It can be changed
It likes Skittles
8
What's Solidity?
A protocol.
A programming language.
An operating system.
A browser plugin.
9
In Solidity, the address type has a transfer() method to send ether.
False
True
10
Local variables can retain their value between different function or method calls.
True
False
11
In the context of cryptography and security, what is a "nonce"?
A number that is intended to be used once and not repeated.
A password storage mechanism that ensures data safety.
A certificate verifying the authenticity of a website.
A complex algorithm used to encrypt data.
12
Require function is used to ensure that certain conditions are met before proceeding with the execution of a function
True
False
13
What is this function doing?
It returns the balance of the contract in wei.
It transfers the contract's balance to the caller.
It deposits ether to the contract's balance.
None of the above.
14
Which data type in Solidity is used to represent the smallest divisible unit of ether?
byte
uint
wei
ether