exam questions

Exam 1z0-149 All Questions

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

Exam 1z0-149 topic 1 question 32 discussion

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

Examine this DECLARE section:

Which two lines are valid? (Choose two.)

  • A. line 5
  • B. line 6
  • C. line 7
  • D. line 4
  • E. line 3
  • F. line 2
Show Suggested Answer Hide Answer
Suggested Answer: AF 🗳️

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
alinaabalasei
Highly Voted 10 months, 3 weeks ago
A and F are correct.
upvoted 8 times
...
jfc1
Highly Voted 9 months ago
Selected Answer: AF
AF is correct B is not correct because it should assigned with a value. This subtype has a not null constraint. E is incorrect
upvoted 5 times
...
826cb95
Most Recent 1 month, 1 week ago
Selected Answer: AE
Don't you know 'SIMPLE INTEGER is not a valid data type in PL/SQL.'? That's why A , E NOT F
upvoted 1 times
...
826cb95
1 month, 2 weeks ago
Selected Answer: EF
he two valid lines are: Line 2: salary$ VARCHAR2 (10) NOT NULL := '9000S'; Line 3: v_num1, v_num2 NUMBER; Here’s why: Line 2 is valid because salary$ is a valid identifier, and the VARCHAR2 data type is correctly declared with a length and a NOT NULL constraint. Line 3 is valid because it correctly declares two variables of the NUMBER data type. The other lines have issues: Line 4: The syntax is incorrect. It should be v_job VARCHAR2(20);. Line 5: avg is a reserved keyword in SQL and cannot be used as an identifier. Line 6: SIMPLE INTEGER is not a valid data type in PL/SQL. Line 7: #sno is not a valid identifier because it contains a special character (#).
upvoted 1 times
...
bca123
1 month, 2 weeks ago
Selected Answer: AB
why line 6th is wrong?
upvoted 1 times
...
nyanyanyao0826
2 months, 4 weeks ago
Selected Answer: CF
A: Incorrect because avg is a reserved word. B: Incorrect because a number must be specified for the data type. C: Correct. D: Incorrect because the variable name comes after the data type, which is invalid. E: Incorrect because two variables cannot be defined on a single line. F: Correct because # is a valid character for variable names.
upvoted 1 times
nyanyanyao0826
2 months, 4 weeks ago
A: Incorrect because avg is a reserved word. B: Incorrect because a number must be specified for the data type. C: Correct because # is a valid character for variable names. D: Incorrect because the variable name comes after the data type, which is invalid. E: Incorrect because two variables cannot be defined on a single line. F: Correct.
upvoted 1 times
...
...
Festo
9 months ago
A and F are correct.
upvoted 3 times
...
ISKV
11 months, 3 weeks ago
B,E is right
upvoted 1 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