Friday, 18 August 2017

30 Java Coding Questions To Assess Programming Skills part 2 ~ foundjava

Question-16. Which Of The Following Is A Result Of The Java Code Given Below?

A. 0
B. 1
C. 2
D. 3
Check correct option.

Question-17. What Would The Following Java Coding Snippet Display On Execution?

A. 1 2 3
B. 123
C. 234
D. Compilation Error
Check correct option.

Question-18. What Would The Below Java Coding Snippet Print If Input Given Is ?

A. abcqfgh
B. abc
C. abcq
D. abcqfghq
Check correct option.

Question-19. What Would The Following Java Coding Snippet Yield On Execution?

A. true false
B. false true
C. true true
D. false false
Check correct option.

Question-20. What Does The Following Java Coding Snippet Print As Its Output?

A. Cluster
B. Node1
C. Node2
D. Unexpected
Check correct option.

Question-21. Which Of The Following Is The Result Of The Below Program?

A. cplusplus
B. plus plus
C. cplus plus
D. c plus plus
Check correct option.

Question-22. Which Of The Following Is The Outcome Of The Below Program? Assume The Given Input Is <Abc’def/’Egh>.

A. abc’
B. abcdef/’
C. abc’def/’egh
D. abcqfghq
Check correct option.

Question-23. Which Of The Following Is The Result Of The Below Java Coding Snippet?

A. MVC true
B. MVC false
C. \MVC false
D. \MVC true
Check correct option.

No comments:

Post a Comment