placeholder image to represent content

L-3 Data types Java

Quiz by Archana Shelke

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

Correct quiz answers unlock more play!

New Quizalize solo game modes
16 questions
Show answers
  • Q1
    1. What does a Data Type in Java refers to?
    The type or variety of data being handled for reading and writing
    The technique how data is retreived
    The place where data is stored
    None of these
    60s
  • Q2
    2. Which data type among the following is an implementation of Objects or OOPs?
    Long
    None of these
    int
    Double
    60s
  • Q3
    3. which among the following is not a Data Type in Java?
    int
    double
    short
    long double
    60s
  • Q4
    4. Which is the data type that is not recommended for numeric applications in Java?
    int
    byte
    long
    float
    60s
  • Q5
    5. What is the size of a LONG integer in Java?
    8 bytes
    4 bytes
    2 bytes
    6 bytes
    60s
  • Q6
    6. What is the size of a DOUBLE floating point number in Java?
    16 bytes
    4 bytes
    8 bytes
    2 bytes
    60s
  • Q7
    7. What is the abbreviation of ASCII?
    Australian Standard Code for Information Interchange
    American Standard Characters for Information Interchange
    None of these
    American Standard Code for Information Interchange
    60s
  • Q8
    8. Choose the right statement about Java Data types.
    The character data type is char.
    All of these
    Integer data types are short, int and long
    Real number data types are float and double
    60s
  • Q9
    9. What is the output of the following Java Code? int a=9; float b = a/2; System.out.println(b);
    None of these
    5.0
    4.0
    4.5
    60s
  • Q10
    10. What is the output of the below Java code snippet? char ch = 'A';//ASCII 65 int a = ch + 1; ch = (char)a; System.out.println(ch);
    A
    B
    66
    65
    60s
  • Q11
    11.What is the output of the below Java code snippet? float a = 8.2/2; System.out.println(a);
    4
    8.1
    4.1
    Compiler error
    60s
  • Q12
    12. What is Literal in Java?
    None of these
    Literal is the value that is given or assigned to a variable.
    Literal is a data type
    Literal is similar to String
    60s
  • Q13
    13. What is the suffix used to represent a floating point number in Java?
    r or R
    None of these
    fl or FL
    f or F
    60s
  • Q14
    14. Choose the wrong Java code statement below.
    char a ='a';
    char a ='\n';
    char a ="ab";
    char a =97;
    60s
  • Q15
    15. A String literal in Java is surrounded by a pair of _____?
    Exclamations
    Braces
    Double Quotes
    Single Quotes
    60s

Teachers give this quiz to your class