exam questions

Exam 1z0-082 All Questions

View all questions & answers for the 1z0-082 exam

Exam 1z0-082 topic 1 question 48 discussion

Actual exam question from Oracle's 1z0-082
Question #: 48
Topic #: 1
[All 1z0-082 Questions]

Which two statements are true about the rules of precedence for operators? (Choose two.)

  • A. The concatenation operator | | is always evaluated before addition and subtraction in an expression
  • B. NULLS influence the precedence of operators in an expression
  • C. The + binary operator has the highest precedence in an expression in a SQL statement
  • D. Arithmetic operators with equal precedence are evaluated from left to right within an expression
  • E. Multiple parentheses can be used to override the default precedence of operators in an expression
Show Suggested Answer Hide Answer
Suggested Answer: DE 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
husseinyounes
Highly Voted 3 years, 7 months ago
DE is correct
upvoted 20 times
Ekos
3 years, 1 month ago
i agree
upvoted 1 times
...
...
Trowa
Highly Voted 3 years, 5 months ago
DE are correct. Precedence Precedence is the order in which Oracle evaluates different operators in the same expression. When evaluating an expression containing multiple operators, Oracle evaluates operators with higher precedence before evaluating those with lower precedence. Oracle evaluates operators with equal precedence from left to right within an expression. https://docs.oracle.com/cd/A87860_01/doc/server.817/a85397/operator.htm
upvoted 6 times
...
nautil2
Most Recent 2 months, 3 weeks ago
Selected Answer: DE
A - false; concatenation, addition and subtraction has the same precedence, in that case it is evaluated from left to right within an expression. B - false; precedence does not change, result is NULL except of concatenation C - false; only unary +, unary -, PRIOR, CONNECT_BY_ROOT and COLLATE have the highest precedence D - true; see A E - true; You can use parentheses in an expression to override operator precedence. Oracle evaluates expressions inside parentheses before evaluating those outside. Source: Oracle documentation: Release 19, SQL Language Reference, 4 Operators, About SQL Operators
upvoted 2 times
...
Oracle2020
4 months, 2 weeks ago
DE is correct
upvoted 1 times
...
auwia
6 months, 1 week ago
Selected Answer: DE
The base! :-) part II
upvoted 1 times
auwia
6 months ago
Rules of precedence: 1. arithmetic operators 2. concatenation operator 3. comparison conditions 4. is (NOT) NULL, LIKE (NOT) IN 5. (NOT) Between 6. NOT equal to 7. NOT logical operatror 8. AND logical operatror 9. OR logical operatror
upvoted 2 times
...
...
Kuraudio
1 year, 1 month ago
Selected Answer: DE
DE is correct
upvoted 2 times
...
casfdsaf
1 year, 10 months ago
Selected Answer: DE
de is right
upvoted 1 times
...
ryuah
2 years ago
D,E is correct
upvoted 1 times
...
Guhborges
2 years, 4 months ago
C & E is correct. + has the higher precedence. https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/About-SQL-Operators.html#GUID-FEF44762-F45C-41D9-B380-F6A61AD25338
upvoted 1 times
emburria
1 year, 11 months ago
No, in this case is + binary (not unary operator)
upvoted 1 times
...
Guhborges
1 year, 11 months ago
D & E :)
upvoted 1 times
...
...
SimoneF
3 years ago
D and E are obviously correct BUT, since this was too strange of a mistake to be true, I went and review the precedence rules, finding out something I honestly forgot or ignored altogether: "+" IS, actually, the operator with the highest precedence, together with "-", yet only when they're used a unary operators "identity" and "negation". For example, in a simple operation +X*Y, the "+" is the first operator evaluated. As a binary operator it still comes, obviously, after multiplication and division, I've just been thinking that in a similar question where they could state "unary", I could have easily been tricked overlooking that simple detail. https://docs.oracle.com/cd/A87860_01/doc/server.817/a85397/operator.htm#997667
upvoted 4 times
Joejoel
2 years, 1 month ago
please check on the same link. Precedence Example In the following expression, multiplication has a higher precedence than addition, so Oracle first multiplies 2 by 3 and then adds the result to 1. 1+2*3
upvoted 1 times
Datajimm
1 year, 10 months ago
SimoneF is talking about the + unary operator, and of course he is right about it. You on the other hand talking about the + binary operator.
upvoted 1 times
...
...
...
avanand
3 years, 4 months ago
DE is obviously right answers
upvoted 3 times
...
you1234
3 years, 6 months ago
D & E is correct answer
upvoted 6 times
...
danito
3 years, 7 months ago
D E i think
upvoted 5 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago