Java Basics

A colorful and engaging illustration of a computer screen displaying Java code with binary numbers in the background, symbolizing programming and technology.

Java Basics Quiz

Test your knowledge of Java programming with this engaging quiz! Perfect for beginners and experienced programmers alike, this quiz will help you assess your understanding of Java's fundamental concepts.

You'll encounter questions on:

  • Printing in Java
  • Case sensitivity
  • Arrays and loops
  • Java data types
13 Questions3 MinutesCreated by CodingHero512
Name:
What can you use to print something in newline?
Println
Printn
Printlnew
Printl
What does the single quotes define in java?
String
Char
Int
Float
Is java case sensitive?
Yes
No
Which of the following is not an attribute of java?
AtObject Oriented
Inheritance
Object Based
Multi-threaded
Can you name a variable “case”?
Yes
No
Java keywords are written in lower-case as well as upper-case?
True
False
What is the output of the following code? String word =”abcde” for(int i=0;i<4;i+=2)
Ace
Ac
Ad
Ab
Can you compare a boolean and Int in java?
Yes
No
What do we mean by assignment in java?
Adding values to variable
Adding something to integer
Assigning a value to variable
Assigning a name to variable
If I have a 2D array X of size n*m I.e., n rows and m columns, then which of following will represent the element at 3rd last row and 2nd last column?
X[n-3][m-2]
X[m-2][n-3]
X[n-2][m-3]
X[m-3][n-2]
Int I = 10; do { sequence of instructions; i++; } while(i<5); How many times the above sequence of instructions will be executed?
0
5
1
Above code will show an error.
What is the output of the following code fragment: int[] ar = {2, 4, 6, 8 }; System.out.println( ar[0] + " " + ar[1] );
26
8
2 4
6 8
{"name":"Java Basics", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your knowledge of Java programming with this engaging quiz! Perfect for beginners and experienced programmers alike, this quiz will help you assess your understanding of Java's fundamental concepts.You'll encounter questions on:Printing in JavaCase sensitivityArrays and loopsJava data types","img":"https:/images/course5.png"}
Powered by: Quiz Maker