ExamGecko
Question list
Search
Search

Related questions











Question 438 - H14-231_V1.0 discussion

Report
Export

Knowing the variable int a=123, which of the following codes can successfully print the value of variable a in the console?

A.
HiLog.info(LABEL,String.format('a =%d',a));
Answers
A.
HiLog.info(LABEL,String.format('a =%d',a));
B.
HiLog.info(LABEL,'a=%(public)d',a);
Answers
B.
HiLog.info(LABEL,'a=%(public)d',a);
C.
HiLog.info(LABEL,'a =%d',a);
Answers
C.
HiLog.info(LABEL,'a =%d',a);
D.
HiLog.info(LABEL,'a =%{private}d',a);
Answers
D.
HiLog.info(LABEL,'a =%{private}d',a);
Suggested answer: A, B, D
asked 18/09/2024
Matthew Cole
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first