Java ProgrammingPrograming & IT Mcqs 100+ MCQ & Answer Java programming | page-05 |Computer Engineering MCQ And Answer January 27, 2025 DSN MARATHI 41. What is the default encoding for an OutputStreamWriter? A. UTF-8 B. Default encoding of the host platform C. UTF-12 D. None of the above Answer Option : B 42. What are the Type Conversions available in Java language? A. Narrowing Type Conversion B. Widening Type Conversion C. A and B D. None of the above Answer Option : C 43. What is a higher data type in Java language? A. A data type which holds more data than other data types B. A data type whose size is more than other data types C. A data type which can hold more precision digits than other data types D. All the above Answer Option : D 44. What is a Narrowing Type Conversion in Java? A. Conversion of data from lower data type to higher data type B. Conversion data from a higher data type to a lower data type C. Conversion of data from any data type to any data type D. None of the above Answer Option : B 45. What is the result of a Narrowing type conversion? A. Loss of data B. Addition of data C. Corruption of data D. None of the above Answer Option : A 46. What is the result of a Widening Type Conversion in Java? A. Loss of data B. Gain of data C. No change D. None of the above Answer Option : C 47. Type promotion in Java usually refers to ____. A. Narrowing Type Conversion B. Widening Type Conversion C. No Type Conversion D. None of the above Answer Option : B 48. Type Casting in Java usually refers to ____? A. Narrowing Type Conversion B. Widening Type Conversion C. No Type Conversion D. None of the above Answer Option : A 49. Explicit Type Conversion in Java refers to ___? A. Narrowing Type Conversion B. Widening Type Conversion C. No Type Conversion D. None of the above Answer Option : B 50. Which are the compatible Data Types for Type Promotion or Type Casting? A. byte, char, short B. char, int, float C. float, long, double D. All the above Answer Option : D
41. What is the default encoding for an OutputStreamWriter? A. UTF-8 B. Default encoding of the host platform C. UTF-12 D. None of the above Answer Option : B
42. What are the Type Conversions available in Java language? A. Narrowing Type Conversion B. Widening Type Conversion C. A and B D. None of the above Answer Option : C
43. What is a higher data type in Java language? A. A data type which holds more data than other data types B. A data type whose size is more than other data types C. A data type which can hold more precision digits than other data types D. All the above Answer Option : D
44. What is a Narrowing Type Conversion in Java? A. Conversion of data from lower data type to higher data type B. Conversion data from a higher data type to a lower data type C. Conversion of data from any data type to any data type D. None of the above Answer Option : B
45. What is the result of a Narrowing type conversion? A. Loss of data B. Addition of data C. Corruption of data D. None of the above Answer Option : A
46. What is the result of a Widening Type Conversion in Java? A. Loss of data B. Gain of data C. No change D. None of the above Answer Option : C
47. Type promotion in Java usually refers to ____. A. Narrowing Type Conversion B. Widening Type Conversion C. No Type Conversion D. None of the above Answer Option : B
48. Type Casting in Java usually refers to ____? A. Narrowing Type Conversion B. Widening Type Conversion C. No Type Conversion D. None of the above Answer Option : A
49. Explicit Type Conversion in Java refers to ___? A. Narrowing Type Conversion B. Widening Type Conversion C. No Type Conversion D. None of the above Answer Option : B
50. Which are the compatible Data Types for Type Promotion or Type Casting? A. byte, char, short B. char, int, float C. float, long, double D. All the above Answer Option : D