exam questions

Exam 1z0-808 All Questions

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

Exam 1z0-808 topic 1 question 55 discussion

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

Given the code fragment:

Which three lines fail to compile? (Choose three.)

  • A. Line 7
  • B. Line 8
  • C. Line 9
  • D. Line 10
  • E. Line 11
  • F. Line 12
Show Suggested Answer Hide Answer
Suggested Answer: BCE 🗳️

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
MPignaProTech
3 months ago
Selected Answer: BCE
Correct answer is BCE
upvoted 1 times
...
Terry8420
1 year, 4 months ago
Answer is BCE
upvoted 1 times
...
somrita90
1 year, 4 months ago
Line 8,9 & 11. BCE
upvoted 1 times
...
Omar_Deeb
1 year, 5 months ago
Selected Answer: BCE
Sure this is the correct answers
upvoted 1 times
...
dsms
1 year, 5 months ago
Selected Answer: BCE
BCE is correct.
upvoted 1 times
...
Vicky_65
1 year, 9 months ago
Selected Answer: BCE
BCE is correct.Because those lines will not compile due to invalid type assignment
upvoted 1 times
...
spongecodes
1 year, 10 months ago
Answer should be BCE i.e lines 8,9,11 as higher data type cannot be cast to lower data type
upvoted 1 times
...
odzio33
1 year, 12 months ago
Selected Answer: BCE
int ivar = 100; float fvar = 100.00f; double dvar = 123; fvar = ivar; // ivar = fvar; // fvar = dvar; dvar = fvar; // ivar = dvar; dvar = ivar;
upvoted 1 times
...
RAADEL3IMLAK
2 years ago
int ivar = 100; float fvar = 100.00f; double dvar = 123; is tested: fvar = ivar; ok ivar = fvar; no fvar = dvar; no dvar = fvar; ok ivar = dvar; no dvar = ivar; ok
upvoted 1 times
...
haisaco
2 years ago
Selected Answer: BCE
Correct is BCE:
upvoted 2 times
...
akbiyik
2 years, 1 month ago
Correct is BCE:
upvoted 2 times
...
carloswork
2 years, 2 months ago
Selected Answer: BCE
Answer is BCE. Like this: int i = 1; float f = 2.0f; double d = 3.0; i=f; f=d; i=d;
upvoted 1 times
...
UAK94
2 years, 3 months ago
Correct is BCE.
upvoted 2 times
...
kkaayyyy
2 years, 3 months ago
We can't convert float to int && Double to float && Double to int. Basically we can't convert Bigger datatypes to smaller ones without some explicit type casting. So Answer is 8, 9, 11 i.e. BCE
upvoted 1 times
...
iSnover
2 years, 3 months ago
Selected Answer: BCE
Correct is BCE: A - Float can be a int; D - Double can be a Float; F - Double can be a int.
upvoted 2 times
...
Joker74
2 years, 4 months ago
Selected Answer: BCE
We can't convert larger data type into smaller data type without using explicit type casting. Eg: float f=100.1f; int i=f; //we can't do this int x=(int) f; //explicit type casting we can do this
upvoted 3 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