100 Multiple Choice Questions on Java Programming - Set 5

Home » Java » MCQs
Showing 81 - 100 of 100


Question: 81

(A) hi
(B) nothing is printed
(C) error: sum() has private access
(D) Exception


Level: Beginner
Category of MCQ: classesAndobjects in Java

Question: 82

(A) Sun
(B) SunMoon
(C) Nothing is printed
(D) Compilation Error


Level: Practitioner
Category of MCQ: if-else in Java

Question: 83

(A) Compilation Error
(B) exception: unreachable code
(C) Sun
(D) SunMoon


Level: Beginner
Category of MCQ: if-else in Java

Question: 84

(A) Compilation Error
(B) Sun
(C) Nothing is printed
(D) error: unreachable statement


Level: Practitioner
Category of MCQ: if-else in Java

Question: 85

(A) Sun
(B) Nothing is printed
(C) Compilation Error
(D) Exception


Level: Practitioner
Category of MCQ: if-else in Java

Question: 86

(A) Sun
(B) Moon
(C) SunMoon
(D) Compilation Error


Level: Practitioner
Category of MCQ: if-else in Java

Question: 87

(A) Moon
(B) Sun
(C) SunMoon
(D) error: int can not be converted to boolean


Level: Practitioner
Category of MCQ: if-else in Java

Question: 88

(A) SunMoon
(B) Sun
(C) Moon
(D) Compilation Error


Level: Practitioner
Category of MCQ: if-else in Java

Question: 89

(A) 10.87
(B) 10.870000
(C) 10.8700
(D) 10.00


Level: Expert
Category of MCQ: typecasting in Java

Question: 90

(A) 10.87
(B) 10.00
(C) 10
(D) error:possible loss of precision


Level: Expert
Category of MCQ: typecasting in Java

Question: 91

(A) 10
(B) 10.00
(C) 10.87
(D) NumberFormatException


Level: Expert
Category of MCQ: typecasting in Java

Question: 92

(A) 0
(B) 10
(C) 100
(D) Exception


Level: Practitioner
Category of MCQ: typecasting in Java

Question: 93

(A) 10.0000f
(B) 10.0000
(C) 10.00
(D) 10.0


Level: Expert
Category of MCQ: typecasting in Java

Question: 94

(A) 10.0f
(B) 10.0
(C) 10.00
(D) 10.0000


Level: Practitioner
Category of MCQ: typecasting in Java

Question: 95

(A) 10.0f
(B) 10.0
(C) 10
(D) 10.00


Level: Beginner
Category of MCQ: typecasting in Java

Question: 96

(A) 10.0f
(B) 10.0
(C) 10
(D) error: no suitable method found for toString(float)


Level: Practitioner
Category of MCQ: typecasting in Java

Question: 97

(A) 10.0
(B) 10
(C) error: loss precision
(D) Exception


Level: Expert
Category of MCQ: typecasting in Java

Question: 98

(A) Compilation Error
(B) Exception
(C) 10
(D) 1


Level: Beginner
Category of MCQ: typecasting in Java

Question: 99

(A) 1234.00
(B) 1234.34
(C) 1234
(D) Exception


Level: Expert
Category of MCQ: typecasting in Java

Question: 100

(A) 1234.34
(B) 1234
(C) .1234.00
(D) NumberFormatException


Level: Beginner
Category of MCQ: typecasting in Java

Browse Java Categories

Datatype Variables Operators Decision Making Loops Methods Reference Variables Arrays Classes and Objects Abstract Class Singleton Class Modifiers Inheritance Overriding Polymorphism Abstraction Encapsulation Files and I/O TypeCasting Packages Exceptions Collections Framework Numbers Class Date & Time Regular Expressions Data Structures Interfaces Multithreading Other


MCQs

About Us | Contact Us | Privacy Policy | Career  | Online Training
Youtube   LinkedIn   Facebook   Twitter   Instagram  
Copyright©CppBuzz.com
Like many websites, we use cookies to ensure best browsing experience on our website. While using this website, you acknowledge to have read and accepted our cookie and privacy policy.