The 'JAVA Programming Competition I' quiz assesses knowledge in Java programming, covering data types, operators, and code execution outcomes. It is designed for learners to validate and enhance their understanding of Java, preparing them for competitive programming challenges.
9
15
16
21
Rate this question:
2 6
8
2 4
6 8
Rate this question:
2bad
Zero
TheLastValueButOne
Year2000
0 1 2 3 4 5
0 1 2 3 4
0 1 2 3 4 5
J j j j j
Rate this question:
No---only numeric variables use data types.
No---data types are optional.
Yes---all variables are of the same data type.
Yes---each variable must be declared along with its data type.
Rate this question:
10 11 12 13 14 15
9 8 7 6 5 4 3 2 1 0
10 9 8 7 6 5
10 9 8 7 6
Rate this question:
A block statement
Groupware
Bracketed statements
Not in the list provided
Rate this question:
Something that wobbles but doesn't fall down.
Text in a program that the compiler ignores.
A place to store information in a program.
An expression use in Java programming.
Rate this question:
Recapitulation
Tintinabulation
Iteration
Reiteration
Rate this question:
for ( int x = 0; x < 500; x+=5 ) System.out.println( x );
For ( float x = 0.0; x < 500.0; x += 5.0 ) System.out.println( x );
For ( int x = 500; x >= 0; x-=5 ) System.out.println( x );
for ( int x = 500; x
Rate this question:
0, 1, 2, 3
1, 2, 3, 4
2, 4, 6, 8
0, 2, 4. 6
Rate this question:
Int
Long
Double
Boolean
Rate this question:
1 2 3 4 5 6 7
7 6 5 4
6 5 4 3
7 6 5 4 3
Rate this question:
Count < 8
Count < 9
Count+1
Count != 8
Rate this question:
-5 -4 -3 -2 -1 0
5 4 3 2 1 0
5 4 3 2 1 0 -1 -2 -3 -4 -5
5 4 3 2 1 0 -1 -2 -3 -4
Rate this question:
Int j = 0
Int j < 0
Int j = -3
Int j = -4
Rate this question:
Compiler
Converter
Encoder
Interpreter
Rate this question:
B & C
A
A & C
D
Rate this question:
J+2
J = j+2
J++++
++j++
Rate this question:
int j = 0
Int j < 0
Int j = -3
int j = -4
Rate this question:
String[] myArray = new String[5];
String [] myArray = new String[5];
String []myArray = new String[5];
String[5] myArray = new String();
Int img;
Int[] img;
New int img[];
Int img = int[];
Rate this question:
Lists
Pairs of related information
Trivia
Rate this question:
J
J
J>5
J==5
Rate this question:
Saving it to disk
Converting it into a form the computer can better understand
Adding it to your program collection
Converting it to object file
Rate this question:
A= 9 b=11
A= 10 b= 9
A= 9 b=9
A= 0 b=9
Rate this question:
Add one to the variable.
Add one to the variable after its current value has been used.
Add one to the variable before using its value.
Double the value in the variable.
Rate this question:
J++
Num+2
Num+=2
Num--
Rate this question:
J
j
J
J==15
Rate this question:
0 1 2 3 4 5 6 7 8
Nothing --- the program will not compile.
0 1 2 3 4 5 6 7
1 2 3 4 5 6 7 8 9
Rate this question:
Value: 0 count: 0
Value: 0 count: 1
Value: 1 count: 1
Value: 1 count: 2
Rate this question:
J<15
J<=16
J<16
J==15
Rate this question:
Value = value + sum; sum = sum + 1;
Sum = sum + 1; value = value + sum;
Value = value + sum;
Value = value + ++sum;
Rate this question:
1 2 3 4
1 2 3 4 5
2 3 4
1 1 1 1 1 1 1 1 1 1 1 . . . .
Rate this question:
j+2
J = j+2
J++++
++j++
Rate this question:
1 4 7
1 4 7 10
1 2 5 8
1 2 4 5 7 8
Rate this question:
For ( int x = 0; x
For ( int x = 0.0; x < 100.0; x += 0.1 ) System.out.println( x );
Double x; for ( x = 0.0; x < 100.0; x += 0.1 ) System.out.println( x );
For ( double x = 0.0; x < 100.0; ){ x += 0.1 ; System.out.println( x ); }
Rate this question:
It declares an array of references to widget objects named String.
It creates a String object named widget.
It creates an array of length zero named widget.
It declares a variable widget which may in the future hold a reference to an array of references to String objects but is initialized to null.
Rate this question:
Names[0] = "Hello" ;
Names[10] = "Hello" ;
Names[9] = "Hello" ;
String[ names.length-1 ] = "Hello" ;
Rate this question:
It declares names to be 10 String objects.
It declares names to be a reference to an array of String references and constructs an array object which can contain references to 10 String objects.
It declares names to be a reference to an array of String references and constructs an array object which contains references to the 10 String objects which it also constructs.
It declares names to be a reference to an array of String references and constructs an array object which contains "10" in its first slot.
Rate this question:
There is no difference; both declare rats to be a reference variable.
The first declares rats to be a reference to a String object, the second declares rats to be a reference to an array of String references.
The first constructs a single String object; the second constructs an array of String objects.
The first initializes rats to null; the second initializes rats to an array of nulls.
Rate this question:
J/10
j%10
(j+1.0)/10
j/10.0
Rate this question:
It declares values to be a reference to an array object and constructs an array object containing 10 integers which are initialized to zero.
It declares values to be a reference to an array object, but initializes it to null.
It declares values to be a reference to an array object which does not yet exist, but will contain 10 zeros when it does.
It declares values to be a reference to an array which contains 10 references to int variables.
Rate this question:
(!(b = 0)) && (!(c>5))
(b==0) && (c >5)
(b!=0) && (c
!((b 0) && (c
Rate this question:
–2^15 to 2^15 – 1
0 to 2^15
–2^31 to 2^31 – 1
0 to 2^31
Rate this question:
B, D & E
A & E
C & E
E
Rate this question:
8.0
7.0
6.0
None of the above
Rate this question:
0 1
1 2
0 1 2
1 2 3
Nothing and an exception is thrown
Rate this question:
Quiz Review Timeline (Updated): Jul 4, 2024 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.