CBSA Exam QuestionsBrowse all questions from this exam

CBSA Exam - Question 38


A Smart Contract is most like which classical programming object?

Show Answer
Correct Answer: D

A Smart Contract is most like a function in classical programming. It is a collection of code that performs a specific task, executed when certain conditions are met. While it can contain variables and can be part of a larger structure like a class, its primary purpose aligns with that of a function, which executes code based on input and governs behavior directly within the blockchain environment.

Discussion

2 comments
Sign in to comment
WisevolkOption: A
Jul 23, 2021

Answer should be A a class a SC contain a constructor, variables and functions

ichnosOption: D
Oct 26, 2021

D is correct The US National Institute of Standards and Technology describes a "smart contract" as a "collection of code and data (sometimes referred to as functions and state) that is deployed using cryptographically signed transactions on the blockchain network".