Font size
WorksheetsJava Quiz 4
Total questions: 15
Worksheet time: 8mins
--------- is a symbol, that operates on operands and produce a result
operands
variables
operators
Ternary
Choose the logical operators
And
Less than
OR
Not Equal
What is the result of 13<=13 ?
True
False
Both true and false
None
The result of AND operator is always true, if both the conditions results are _____
True
False
What is the symbol of ternary operator?
?:
?;
:?
;?
Java is case sensitive language.
True
False
What is an exception?
Compile time error
Logical Error
Runtime error
try block is used to
monitor exceptions
throws exception
catches exception
handles exception
catch block is used to
throw an exception
create an exception
handles an exception
stops execution
To implement multiple inheritance in Java we use
Package
Abstract class
Interface
Abstract method
How many primitive data types are there in Java?
5
6
7
8
In this framework, all real-world entities are represented by Classes.
Functional Programming
Logical Programming
Object-Oriented Programming
Procedural Programming
Which of the following creates an object of Main class?
Main obj = new Main;
Main obj = new Main();
Main obj = new Mian();
Main obj == new Main();
Which of the following is the complete syntax of creating a class?
public class Main { }
public class Main() { }
public class Main
public class Main()
Methods are declared within a class.
True
False
