
CGI POB Wave 1 Java Batch
Authored by Gurjinder Singh
English
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Find the output of the following code.
int no = 24;
char str = ‘i’;
System.out.print(no);
System.out.print(ch);
% i
I i
24i
i24
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Select the valid statement.
char[] ch = new char(20)
char[] ch = new char[20]
char[] ch = new char()
char[] ch = new char[]
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Find the output of the following program.
public class Solution{
public static void main(String[] args){
int[] x = {120, 200, 016};
for(int i = 0; i < x.length; i++){
System.out.print(x[i] + “ “);
}
}
}
120 200 016
120 200 14
120200 16
None
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Select the valid statement to declare and initialize an array.
int[] arr = {}
int[] arr = {1,2,3}
int[] arr = (1,2,3)
int[][] arr = {1,2,3}
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
When is the object created with new keyword?
At run time
Compile time
Depends on code
None
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Identify the correct restriction on static methods.
I. They must access only static data
II. They can only call other static methods.
III. They cannot refer to this or super.
I and II
II and III
Only III
I, II and III
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
To which of the following package does the class string belong to.
java.lang
lava.util
java.io
javax.lang
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
12 questions
PRESENT PERFECT
Quiz
•
Professional Development
10 questions
Guess the character!
Quiz
•
4th Grade - Professio...
12 questions
Interchange Intro B - Units 13 and 14
Quiz
•
Professional Development
10 questions
SIP 9: NVA, Doppler and Traction Care
Quiz
•
Professional Development
11 questions
Past simple & continuous
Quiz
•
Professional Development
10 questions
spring
Quiz
•
Professional Development
12 questions
If-clauses 1-3
Quiz
•
Professional Development
10 questions
COGNATES VS FALSE COGNATES
Quiz
•
11th Grade - Professi...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for English
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...