Java basics

An illustration of a computer screen displaying Java code, with colorful graphics and symbols representing programming concepts, in an educational and engaging style.

Java Basics Quiz

Test your knowledge of Java fundamentals with our engaging quiz! Whether you are a beginner or looking to refresh your skills, this quiz covers the essential topics you need to know.

  • Multiple choice and checkbox questions
  • Instant feedback on your answers
  • Perfect for students and enthusiasts alike
31 Questions8 MinutesCreated by CodingWizard42
Is JVM, a compiler or interpreter ?
Compiler
Interpretor
What is Java bytecode ?
Character
Binary number
Integer
Some value
Is Java a compiler or an Interpreter ?
Both
Compiler
Interpreter
None
Why is Java considered Portable Language ?
True
False
How many additions of java?
2
1
3
4
Java Architecture consists of mainly these components:
Jdk,jre,jvm
Jse,jme,jee
Both
None
Feature of jvm is:
Write any where
Write multiple time
Write once and run anywhere
None
Number of primitive data types in Java are?
5
7
6
8
What is the size of float and double in java?
32&64
32&32
64&64
8&16
Automatic type conversion is possible in which of the possible cases?
Byte to int
Int to long
Long to int
Short to int
Find the output of the following code. int Integer = 24; char String = ā€˜Iā€™; System.out.print(Integer); System.out.print(String);
Throws error
No o/p
24 I
I
Which of the following option leads to the portability and security of Java?
Bytecode is executed by JVM
The applet makes the Java code secure and portable
Use of exception handling
Dynamic binding between objects
Which of the following is a valid declaration of a char?
Char ch = '\utea';
Char ca = 'tea';
Char cr = \u0223;
Char cc = '\itea';
Which of the following is a valid long literal?
ABH8097
L990023
904423
0xnf029L
What does the expression float a = 35 / 0 return?
0
Infinity
Not a number
Error
Which of these cannot be used for a variable name in Java?
identifier & keyword
Identifier
keyword
None
JDK stands for ____.
Java development kit
Java deployment kit
JavaScript deployment kit
None
What is the entry point of a program in Java?
Main() method
The first line of code
Last line of code
Main class
Which class in Java is used to take input from the user?
Array
Class
Main
Scanner
Method used to take a string as input in Java?
Next()
NextLine()
A and b
None
What will be the output of following Java code? Public class Main { public static void main(String[] args) { String str = "Hello"; str = "Bye"; System.out.println(str); } }
Bye
Hello
Error
None
What is type casting in Java?
It is converting type of a variable from one type to another
Casting variable to the class
Creating a new variable
All of these
who is the father of java?
James gosling
Charles babbage
Lava was earlier known as
Oak
Pine
Palm
None
What is garbage collection?
Garbage collection is a process which is performed for memory management. It is used for reclaiming the runtime unused objects.
Is a program that converts code written in "Java Assembly Language" into a valid Java . Class file.
A sequence of characters in the code that identifies a variable, function, or property.
Taking words in their usual or most basic sense
Java is case sensitive langauge
Yes
No
Java is case sensitive langauge
True
False
The command javac is used to
Compile
Run
Print
None
An assembler is a program that takes basic computer instructions and converts them into a pattern of bits that the computer's processor can use to perform its basic operations.
True
False
"void" excepts some thing in return
True
False
{"name":"Java basics", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your knowledge of Java fundamentals with our engaging quiz! Whether you are a beginner or looking to refresh your skills, this quiz covers the essential topics you need to know.Multiple choice and checkbox questionsInstant feedback on your answersPerfect for students and enthusiasts alike","img":"https:/images/course5.png"}
Powered by: Quiz Maker