The Complete Solidity Course - Zero to Advanced for Blockchain and Smart Contracts - Exercise - Arithmetic Operator

The Complete Solidity Course - Zero to Advanced for Blockchain and Smart Contracts - Exercise - Arithmetic Operator

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial covers basic arithmetic operators such as plus, minus, times, divide, and modulo. It introduces increment (++) and decrement (--) operators, explaining their function of adding or subtracting one. The tutorial emphasizes the usefulness of these operators in loops. It concludes with exercises to practice arithmetic operations, preparing viewers for the next video where solutions will be discussed.

Read more

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following operators is used to find the remainder of a division?

Modulo

Subtraction

Addition

Division

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of applying the increment operator (++) to a variable with an initial value of 5?

4

5

6

7

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If a variable 'a' is decremented using the -- operator and its initial value is 5, what will be the new value of 'a'?

3

4

5

6

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the expression 'a + b - b + a', if a = 2 and b = 12, what is the result?

0

1

3

2

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the expression 'B modulus A' when B = 12 and A = 2?

1

3

0

2