# Operators and Expressions in C Class 11 Computer Science Important Questions

Please refer to Operators and Expressions in C Class 11 Computer Science Important Questions with solutions provided below. These questions and answers have been provided for Class 11 Computer science based on the latest syllabus and examination guidelines issued by CBSE, NCERT, and KVS. Students should learn these problem solutions as it will help them to gain more marks in examinations. We have provided Important Questions for Class 11 Computer Science for all chapters in your book. These Board exam questions have been designed by expert teachers of Standard 11.

## Class 11 Computer Science Important Questions Operators and Expressions in C

Very Short Answer Type Questions:

Question: Which operator causes its operand to be increased by one?
Ans: Increment (++) Operator

Question: Which operator returns the size of its operand, in bytes?
Ans: sizeof( )

Question: Which operators are used to test the relationship between two variables?
Ans: Relational Operators

Question: How many relational operators are present in C Language?
Ans: 6 (Six)

Question: Write all the Arithmetic Operators used in C programming.
Ans: +, -, *, /, %

Q5: Write the name of two ways of type conversion.
Ans: Implicit and Explicit

Short Answer Type Questions:

Question: Define Expression?
Ans: Expression is like a formula in mathematics. An expression can be any valid combination of operators and operands. A valid combination is a combination that confirms the syntax rules of the C language. Expression always returns some value after evaluation. For example: x = y * z;

Question: Define Conditional operator?
Ans: Conditional operator is also known as Ternary Operator. This operator requires three operands to perform its operation. Symbols ? : are used to represent Conditional/Ternary
operator. The syntax for using this operator is as follows:
Exp1? Exp2 : Exp3;
Exp1 should be a conditional expression that always returns a true (1) or false (0) result. If the result of Exp1 is true then Exp2 will perform its function otherwise Exp3 will perform its function.

Question: What is Operand?
Ans: Operands are data items on which operators can work. These operands can be variables or constant values. For example:
a + 5 * 10
In this example, operators + and * are doing their work on variable ‘a’, constant values 5 and 10. Here, ‘a’, 5 and 10 are the operands.

Question: What is an operator? Write the name of different types of operators?
Ans: Operators are the symbols that are used to perform specific operations on data. For example: We use + symbol to perform addition operation, * symbol is used to multiply, > symbol is used to compare etc. In these examples, +, *, > symbols (operators) are used that represents various types of operations. All operators return a value after performing their operation. Operators can be divided into the following three types:
• Unary Operators
• Binary Operators
• Ternary Operators

Question: Write about increment and decrement operators?
Ans: The increment and decrement operators are the unary operators. The ++ sign is used for the increment operator and the — sign is used for the decrement operator. The increment operator (++) increases the value of its operand by one while the decrement operator (–) decreases the value of its operand by one. The operand used with these operators must be a variable. They cannot be applied directly to a fixed value.
for example:
int x = 10;
++ x; It will increase the value of x to 11.
–x; It will decrease the value of x (10) to 9.

Question: What is Unary operator?
Ans: Operators that require only one operand to perform their operations are called Unary Operators. For example: ++, –, ! and ~ operators etc. The following example uses increment (++) Unary Operator:
int x = 10;
++ x;
Here, ++ increment operator is a unary operator that performs its operation at only single operand x. This operator will increase the value of x by one unit and make its value 11.

Question: What is Type Conversion?
Ans: In C language, the value of an expression can be changed to a specific type of data type as required. When one type of value is converted to another type of value, it is called Type Conversion. In C language, this conversion can be done in two ways:
1. Implicit Conversion
2. Explicit Conversion

Long Answer Type Questions:

Question: What are Relational operators? Write a program for Relational operator?
Ans: Relational operators are also called Comparison Operators. These operators are used to compare values. After comparing the values, these operators return either true (1) or false (0) value. There are 6 relational operators in C language: == (Equals to), != (Not Equal to), > (Greater than), < (Less than), >= (Greater than or equal to) and <= (Less than or equal to). All these are Binary operators. Following Program shows the use of relational operators in C:

Question: Explain the Arithmetic Operators? Write any program using Arithmetic Operators?
Ans: Arithmetic operators are used to perform arithmetic operations, such as: addition, subtraction, multiplication, division, etc. There are 5 arithmetic operators in C language: + (addition), – (subtraction), * (multiplication), / (division), and % (modules). Following program shows the use of arithmetic operators in C language:

Question: Explain Logical operators? Write any program of Logical operator?
Ans: Logical operators are also called Boolean Operators. These operators are used when we have to test more than one test condition at a time. There are 3 logical operators in C language: && (Logical AND), || (Logical OR) and ! (Logical NOT). ‘Logical AND’ and ‘Logical OR’ are the binary operators while ‘Logical NOT’ is a unary operator. These operators also return either true (1) or false (0) result after performing their operations. Following program shows the use of logical operators in C Language: