0% found this document useful (0 votes)
8 views7 pages

Java Programming Concepts Quiz

The document consists of multiple-choice questions and fill-in-the-blank statements related to Java programming concepts, including packages, classes, polymorphism, primitive data types, and the Java Virtual Machine (JVM). It tests knowledge on fundamental aspects of Java, such as abstract classes, constructors, and data types. The document serves as a study guide or quiz for individuals learning Java.

Uploaded by

mrtoxicytgamer
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views7 pages

Java Programming Concepts Quiz

The document consists of multiple-choice questions and fill-in-the-blank statements related to Java programming concepts, including packages, classes, polymorphism, primitive data types, and the Java Virtual Machine (JVM). It tests knowledge on fundamental aspects of Java, such as abstract classes, constructors, and data types. The document serves as a study guide or quiz for individuals learning Java.

Uploaded by

mrtoxicytgamer
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd

The fundamental classes are defined in______package.

[ ]

A) [Link] B) [Link] C) [Link] D) [Link]

2. All the classes in a package can be simultaneously imported using_____


[ ]

A) dot B) semicolon C) comma D)star

3. An Abstract class contains _______ methods.


[ ]

A)non-abstract B)abstract C) implemented D) non abstract

4. Java can declare a class as____to prevent other classes inheriting this class.
[ ]

A) final B) static C) abstract D) finalize

5. ____ is a collection of related classes and interfaces.


[ ]

A) JVM B) byte code C) Package D) Object

6. __________is an example of static polymorphisom.


[ ]

A) Abstraction B) interfaces C)methodoverriding D) methodoverloading

7. Java defines ____________ number of primitive data types.


[ ]

A)5 B) 6 C) 8 D) 7
8. ____________is an instance of a class. [ ]

A) Object B) class C) method D) none

9. __________ is a set of instructions generated by the compiler.


[ ]

A) hierarchy B) class C) Byte code D) Package

10..JVM executes the_______________________


[ ]

A) class B) code C)program D) byte code

JRE stands for ______________________.

12. Java was Developed by _______________________.

13. The _______________statement is used to include another Java package in a Java source

file.

14. JVM _________________________________________.

15. JavaC ______________________________________.

16. A Class can have many Constructors which is called as _______________.

17. A subclass can call a constructor method defined by its super class by use of

the____________________________ keyword.

18. Full form of JDK __________________.


19. Abstract Methods are used for ____________ Overriding.

20. A _____________is a collection of classes and interfaces.

Java can declare a class as to prevent other classes inheriting this class.
[ ]

A) final B) static C) abstract D) finalize

2. ____ is a collection of related classes and interfaces.


[ ]

A) JVM B) byte code C) Package D) Object

3. __________is an example of static poly morphisom.


[ ]

A) Abstraction B) interfaces C)method overriding D) method overloading

4. The fundamental classes are defined in______package.


[ ]

A) [Link] B) [Link] C) [Link] D) [Link]

5. All the classes in a package can be simultaneously imported using_____


[ ]

A) dot B) semicolon C) comma D)star

6. Java defines ____________ number of primitive data types.


[ ]

A)5 B) 6 C) 8 D) 7

7. ____________is an instance of a class.


[ ]
A) Object B) class C) method D) none

8. __________ is a set of instructions generated by the compiler.


[ ]

A) hierarchy B) class C) Byte code D) Package

[Link] executes the_______________________ [ ]

A) class B) code C)program D) byte code

10. An Abstract class contains _______ methods. [ ]

A)non-abstract B)abstract C) implemented D) non abstract

11. Abstract Methods are used for Overriding.

12. Default value of Boolean Data type is .

13. Long data type has size of bytes.

14. JavaC___________________________

15. The data type is used to store Single Character.

16. __________is the default value of “Integer” data type.

17. A Class can have many Constructors which is called as

18. Java was Developed by

19. The data type is used to store value with Six Precisions.

20.____________data type is used to store True or False Values.


JVM executes the_______________________ [
]

A) class B) code C)program D) byte code

2. Java can declare a class as____to prevent other classes inheriting this class.
[ ]

A) final B) static C) abstract D) finalize

3. Java defines ____________ number of primitive data types.


[ ]

A)5 B) 6 C) 8 D) 7

4. ____________is an instance of a class. [ ]

A) Object B) class C) method D) none

5. __________ is a set of instructions generated by the compiler.


[ ]

A) hierarchy B) class C) Byte code D) Package

6. __________is an example of static polymorphisom.


[ ]

A) Abstraction B) interfaces C)methodoverriding


D)methodoverloading

7. The fundamental classes are defined in______package.


[ ]

A) [Link] B) [Link] C) [Link] D) [Link]


8. All the classes in a package can be simultaneously imported using_____
[ ]

A) dot B) semicolon C) comma D)star

9. An Abstract class contains _______ methods.


[ ]

A)non-abstract B)abstract C) implemented D) non abstract

10. ____ is a collection of related classes and interfaces.


[ ]

A) JVM B) byte code C) Package D) Object

11. A program’s source code written in any language is translated into ____________ code

with the help of a language translator.

12. We work with an IDE called _____________for learning to create and execute Java

programs.

13. The full form of IDE is _____________ .

14. javac is a Java _____________which provides the keywords and syntax along with data

types, operators that are used in Java.

15. Keywords are also called _____________words.


16. Upper case and lower case of the same letter are treated different in Java. Thus Java is

case _____________..

17. Java uses a _____________character set that includes many more characters than ASCII

character set.

18. The operator that returns the remainder of the division of two operands is

called _____________, its symbol is ______

19. The six relational operator symbols are _____________and ______.

20. The logical operator, NOT does not need two operands to operate and so is

a _____________operator.

You might also like