Podcast
Questions and Answers
What type does the number 13 have in Java?
What type does the number 13 have in Java?
- String
- PrintStream
- integer (correct)
- floating-point number
Which data item type has the ability to have fractional parts in Java?
Which data item type has the ability to have fractional parts in Java?
- PrintStream
- integer
- floating-point number (correct)
- String
What happens to the position of the decimal point when a floating-point number is multiplied or divided by 10?
What happens to the position of the decimal point when a floating-point number is multiplied or divided by 10?
- It remains the same
- It shifts (correct)
- It disappears
- It becomes invisible
What is the type of 'Hello, World' in Java?
What is the type of 'Hello, World' in Java?
Why are floating-point numbers called 'floating-point'?
Why are floating-point numbers called 'floating-point'?
Which number is an example of a floating-point number in Java?
Which number is an example of a floating-point number in Java?
Which type in Java should be used for numbers with a fractional part?
Which type in Java should be used for numbers with a fractional part?
In Java, how should numbers in exponential notation be written?
In Java, how should numbers in exponential notation be written?
Why do integers have advantages over floating-point numbers in Java?
Why do integers have advantages over floating-point numbers in Java?
What does a combination of variables, literals, operators, and/or methods form in Java?
What does a combination of variables, literals, operators, and/or methods form in Java?
What is the difference between using * and + operators in Java?
What is the difference between using * and + operators in Java?
Which type of numeric literals does Table 1 show in Java?
Which type of numeric literals does Table 1 show in Java?