All India Exams
Home AptitudeBankEngineeringEnglishGKInterviewOnline TestPlacement PapersReasoning
  • Home
  • Aptitude
  • Bank
  • Engineering
  • English
  • GK
  • Interview
  • Online Test
  • Placement Papers
  • Reasoning

Data Types Questions And Answers

Here you can find Data Types Questions and Answers.

Why Data Types Questions and Answers Required?

In this Data Types Questions and Answers section you can learn and practice Data Types Questions and Answers to improve your skills in order to face technical inerview conducted by organisations. By Practicing these interview questions, you can easily crack any Exams interview.

Where can I get Data Types Questions and Answers?

AllIndiaExams provides you lots Data Types Questions and Answers with proper explanation. Fully solved examples with detailed answer description. All students, freshers can download Data Types Questions and Answers as PDF files and eBooks.

How to solve these Data Types Questions and Answers?

You no need to worry, we have given lots of Data Types Questions and Answers and also we have provided lots of FAQ's to quickly answer the questions in the Competitive Exams interview.

Data Types Questions & Answers

1. What is the range of data type short in Java?

Data Types Questions & Answers

2. What is the range of data type byte in Java?

Data Types Questions & Answers

3. An expression involving byte, int, and literal numbers is promoted to which of these?

Data Types Questions & Answers

4. Which of these literals can be contained in a data type float variable?

Data Types Questions & Answers

5. Which data type value is returned by all transcendental math functions?

Data Types Questions & Answers

6. What is the numerical range of a char in Java?

Data Types Questions & Answers

7. Which of these coding types is used for data type characters in Java?

Data Types Questions & Answers

8. Which of these values can a boolean variable contain?

Data Types Questions & Answers

9. Which of these occupy first 0 to 127 in Unicode character set used for characters in Java?

Data Types Questions & Answers

10. Which one is a valid declaration of a boolean?

Home EngineeringComputer Science & EngineeringJava Questions and AnswersData Types

Data Types - Java Multiple Choice Questions and Answers

This is the java programming questions and answers section on "Java Data Types" with the explanation for various interview, competitive examination and entrance test. Solved examples with detailed answer description, explanation are given and it would be easy to understand.

Java Data Types Questions

Online Test Name Java Data Types
Exam Type Multiple Choice Questions
Category Computer Science Engineering Quiz
Number of Questions 12
1. What is the range of data type short in Java?
  • A. -128 to 127
  • B. -32768 to 32767
  • C. -2147483648 to 2147483647
  • D. None of the mentioned
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option B

Explanation:

Short occupies 16 bits in memory. Its range is from -32768 to 32767.

Workspace

Report Error


2. What is the range of data type byte in Java?
  • A. -128 to 127
  • B. -32768 to 32767
  • C. -2147483648 to 2147483647
  • D. None of the mentioned
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option A

Explanation:

Byte occupies 8 bits in memory. Its range is from -128 to 127.

Workspace

Report Error


3. An expression involving byte, int, and literal numbers is promoted to which of these?
  • A. int
  • B. long
  • C. byte
  • D. float
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option A

Explanation:

An expression involving bytes, ints, shorts, literal numbers, the entire expression is promoted to int before any calculation is done.

Workspace

Report Error


4. Which of these literals can be contained in a data type float variable?
  • A. 1.7e-308
  • B. 3.4e-038
  • C. 1.7e+308
  • D. 3.4e-050
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option B

Explanation:

Range of data type float is 3.4e-038 to 3.4e+308.

Workspace

Report Error


5. Which data type value is returned by all transcendental math functions?
  • A. int
  • B. float
  • C. double
  • D. long
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option C

Explanation:

double

Workspace

Report Error


  • «
  • 1
  • 2
  • 3
  • »

Related Topics:

  • Input Output Streams
  • java.lang Package
  • Operators
  • Threads
  • Strings
  • Arrays
  • Applets
  • Packages
  • Collections
  • java.io Package

Mock Tests & Online Quizzes

  • Aptitude Online Test

  • Reasoning Online Test

  • GK Online Test

  • English Online Test

  • RRB Mock Test

  • RBI Mock Test

  • Free SBI Mock Test

  • IBPS Mock Test FREE

  • SSC Mock Test

  • CAT Exam Mock Test

  • GATE Mock Test

  • IT Courses Quiz

Questions and Answers

  • Aptitude Questions
  • Verbal Reasoning Questions
  • Non Verbal Reasoning
  • Logical Reasoning Questions
  • Data Sufficiency Questions
  • Data Interpretation
  • eLitmus Sample Papers
  • ECE Questions and Answers
  • EEE Questions and Answers
  • Verbal Ability Questions
  • GK Questions

Programming Quiz

  • C Programming
  • C++ Programming
  • PHP Programming
  • Java Programming
  • Python Programming
  • DataScience MCQ
  • Hadoop MCQ
  • Mongo DB MCQ
  • MySQL MCQ

Interview Questions

  • Java Interview Questions
  • .Net Interview Questions
  • Networking Interview Questions
  • C Language Interview Questions
  • C++ Interview Questions
  • Testing Interview Questions
  • Android Interview Questions
  • HR Interview Questions
  • Group Discussion Topics

Mock Tests

  • CAT Mock Test
  • SSC Mock Test
  • AMCAT Mock Online Test
  • LIC Mock Test
  • IBPS Mock Test
  • RRB Mock Test
  • RBI Mock Test
  • Free SBI Mock Test
© by AllIndiaExams.in. All Rights Reserved | Copyright | Terms of Use & Privacy Policy