BORING EDUCATION — NOW LIVEClass 9 and Class 10 full courses are open.Chapter 1 of every subject is free. Unlock the rest with EasyPaisa in minutes.
BORINGEDUCATION

3.3.1–3.3.2

Class 10 Computer ScienceArithmetic and comparison operators

Arithmetic and comparison operators (3.3.1–3.3.2) is a Class 10 Computer Science lesson for the Punjab boards. It walks through the idea in plain steps, then sets a short check, in English, Urdu or Roman Urdu.

Your guide: Miss HiraExplains computers with chai, cricket and your phone.

This lesson is part of the full course

Chapter 1 of every subject is free. Unlock every chapter of this class with the full course.

Unlock full course

Already paid? Sign in with the Google account you paid with.

Arithmetic and comparison operators

An operator acts on operands; an expression combines them to give a value. Arithmetic operators: + − * / (true division), // (floor division), % (remainder) and ** (power).

Take a = 10 and b = 3. Then a + b = 13 and a * b = 30. Also a / b = 3.333…, a // b = 3, a % b = 1 and a ** b = 1000.

Comparison operators > < == != >= <= compare two values and return True or False. With x = 10, y = 5: x > y is True, x == y is False, x != y is True.

/ always gives a float; // drops the fraction; % gives the remainder.

Step 1 / 1

Finish

Notes, short questions and MCQs

Read the full notes: key terms, model answers and MCQs with answers

Arithmetic and comparison operators

An operator acts on operands; an expression combines them to give a value. Arithmetic operators: + − * / (true division), // (floor division), % (remainder) and ** (power).

Take a = 10 and b = 3. Then a + b = 13 and a * b = 30. Also a / b = 3.333…, a // b = 3, a % b = 1 and a ** b = 1000.

Comparison operators > < == != >= <= compare two values and return True or False. With x = 10, y = 5: x > y is True, x == y is False, x != y is True.

/ always gives a float; // drops the fraction; % gives the remainder.

Before you start

What is Arithmetic and comparison operators (3.3.1–3.3.2) in Class 10 Computer Science?
Arithmetic and comparison operators (3.3.1–3.3.2) is one Class 10 Computer Science lesson. It walks through the idea in plain steps, then sets a short check. You can read it in English, Urdu or Roman Urdu.
Which boards use this Class 10 Computer Science lesson?
Students on the Punjab boards use the same textbook: Lahore, Rawalpindi, Gujranwala, Faisalabad, Multan, Sargodha, Bahawalpur, Dera Ghazi Khan, Sahiwal. This page does not speak for a board.
Is the check a past paper?
No. The check is practice we wrote. It is not a past paper and it is not a copy of the book.

Found a mistake? Tell us the lesson and the line at exciting@boringeducation.com.

No ads. Tell us what to fix.