exam questions

Exam 1z0-149 All Questions

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

Exam 1z0-149 topic 1 question 37 discussion

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

Examine this anonymous block of code:

Which two statements are true about the results of executing it? (Choose two.)

  • A. It will set all salaries to 0 if it executes successfully.
  • B. It will always return a compile time error because it lacks an EXCEPTION section.
  • C. It might return a run time error depending on who invokes it.
  • D. It will always automatically initialize v_raise.
  • E. It will set all salaries to NULL if it executes successfully.
  • F. It will always return a run time error because v_raise is not initialized.
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
826cb95
1 month, 4 weeks ago
Selected Answer: DF
D is true. However, I change my mind. It is F not D as multiple sources and Oracle doc. says when a NULL value is used in arithmetic operation it will cause error in run-time.
upvoted 1 times
...
826cb95
1 month, 4 weeks ago
Selected Answer: DE
D is correct as for variables like NUMBER, DATE,VARCHAR2 if they are not initialized during declaration - they will be initialized to NULL during runtime. & E is correct as when an arithmetic operation is performed with an NULL variable the outcome will be NULL as well per Oracle.
upvoted 1 times
...
mattiamarraffa
6 months, 3 weeks ago
Selected Answer: DE
D and E are correct
upvoted 1 times
...
egznrd
7 months, 2 weeks ago
I think C and E are correct
upvoted 2 times
AlCoholic69
4 months, 2 weeks ago
C is a trap because yes any sql might fail if invoking user doesn't have privilege. But D is correct because all variables are inistialized to NULL. E is correct because anything + null is null
upvoted 2 times
...
...
jm9999
9 months ago
Is setting v_raise to null equivalent to initializing v_raise?
upvoted 4 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