Operators in C ++

 

1. The process of converting one predefined type into another is called :

  • Typecasting
  • Type conversion
  •  Type convection
  •  None of these

Answer

Type conversion

2. Which operator is used to string together several expressions?

  •  comma, operator
  •  Arithmetic operator
  •  Relational operator
  • Conditional operator

Answer

comma, operator

3. Which operator is having the right to left associativity in the following?

  • Type cost
  •  Addition and substraction
  •  Function call
  •  Array subscripting

4. Suppose A , B , C are integers variables A = 3 , B = 3 , C = -5 and X , Y , Z are floating point variables where X = 8.8 , y = 3.5 , z = 5.2 .. Determine the value of the expression ( A * C ) % B ?

5. What is the value of the variable a3 after execution of the following code ? String al , a2 , a3 al = ” 45 ” ; a2 = ” 31 ” , a3 = a2 + al ;

  • 76
  • ” 3145 “
  •  ” 4531 “
  • 45

6. Which of the following is an uninitialised Variable ?

  • char ch;
  •  float f1 = 13.1239 ;
  •  Char ch = ‘ a ‘ ;
  • int a = 13 :

7. What is this operator called?

  •  Relational
  •  Casting operator
  •  Conditional
  • None of the mentioned

Answer

Conditional

8. Evaluate the following C # expression where a , b , c are integers and d , j are floating point numbers . The value of a = 5 , b = 3 and d , = 1.5 then the value of j = ( + + b ) * b – a is :

9. The operations being came out on dutus , are

  • Anthmatic
  • Assignment Statement
  • operators
  • Expression

10. How many types are there in increment / its operand decrement operators Ye ) Increment operator ++ adds 1 to its

11. Any valid combination of operators,

  •  Expressions
  • Modifier
  • Structure
  •  Data type

12. The && and 1l operators

  •  combine two boolean values
  • compare two boolean values
  •  combine two numeric values
  •   None of this

Answer

combine two numeric values

13. There are how many relational operators is #include ciostream > ettered by C4 Using name space std ;

14. The explicit conversion of an operand to a specific type is called :

  • Type casting in
  • Type converstion
  • Type convection
  • None of these

15. Unary operator means that :

  • Operator takes two operand
  •  Operator takes no value
  • Operator takes only one operand
  • None of the above

Answer

Operator takes only one operand

16. Which of the following C ++ operator Associativity starts from right side ?

Answer

simple assignment operator  =

17. Pick out the correct statement :

Answer

Increment operator ++ adds 1 to its operand

18.  operator that takes two  operands are called –

Answer

Binary operator

19. The size of operator bas the same precedence as :

Answer

Prefix increment / decrement operator

20. Which from following is not a relational  operator –

Answer

None of these

21. Logical operator AND is Denoted by :

22. Which of the following use arithmetie Cout2 expression ? rerum :

Answer

i + j – k

23. Which operator have highest precedence ?

24. Which symbol is use to denote conditional by Subtract operator Operator ?

25. Which from following is a relational operator ?

26. A relational operator :

Answer

Assign one operand to another

27. How many logical operators provide C ++ to combine existing expression ?

28. Which operator have lowest precedence ?

29. Which operator is having the highest precedence?

30. Pick the correct statement :

Answer

Pre Increment is faster than post increment Computer Science

31. Which concepts does the pre increment use ?

Answer

Call by reference

32. Which operator works only with integer variables?

33. Which arithmetic operators are offered by C ++?

 

Leave a Comment

Your email address will not be published.