Operators and Expressions Class 11 Computer Science Notes and Questions

Notes Class 11 Revision Notes

Please refer to Operators and Expressions Class 11 Computer Science notes and questions with solutions below. These revision notes and important examination questions have been prepared based on the latest Computer Science books for Class 11. You can go through the questions and solutions below which will help you to get better marks in your examinations.

Class 11 Computer Science Operators and Expressions Notes and Questions

Fill in the blanks:

Question 1 __ symbol is used for Modulus operator.

Answer

%

Question 2 __ operators are used to combine different conditions.

Answer

Logical

Question 3 int i=5 is called _ assignment.

Answer

declaration

Question 4 i=5 is called __ addignment.

Answer

general

Question 5 _ operators have no precedence.

Answer

relational

Write True or False

Question 1 The expression ++(a+b) is valid if a=7 and b=5

Answer

False

Question 2 The expression a&&=b is valid if a=7 and b=5

Answer

False

Question 3 The expression –10 is a valid expression.

Answer

False

Question 4 The assignment statement a+b=c; is valid in C language.

Answer

False

Question 5 Underscore can be the first character in the identifier of c language.

Answer

True

Marks Questions

Q:1 Where does the modulus operator be used?
Ans: Modulus operator is an arithmetic operator. It is a binary operator. It requires two operands to perform its
operation. The symbol % is used for this operator. This operator is used when we want the remainder value after
dividing the two integer values. This operator works only for the integer type values. It does not work for the float or
double type values. Example of modulus operator is 6%4=2.

Q:2 Write the difference between Relational and Logical Operators.
Ans: Relational and Logical Operator’s are used for testing conditions in control statements. These operators return
true or false value after testing conditions. The common differences between them are given below:

Class 11 Computer Operators and Expressions Notes and Questions

Q:3 What are Unary Operators?
Ans: These operators are those which reqire one operand to perform their operations. For example: Increment (++)
and decrement (–) are the unary operators. Increment operator increase unit value in its operand, while decrement
operator decrease unit value in its operand. For example:
if int a=5;
than, a++; it will increase the value of variable a from 5 to 6
a–; it will decrease the value of variable a from 5 to 4

Q:4 Write an example of increment and decrement operator.
Ans: Increment (++) and decrement (–) are the unary operators. Increment operator increase unit value in its
operand, while decrement operator decrease unit value in its operand. For example:
if int a=5;
than, a++; it will increase the value of variable a from 5 to 6
a–; it will decrease the value of variable a from 5 to 4

Q:5 What is Expression?
OR
What is the use of expression in c language?

Ans: In C Language, expression is like a formula. An expression is a combination of operators and operands.
Operators return result after performing operation on their operands. This result can be used in our program.
Consider the following example:
a=4+5;
in this expression, a,4,5 are the operands while = and + are the operators. Here, + operator returns 9 after adding
values 4 and 5. This result will be stored in a using the = operator.
Q:6 Write the different types of assignment operators.
Ans: Assignment operator is called set equals to operator. It’s symbols is =. It is a binary operator that requires two
operands to perform its operation. This operator is used to store the value in a variable or constant. Consider the
following example:
a=5; In this example, value 5 is stored in variable a.
There are many types of shorthand assignment operators. Following table shows these operators with example:

Class 11 Computer Operators and Expressions Notes and Questions

Q:7 What are Operands?
Ans: Operands are those values or variables on which operators perform their operations. Combination of operatos
and operands is called Expression. Consider the following example of expression:
a + 5
In this example, variable a and value 5 are operands while + operator will be performed on these opearands.

Other Important -Questions

Q:1 What are Operators? Explain different types of operators.
Ans: Operators are the symbols used to perform specific operations on their operands. According to the no of
operands used with the operator, they can be classified into 3 categories:
Unary Operators: These are those operators which require one operand to perform their operation. For
example: ++ (increment), –(decrement), ! (not) operators etc.
Binary Operators: These are those operators which require two operands to perform their operation. For
example: a+b, a*b, a>b, a<b etc. Ternary Operator: There is only one ternary operator in C Language. This operator requires three operands to perform its operation. For example:
operand1 ? operand2 : operand3

Q:2 What are Arithmetic Operators?
Ans: These operators are used to perform arithmetic calculations. There are 5 arithmetic operators in C language. All
these operators are binary operators. Each operator require two operands to perform their operation. Following
table shows the details of arithmetic operators with example:

Class 11 Computer Operators and Expressions Notes and Questions
Operators and Expressions Class 11 Computer Science

We hope the above Operators and Expressions Class 11 Computer Science are useful for you. If you have any questions then post them in the comments section below. Our teachers will provide you an answer. Also refer to MCQ Questions for Class 11 Computer Science