Search test library by skills or roles
⌘ K

Adaface Sample Solidity Questions

Here are some sample Solidity questions from our premium questions library (10273 non-googleable questions).

Skills

🧐 Question

Medium

Fallback functions
Solve
Review the following Solidity code:
 image
We want to add a fallback function to the contract. Pick the correct fallback function and correct statements:
 image
E: Fallback function is executed if contract receives plain Ether without any data
            F: Fallback function is executed if caller calls a function that is not available
            G: If multiple unnamed functions are defined for a contract, the cheapest function is used as fallback function

Easy

Private and Internal
Solve
Review the following Solidity code:
 image
Pick the correct statements:
            
            A: private increment function defined in contract_e is accessible in derived contract d_c but not accessible outside the derived contracts.
            B: private increment function defined in contract_e is accessible only inside contract_e and not accessible to derived contracts as well.
            C: internal variable str defined in contract_e is accessible in derived contract d_b but not outside the derived contracts.
            D: internal variable str defined in contract_e is accessible only inside contract_e and not accessible to derived contracts as well.
🧐 Question🔧 Skill

Medium

Fallback functions
3 mins
Solidity
Solve

Easy

Private and Internal
2 mins
Solidity
Solve
🧐 Question🔧 Skill💪 Difficulty⌛ Time
Fallback functions
Solidity
Medium3 mins
Solve
Private and Internal
Solidity
Easy2 mins
Solve

Adaface questions are trusted by enterprises globally

Amazon Morgan Stanley Vodafone United Nations HCL PayPal Bosch WeWork Optimum Solutions Deloitte Microsoft NCS Doubtnut Sokrati J&T Express Capegemini

We evaluated several of their competitors and found Adaface to be the most compelling. Great default library of questions that are designed to test for fit rather than memorization of algorithms.


Swayam Narain, CTO, Affable

hashtag image heart icon Swayam
Join 1200+ companies in 75+ countries.
Try the most candidate friendly skills assessment tool today.
Ready to streamline your recruitment efforts with Adaface?
Ready to streamline your recruitment efforts with Adaface?
Chat with us
40 min tests.
No trick questions.
Accurate shortlisting.
Ada
Ada
● Online
Previous
Score: NA
Next
✖️