
Strings & Arrays
Authored by Abdul Rahman
English
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int a[]={1,2,3};
int b[]=a;
a[0]+=1;
a[1]+=1;
System.out.println(b[0]+b[1]+b[2]);
8
6
123
233
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
String a='mango';
String b='MANGO';
System.out.println(a.equals(b));
error
true
false
nothinng will be printed
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
String a="mango";
String b="MANGO";
System.out.println(a==b);
true
false
error
Nothing will be printed
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
String a=new String("APPLE");
String b=new String("APPLE");
System.out.println(a==b);
true
false
error
Nothing will be printed
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int a[]=new int[3];
a[0]=1;
a[1]=2;
System.out.println(a[0]+a[1]+a[2]);
3
123
out of bound error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
System.out.println(1+2+""+3+4);
334
1234
10
37
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
String a="12";
for(int i=0;i<a.length();i++){
a+='1';
}
System.out.println(a);
121
12
infinite loop
31
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
15 questions
TALKSHOW TIẾNG ANH SAY HI - IUH
Quiz
•
University
15 questions
Simple Past - Pop Up Quiz
Quiz
•
University
14 questions
English quiz 1
Quiz
•
10th Grade - University
10 questions
Expressions of quantity
Quiz
•
10th Grade - University
10 questions
Baggage lost
Quiz
•
University
10 questions
Quiz 1 (Grammar In Use)
Quiz
•
5th Grade - University
15 questions
Tenses - Tension !!!
Quiz
•
11th Grade - University
7 questions
Quiz on Information Sources
Quiz
•
University
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