Is there any Data loss while upcasting conversion.?

Session 5

Quiz
•
Special Education
•
KG - Professional Development
•
Medium
Karpagavalli Pauldurai
Used 5+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Yes
No
Answer explanation
1. Converting lower data type into the higher one
2. This is safe process. Hence, no chance to lose data.
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the name of parent to child conversion.?
Downcasting
Upcasting
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which operator is used to check the type?
is
as
as?
as!
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What will return while using the safe operator(as?) if the casting is failed.?
1
value of the variable
0
null/nil
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which keyword is used for force casting?
as!
as?
as
is!
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the output of the program:
val integerValue: Int = 1234
val str: String = integerValue as String
println(str)
Throw an Exception
1234
0
null/nil
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which symbol is used to annotate?
?
;
:
!
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Основы языка СИ

Quiz
•
University
10 questions
Язык программирования C#. Уровень 3.

Quiz
•
KG
10 questions
Sink or Float

Quiz
•
11th Grade
16 questions
vvv Test22

Quiz
•
University
10 questions
TLE PO ITO

Quiz
•
Professional Development
12 questions
Training Bedah Script Telkomsat_NP121 Lunar Eclipse Monitoring

Quiz
•
1st - 3rd Grade
20 questions
JavaScript Quiz

Quiz
•
Professional Development
16 questions
C++ programing

Quiz
•
KG
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Special Education
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade