Prepare for the Blockchain Developer Certification. Master blockchain concepts with flashcards and multiple choice questions. Explanation-based learning for your success!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


Which of the following is NOT a basic type in Solidity?

  1. Address

  2. Array

  3. String

  4. Boolean

The correct answer is: Array

In Solidity, basic types are the fundamental data types used to create more complex structures and are integral to the functionality of smart contracts. The basic types in Solidity include Address, String, and Boolean. Address is used to hold Ethereum addresses and is crucial for transactions; String stores text data, allowing the handling of character sequences; Boolean represents a true or false value and is commonly used for logical operations. Arrays, despite being a foundational data structure in many programming languages, are considered a complex data type in Solidity because they can hold a collection of values, which makes them more intricate than the basic types. They are built upon the basic types, rather than being one themselves. This distinction highlights that while arrays are essential for organizing and managing collections of data, they are not classified as a basic type within the context of the Solidity language. Hence, it is accurate to say that Arrays fall outside the basic types category.