
Primitive Datatypes
Quiz by Geetha Venugopal
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Measure skills
from any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
With a free account, teachers can
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
8 questions
Show answers
- Q1Computer memory stores arbitrary bit patterns. As with a string of letters, the meaning of a string of bits depends on how it is used. The scheme being used for a particular string of bits is its data type. A data type is:Is a scheme for using bits to represent values. Values are not just numbers, but any kind of data that a computer can process. All values in a computer are represented using one data type or another.30s
- Q2It would be awkward if every time you used data you had to invent your own scheme to represent it with bits. There are types of data that are so fundamental that ways to represent them are built into Java. These are the primitive data types. The eight primitive data types are:byte, short, int, long, boolean, float, double, char30s
- Q3Is Int a primitive data type? Note; not 'int'NoYes30s
- Q4An object is a big block of data. An object may use many bytes of memory. An object usually consists of many internal pieces. The data type of an object is called its class. Many classes are already defined in Java. A programmer can invent new classes to meet the particular needs of a program. Can the users create objects?YesNo30s
- Q5A primitive data value uses a small, fixed number of bytes. There are only eight primitive data types. Can a programmer create new primitive data types?YesNo30s
- Q6Select the data type which is not primitive data type?long, byte, shortboolean, charStringdouble ,int, float30s
- Q7If you want to store 3.5, would int be a proper data type?Noyes30s
- Q8primitive data type 'boolean' can holdcharactersphrasetrue or falsenumber30s