placeholder image to represent content

Primitive Datatypes

Quiz by Geetha Venugopal

Our brand new solo games combine with your quiz, on the same screen

Correct quiz answers unlock more play!

New Quizalize solo game modes
8 questions
Show answers
  • Q1
    Computer 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
  • Q2
    It 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, char
    30s
  • Q3
    Is Int a primitive data type? Note; not 'int'
    No
    Yes
    30s
  • Q4
    An 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?
    Yes
    No
    30s
  • Q5
    A 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?
    Yes
    No
    30s
  • Q6
    Select the data type which is not primitive data type?
    long, byte, short
    boolean, char
    String
    double ,int, float
    30s
  • Q7
    If you want to store 3.5, would int be a proper data type?
    No
    yes
    30s
  • Q8
    primitive data type 'boolean' can hold
    characters
    phrase
    true or false
    number
    30s

Teachers give this quiz to your class