The Complete Solidity Course - Zero to Advanced for Blockchain and Smart Contracts - Exercise - Write Your First Smart C

The Complete Solidity Course - Zero to Advanced for Blockchain and Smart Contracts - Exercise - Write Your First Smart C

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

This video tutorial guides students through creating their first function in a coding exercise. The task involves setting up a file, creating a function called 'multiply calculator', adding integer parameters, and implementing logic to multiply inputs. The tutorial emphasizes the importance of compiling and testing the function to ensure it works correctly. Students are encouraged to complete the exercise independently before reviewing the solution in the next video.

Read more

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the first step in the function exercise according to the video?

Design a user interface

Create a function in a contract

Write a poem about functions

Create a new programming language

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What should the parameters A and B be set as in the 'multiply calculator' function?

Booleans

Strings

Integers

Floats

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What visibility should be granted to the function for it to be accessible?

Private

Protected

Public

Internal

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'multiply calculator' function?

To add two numbers

To subtract two numbers

To divide two numbers

To multiply two numbers

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the final step after writing the function in the video tutorial?

Share the code on social media

Write a report

Compile and deploy the application

Delete the function