
CGI POB Wave 1 Java Batch
Quiz
•
English
•
Professional Development
•
Medium

Gurjinder Singh
Used 1+ times
FREE Resource
Enhance your content
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
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
SASI -1st year -DAY6-AN (23.12.23)
Quiz
•
Professional Development
15 questions
20 dec 2023 SRMIST TRP CPS AN
Quiz
•
Professional Development
10 questions
Noun : Numbers
Quiz
•
Professional Development
10 questions
English Grammar Singular and Plural Nouns
Quiz
•
KG - Professional Dev...
8 questions
Mining crew and basic gear
Quiz
•
Professional Development
15 questions
Do you know the answers?
Quiz
•
Professional Development
15 questions
SASI -1st year -DAY5-FN (22.12.23)
Quiz
•
Professional Development
15 questions
VCE-ALPHA-18.11.2023-AN
Quiz
•
Professional Development
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade