The Complete Solidity Course - Zero to Advanced for Blockchain and Smart Contracts - Arithmetic Operators in Solidity

The Complete Solidity Course - Zero to Advanced for Blockchain and Smart Contracts - Arithmetic Operators in Solidity

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial guides viewers through creating a Solidity contract named 'operators'. It covers defining a calculator function to perform basic arithmetic operations like addition, subtraction, multiplication, and division. The tutorial explains specifying the Solidity version, compiling, and deploying the contract. It highlights the limitations of Solidity in handling fractions during division and demonstrates how to store and return results. The video aims to provide a foundational understanding of writing and deploying smart contracts using Solidity.

Read more

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the name of the contract created in the tutorial?

Calculator

Functions

Operators

Solidity

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of adding the variables 'a' and 'b' in the calculator function?

15

13

12

10

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to specify the visibility of the calculator function?

external

internal

private

public

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which pragma version is specified for the Solidity contract?

0.8.0 to 1.0.0

0.7.0 to 0.9.0

0.6.0 to 0.7.0

0.5.0 to 0.6.0

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'view' keyword in the calculator function?

To prevent the function from modifying state variables

To allow the function to modify state variables

To make the function external

To make the function private

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when you divide 5 by 7 in Solidity?

It returns 1

It returns 0

It returns 0.71

It returns 0.6

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of multiplying 5 and 7 in the calculator function?

40

30

35

45