<< Chapter < Page Chapter >> Page >
This module contains review questions and answers keyed to the module titled Jb0150: Java OOP: A Gentle Introduction to Java Data Types.

Revised: Sun Mar 27 23:06:45 CDT 2016

This page is included in the following Books:

Table of contents

Preface

This module contains review questions and answers keyed to the module titled Jb0150: Java OOP: A Gentle Introduction to Java Data Types .

The questions and the answers are connected by hyperlinks to make it easy for you to navigate from the question to the answer and back again.

Questions

Question 1 .

True or false? Java is a type-sensitive language.

Answer 1

Question 2

True or false? Data type double involves whole numbers only (no fractional parts are allowed) .

Answer 2

Question 3

True or false? Type double involves numbers with fractional parts.

Answer 3

Question 4

True or false? All Java data types conceptually have something to do with numeric values.

Answer 4

Question 5

True or false? The Java char type deals conceptually with the letters of the alphabet, the numeric characters, and the punctuation characters.

Answer 5

Question 6

True or false? For every different type of data used with a particular programming language, there is a specification somewhere that defines two important characteristics of the type:

  1. What is the set of all possible data values that can be stored in an instance of the type?
  2. Once you have an instance of the type, what are the operations that you can perform on that instance alone, or in combination with other instances?

Answer 6

Question 7

True or false? If you have an instance of the byte type, the set of all possible values that you can store in that instance is the set ofall the whole numbers ranging from -256 to +255.

Answer 7

Question 8

Name or describe four of the operations that you can perform with data of type short .

Answer 8

Question 9

True or false? Java data types can be subdivided into two major categories:

  • Primitive types
  • User-defined or reference types

Answer 9

Question 10

True or false? The primitive types are not part of the core language.

Answer 10

Question 11

True or false? For purposes of discussion, primitive types can be subdivided into four categories:

  • Whole-number types
  • Floating-point types
  • Character types
  • Boolean types

Answer 11

Question 12

True or false? In Java, there are three different whole-number types:

  • byte
  • short
  • int

Answer 12

Question 13

True or false? The whole-number types differ in terms of the range of values that they can accommodate and the amount of computer memory required to storeinstances of the types.

Answer 13

Question 14

True or false? Java provides an unsigned version of all of the primitive whole-number types.

Answer 14

Question 15

True or false? Floating point types represent values as a mantissa containing a decimal point along with an exponent value that tells how many places toshift the decimal point to the left or to the right in order to determine the true value.

Questions & Answers

who is called lender of the last resort
Divyanshu Reply
Hi
Linda
hlw
Karishma
Central bank
Majeed
hy
Karishma
Hello
Majeed
hy
Karishma
How are you
Majeed
Am gud
Linda
fine
Karishma
Am gud
Linda
hello
Chandra
Well! what's going on
Majeed
r u study in economics
Karishma
anybody there?
Chandra
r u study in economics
Karishma
the central bank
Sessay
Has completed already
Majeed
hey
neha
yes
Abigail
Yesss
Majeed
ok
Karishma
hey
Doctor
yh
Abigail
more questions
Sessay
how ar you
Doctor
split the price effect into income effect and substitution effect
Karishma
fine and u
Abigail
Hi
Godwin
hi
Hey, I am new here. Hope, discussion on Economics will clear our concepts more.
yasir
yes
Abigail
do u speak hindi or english
Karishma
how to consumer equlibrium through ic
Karishma
consumer equilibrium demand equals supply
Kenneth
the consumer is in equilibrium when the indifference curve is tangential to the budget line. or when the BL and IC intersect
Sessay
reasons indifference curve slopes downwards?
Kenneth
fine Abby any good,
Doctor
ur lost
Doctor
hey. im new year. economics teacher how we can discuss some thing interesting.
EDWINY
which one
Doctor
what do u understand the concept of poverty cycle.
EDWINY
hey
Ebong
I'm New here
Ebong
hi
ian
just new here guy's and also an Economics fresher of Kogi State University Anyigba
nelson
wxup
Ayegba
who can tell the laboratory of economic?
Amara
, Dennis Weissman Associates, LLC Laboratory Economics is the monthly business newsletter that gets behind the headlines and press releases.
Ayegba
sooo teah me what an LLC
Emmanuel
what's the topic
Adamsvictor Reply
economic systems
gracious
hello
Antonio
market
aba
hello where can I find the diagrams
Manu
Hello I am totally out ,I am not understanding why we are here. can someone help me out?
Amara
why Economic is not a pure science can someone help me out
Mohamed
because economics like science put forth a some hypotheses and then do experiments to prove them
Anwesh
but these experiments are not completely controlled
Anwesh
Hello
Comfort
hey
suraj
hi people can you help me out on "demand and supply"
Milton
Am not understanding can someone enlighten me pls
Bertilla
hi people can you help me out on "demand and supply"
Sessay
hello. if Mr.Patrick's income is #900.00 while that of Mr.Shodawe is #1300.00 if Mr.Patrick and Shodowe pay #90.00 and #130.00 as taxes,the tax system is?
Benjamin
I need the answer please
Benjamin
regressive tax system
shaikh
OK thanks
Benjamin
Isn't this called proportional tax rate because the rate stays the same - 10%? Tell me if I'm wrong
Ioan
Supply is perfectly elastic and demand increases.
kishore Reply
whose there
Waseem
show the demand curve
Hameed Reply
it slopes downward from left to right
Ama
how resources are allocated in a free economy
Charlotte Reply
explain how discriminating Monopoly increase profits
Charlotte
factors responsible for the emergence of monopoly situation
adelakun Reply
total output produced by a country over a given period of time .... can someone give me the term plz
TMM Reply
GDP
Anjorin
thaks man
TMM
Woman. 👍👍
Anjorin
gross domestic products
janet
GDP
Bertilla
GDP
Prof
GDP
Bertilla
gross domestic product
gross domestic product
GDp
Mohamed
gdp
agboola
what is recession pertaining to GDP
Prince
what is recession pertaining to GDP
Prince
what is recession
Prince
What is long run supply curve of a industry
Rashika Reply
enlightened
Ernest
all on board am here
Ernest Reply
am late I missed alot
Ernest
A mixed economy is the best type of an economy.Discuss
Tawanda Reply
Agreed Mixed economics is d combination of both capitalist and socialist economy, it give room for both individual and government to make decisions whereby giving room to a rapid development of d economy.
Anjorin
?
Andres
agreed
Ernest
Explain more about the Macroeconomics
Lizzy Reply
what is macroeconomic
Ekye
macro economics has to do with the of study economics at national level i.e the study of national economy as a whole. While micro is concerned with the study at individual, group or company level.
Andres
Andres explain
Ernest
ok
Ernest
scale and preference
Okodili Reply
please enlighten me
ANDREW
Please explain to me what ma economics
Lizzy
ok
Ernest
Views of classical economics with their modern economics
Mr Reply
sir bride me
Ernest
enlightenment
Ernest
what are the characteristic of economic laws
Eazy Reply
find out
Ernest
similarities of a command and a mixed economy
Talent Reply
seen
Ernest
Difference between extinct and extici spicies
Amanpreet Reply
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get the best Algebra and trigonometry course in your pocket!





Source:  OpenStax, Object-oriented programming (oop) with java. OpenStax CNX. Jun 29, 2016 Download for free at https://legacy.cnx.org/content/col11441/1.201
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Object-oriented programming (oop) with java' conversation and receive update notifications?

Ask