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
0
{"name":"Java Basics", "url":"https://www.quiz-maker.com/QG2C3F14L","txt":"Name:, What can you use to print something in newline?, What does the single quotes define in java?","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}