Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

How To Make A Database In Historical Studies

Authors: Tiago Luis Gil

1st Edition

3030782409, 978-3030782405

More Books

Students also viewed these Databases questions

Question

DEFINE pay equity and EXPLAIN its importance today.

Answered: 1 week ago

Question

Mention the bases on which consumer market can be segmented.

Answered: 1 week ago

Question

Explain consumer behaviour.

Answered: 1 week ago

Question

Explain the factors influencing consumer behaviour.

Answered: 1 week ago

Question

6. Explain how to train managers to coach employees.

Answered: 1 week ago