NEW
Font size
WorksheetsUnit 24 - Java Basics
Total questions: 10
Worksheet time: 10mins
When programming, you have to use Data Types. Which of the following refers to interfaces, classes, and arrays?
Primitive
Non-Primitive
Arrays
Boolean
Classes and interfaces use a certain type of data type. Which one is it?
Primitive
Non-primitive
Floating Point
None of the answers
What is the main difference between float and double data types?
4.1 is an example of float.
4.11 is an example of double.
Float consists of 8 bytes, and double consists of 4 bytes.
Float consists of 4 bytes, and double consists of 8 bytes.
What kind of data type is used for numbers?
Integer
String
Boolean
Floating Point
Java Tokens help the compiler. Which of the following is a type of Java Token?
Identifiers
Keywords
Operators
All of the answers.
What is a blueprint and determines how an object will behave?
Object
Method
Attribute
Class
In a typical Java program, which of the following are crucial?
Methods, Attributes, Classes
Classes, Methods, Data Types
Classes, Methods, Objects
None of the answers
To make a particular type of data useful, you need to have properties and methods included in a self-contained component. This component also has a memory location allocated. What is it?
Class
Method
Value
Object
Classes usually define operations that can be used by objects. What are these operations referred to as?
Objects
Classes
Methods
Actions
What is displayed in the picture?
A class called Employee.
An employee object.
A method for new employee.
An employee.
