Question: 1. In programming languages, arithmetic expressions do not consist of_________ (A) Operators (B) Operands (C) Parentheses (D) Function definitions 2. An operator can not be

1. In programming languages, arithmetic expressions do not consist of_________ (A) Operators (B) Operands (C) Parentheses (D) Function definitions

2. An operator can not be ________. (A) Unary - has a single operand (B) Binary - has two operands (C) Ternary - has three operands. (D) Quadrapole - has four operands

3. Which statement is correct about binary operator? (A) In Java and C#, unary minus also causes the explicit conversion of short and byte operands to int type. (B) In Perl, binary operators must be infix - appear between their operands (C) Operator precedence rules for the common imperative languages are based on those of mathematics. (D) Unary addition is called the identity operator and usually has no associated operation and however has effect on its operand.

4. The order of evaluation of the two operators has no effect on the value of the expressions EXCEPT_____ (A) -x **y (B) -x/y (C) +x*y (D) -x*y

5. Which statement is wrong about associativity rules of the language? (A) An operator can have either left or right associativity. (B) Associativity in common languages is left to right, except that the exponentiation operator (associates right to left). (C) Telling which operator is evaluated first when an expression contains two adjacent occurrences of operators with the same level of precedence. (D) An operator in a parenthesized part of an expression must be evaluated from right to left.

6. Which statement is correct? (A) In Ruby, in the expression X ** Y ** Z, the left operator is evaluated first. (B) In Ada, the expression X ** Y ** Z is legal. (C) In Java, in the expression a - b + c, the right operator is evaluated first. (D) In APL, in the expression A B + C, the + is evaluated first, followed by X operator.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!